Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Portal script sometimes not teleporting on touched?

Asked by
0Vyp 14
4 years ago

Hey, So I made a portal script and sometimes when the player touches the teleport part it doesn't teleport them to the designated area.

Heres my script:

01--[ Variables ]--
02 
03local Portals = game:GetService("Workspace").PortalArea.Portals
04 
05 
06--[ Main ]--
07 
08function disconnectFunction(connection)
09    if connection then
10        connection:disconnect()
11    end
12end
13 
14while wait() do
15    for i,v in pairs(Portals:GetChildren()) do
View all 32 lines...

Answer this question