I have this in a normal script in a GUI. It used to work in studio but because I changed the places starting place, its been acting weird...

script.Parent.MouseButton1Click:connect(function()
	game:GetService("TeleportService"):Teleport(196512319)
 
	script.Parent.Parent.Parent.Parent.Loading.Visible = true
	script.Parent.Parent.Parent.Visible = false
 
	for i = 1, 0, -.05 do
		script.Parent.Parent.Parent.Parent.Loading.BackgroundTransparency = i
		wait()
	end
	script.Parent.Parent.Parent.Parent.Loading.BackgroundTransparency = 0
end)

2 comments

0

Weird in what way?

0

In studio it says that I can't join and in roblox player, it doesn't teleport at all.