I'm working on a door transition script that fads a black gui using renderstepped, but it has to fire an event afterwards to teleport a player, but I don't want it to keep doing that.
local doorTransition = game.ReplicatedStorage.Remote.ServerToClient.Event.DoorTransition
doorTransition.OnClientEvent:Connect(function(plr)
print("Recieved from server")
--////Fancy transitioning
local runService = game:GetService("RunService")
runService.RenderStepped:Connect(function()
script.Parent.BackgroundTransparency = script.Parent.BackgroundTransparency - 0.025
if script.Parent.BackgroundTransparency <= 0 then
end
end)
end)
