Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How come this teleports me but doesn't show the gui?


script.Parent.Touched:connect(function(hit)
	if hit.Parent:FindFirstChild("Humanoid") then
		local torso = hit.Parent.Torso
		local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
		local gui = game.ServerStorage.fadeEffect:clone()
		gui.Parent = plr.PlayerGui
		local frame = gui.Frame
		frame.Transparency = 0.2
		wait(.1)
		frame.Transparency = 0.4
		wait(.1)
		frame.Transparency = .6
		wait(.1)
		frame.Transparency = .8
		wait(.1)
		frame.Transparency = 1
		torso.CFrame = game.Workspace.teleportShopReciever.CFrame
		wait(.1)
		frame.Transparency = .8
		wait(.1)
		frame.Transparency = .6
		wait(.1)
		frame.Transparency = .4
		wait(.1)
		frame.Transparency = .2
		wait(.1)
		gui:Remove()
	end
end)

Also if someone could tell me how to do this faster, instead of writing "wait(.1)" every time, that'd also be really helpful, thanks in advance!

EDIT: Forgot to add that this teleports the player immediately, instead of even trying to process the gui

2 answers

you made the player teleport imedietly before processing gui

2 comments

0

Could you elaborate? Tell me where the mistake is?

0

your getting the gui 1/2 of a sec either before or after the teleport

This discussion is preserved as it was. New answers, comments, and votes are closed.