I am making a basic script were if you press a TextButton, your player will be able to move again. It's a local script and everything in the event isn't working the rest works fine. I get no error in the output and the print isn't printing.
local module = require(game.Players.LocalPlayer.PlayerScripts:WaitForChild("PlayerModule"))
local controls = module:GetControls()
local button = game.StarterGui.FirstScreen.PlayButton
controls:Disable()
button.Activated:Connect(function()
controls:Enable()
button.Parent.Enabled = false
print("button pressed")
end)
I have tried changing the Activated event to MouseButton1Click but the result are the same.

2 comments
Just needed to add :WaitForChild("FirstScreen") for it to work. Thank you.
np