Here is my code it turns on one of my teleporters, when I run it in studio everything works fine but when I play it via roblox.com > Develop > My Game my script doesent work its a LocalScript in StarterPlayerScripts its not disabled if you have any suggestions any kind of advice is appreciated and if you have a similar or the same problem then lets figure this out.
local Player = game:GetService("Players").LocalPlayer local Character = Player.Character local Portal = game:GetService("Workspace").PortalOne.Portal
function Navigate() if (Portal.Position - Character.Torso.Position).Magnitude < 20 then Portal.Transparency = 0 Portal.CanCollide = true Portal.PortalScript.Disabled = false end end
while true do Navigate() wait(0.1) end