I know this is a common question, but I'm just wondering if anyone knows an easy way to fix this. This is the script:
local seconds = script.Parent local prefix = script.Value.Value script.Parent.Parent.Text = prefix.." "..seconds.Value for i = 1,seconds.Value do wait(1) seconds.Value = seconds.Value - 1 script.Parent.Parent.Text = prefix.." "..seconds.Value end script.Parent.Parent:TweenPosition(UDim2.new(0.379, 0, -0.3, 0), "Out", "Quad", 1)
It works fine in testing but not in the real game. I'm wondering if it doesn't work because it begins before everything has loaded in?
You need to show me the variables please.
Yeah, I kind of need to see the variables, but from what I see, make everything :WaitForChild("Name of child"). That way it will actually find the child. Example
local Seconds = script.Parent.Parent:WaitForChild(" whatever the name of variable") local prefix1 = script:WaitForChild("Value") local prefix = prefix1.Value
Based from what I heard, you are using Filtering Enabled you MUST use local scripts in GUI's while using Filtering Enabled. Since Local script are client sided and server scripts are server sided. Filtering Enabled This will help you know what the limits are. Just put it in a local script and you can use Remote Events to make it be able to do changes to the server.