diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml index fb36bb0..6e7858a 100644 --- a/.github/workflows/create-release.yml +++ b/.github/workflows/create-release.yml @@ -33,4 +33,4 @@ jobs: ALLOW_EMPTY_CHANGELOG: "false" ALLOW_TAG_PREFIX: "true" with: - args: ./ColorPane.rbxm \ No newline at end of file + args: ./ColorPane.rbxmx \ No newline at end of file diff --git a/changelog.md b/changelog.md index e1bdb09..5ef49da 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1,7 @@ +## [0.1.1] - 2021-03-09 +### Changed +- Now gracefully handles script injection + ## [0.1.0] - 2021-03-09 ### Added - ColorPane first release \ No newline at end of file diff --git a/src/ColorPane.server.lua b/src/ColorPane.server.lua index 737da2a..46284af 100644 --- a/src/ColorPane.server.lua +++ b/src/ColorPane.server.lua @@ -14,5 +14,12 @@ else API.Name = "ColorPane" require(API).init(plugin) - API.Parent = CoreGui + + local success = pcall(function() + API.Parent = CoreGui + end) + + if (not success) then + warn("ColorPane requires script injection to expose the API to developers. Please allow the permission and reload the plugin.") + end end \ No newline at end of file