hello, I made a simple transition script but I had some problem
this is the server script.
local function mainGame()
repeat wait() until game.Workspace.Triggers.TransitionTriggers:FindFirstChild("HouseTrigger") == nil
transitionEvent:FireAllClients()
wait(2)
teleport(game.Workspace.Triggers.TeleportPoint:WaitForChild("HousePoint").CFrame)
closeDoor()
inviromentChanger()
end
this is the house trigger script
script.Parent.Touched:Connect(function(hit)
if hit and hit.Parent:FindFirstChild("Humanoid") then
script.Parent:Destroy()
end
end)
I just join the game, i didn’t touch anything, the script run, I put an breakpoint at the script.Parent:Destroy(), but it didn’t break out, this is the explorer, pls help