Ok guys so this script was made to make the screen turn black for a fraction of a second and teleport the player to a specific point, but the GUI won't go away.
local x = 0
local y = 0
local z = 0
script.Parent.Touched:connect(function(touch)
if touch and touch.Parent and game.Players:GetPlayerFromCharacter(touch.Parent) then
plr = game.Players:GetPlayerFromCharacter(touch.Parent)
gui = Instance.new("ScreenGui", plr.PlayerGui)
frm = Instance.new("Frame",gui)
frm.Size = UDim2.new(1,0,1,0)
frm.Position = UDim2.new(0,0,0,0)
frm.BackgroundColor3 = Color3.new(0,0,0)
frm.BorderSizePixel = 0
plr.Character:MoveTo(Vector3.new(59.85, 120.925, -10.036))
for i = 0,1,0.05 do
frm.BackgroundTransparency = i
wait(.5)
end
gui:Destroy()
end
end)
If you could fix it that would be great.
Want list: Lightbulb, Tornado hat. |