I have a ClickDetector in my DailyRewardChest with a LocalScript
Which fire’s a BindableEvent to trigger the UI…
Well the MouseClick connection is just not working. The print on the first line of the function isn’t printing.
There are no errors.
local DisplayUI = game:GetService("ReplicatedStorage"):WaitForChild("Events", 60).DisplayDailyReward
local ClickDetector = script.Parent
Localscripts doesn’t run in workspace.
Nvm, a Little bit of reading on the Docs would’ve helped me.
ClickDetector events fire on both the client and the server, even when
FilteringEnabled is on. Since a
LocalScript will only run if descends from a
Player or Player’s
Character , it’s usually not useful to put a LocalScript inside a ClickDetector (since the script won’t run, or the object won’t be clickable). If you need a LocalScript to detect ClickDetector events,
StarterPlayerScripts may be a better place instead.