Hello, I've made this script where I try to move Gui's by using tweenposition, and someone has told me I needed to use PlayerGui for this, so I did. But the script still won't work, can anyone help? +This output doesn't give me any errors at all, so I have no idea what I'm doing wrong

local Player = game.Players.LocalPlayer
local SG = Player:WaitForChild("PlayerGui")
local Cs = SG.CutScenes



script.Parent.Touched:Connect(function()

Cs.UpperFrame:TweenPosition(UDim2.new(0,0,0,-35), "Out", "Quad", 1, true, nil) 
Cs.LowerFrame:TweenPosition(UDim2.new(0, 0,0.793, 0),  "Out", "Quad", 1, true, nil)
wait(6.25)
Cs.TransPArencyFrame:TweenPosition(UDim2.new(0,0,0,0), "Out", "Quad", 1, true, nil)
wait(1.6)
Cs.TransPArencyFrame:TweenPosition(UDim2.new(0,0,1,0), "Out", "Quad", 1, true, nil)
wait(0.8)
Cs.UpperFrame:TweenPosition(UDim2.new(0,0,0,-150), "Out", "Quad", 1, true, nil)
Cs.LowerFrame:TweenPosition(UDim2.new(0,0,1,0), "Out", "Quad", 1, true, nil)
wait(1.1)
script:Destroy()
end)

(this script is a local script in a Union in workspace, called ButtonOne)

3 comments

0

This could already be working and you probably just have the measurements wrong

0

Sorry, placed it in workspace, it works when I place the script in starterGUI tho, so thanks!