Hello, I've made this simple script that moves GUIs when you touch some parts, in studio, it works fine. But if you go play it on Roblox itself, it doesn't do anything. I have no idea what I've done wrong.. can someone please help me?
Script:
local SG = game:GetService("StarterGui")
local Cs = SG.CutScenes
script.Parent.Touched:Connect(function()
Cs.UpperFrame:TweenPosition(UDim2.new(0,0,0,-35), "Out", 1)
Cs.LowerFrame:TweenPosition(UDim2.new(0, 0,0.793, 0), "Out", 1)
wait(6.25)
Cs.TransPArencyFrame:TweenPosition(UDim2.new(0,0,0,0), "Out", 1)
wait(1.6)
Cs.TransPArencyFrame:TweenPosition(UDim2.new(0,0,1,0), "Out", 1)
wait(0.8)
Cs.UpperFrame:TweenPosition(UDim2.new(0,0,0,-150), "Out", 1)
Cs.LowerFrame:TweenPosition(UDim2.new(0,0,1,0), "Out", 1)
wait(1.1)
warn("T R I G G E R E D B O I")
script:Destroy()
end)
BTW: I'm a noob scripter

3 comments
you can really only tween guis from the client in game
Then could you explain how to do it?
As a general rule, any time you run into a problem where "it works in studio but not in game" it's most likely a client/server problem. I strongly recommend reading the wiki page on the Client Server Model to learn how the filtering enabled system works. Some things like GUI should be handled from the client, while other things like data and badges should be handled from the server.