local block = game.StarterGui.ScreenGui.Frame
if workspace.Teleport1.Touched == true then
function touched(player)
local newgui = game.StarterGui.ScreenGui:Clone()
newgui.Parent = player.PlayerGui
newgui:TweenPosition(UDim2.new(0,0,0,0), 'Out', 'Bounce', 1)
wait(2)
newgui:TweenPosition(UDim2.new(0,0,-1,0), 'In', 'Bounce', 1)
newgui:Destroy()
end
end
This is a LOCALSCRIPT and is in StarterCharacterScripts, but for some reason, the script won't make the gui tween. It also ignores the if workspace.Teleport1.Touched == true then part, and just clones it to the PlayerGui anyways.

1 comment
I think my problem is the LocalScript thing. The top part of the function with the "==true" part, was just me trying out everything and hoping it works. Thanks for the help, though!