also here's the fixed script
local T1 = workspace.Fadeteleporter.T1
local Dest = workspace.Fadeteleporter.Dest
local debounce = false
T1.ProximityPrompt.Triggered:Connect(function(player)
if debounce then return else debounce = true end
if player.Character:FindFirstChild("Humanoid") then
local player = game:GetService("Players"):GetPlayerFromCharacter(player.Character)
if player then
player.Character.Humanoid.WalkSpeed = 0
local gui = Instance.new("ScreenGui", player.PlayerGui)
local label = Instance.new("TextLabel", gui)
label.Size = UDim2.new(2, 0, 2, 0)
label.Position = UDim2.new(-0.5, 0, -0.5, 0)
label.BackgroundColor3 = Color3.new(0,0,0)
label.BackgroundTransparency = 1
label.Text = ""
while gui and label and label.BackgroundTransparency > 0 do
wait()
label.BackgroundTransparency = label.BackgroundTransparency - 0.01
end
if player then
player.Character:MoveTo(Dest.Position)
end
while gui and label and label.BackgroundTransparency < 1 do
wait()
label.BackgroundTransparency = label.BackgroundTransparency + 0.01
end
if gui then
gui:Remove()
end
if player then
if player.Character:FindFirstChild("Humanoid") then
player.Character.Humanoid.WalkSpeed = 16
end
end
end
end
debounce = false
end)