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

Why won't a players teleport in server but it works in studio?

Asked by 7 years ago

I've already looked up why things work in studio but doesn't work in server, I couldn't find anything, please help, thank you.

Heres the script:

function MovePlayers()
    local Spawnso = game.Workspace.Map.Spawns:GetChildren()

    for i, v in pairs(game.Players:GetPlayers()) do
        local ToSpawn = math.random(1, #Spawnso)
        if v.PlayerGui:WaitForChild("PlayerScreenGui").BackgroundFrame.MessageFrame.TextFrame.Frame.TextButton.WhatColor.Value == "Green" then
            wait()
        v.Character.HumanoidRootPart.CFrame = Spawnso[ToSpawn].CFrame * CFrame.new(0, 5, 0)
        -- the last part is probably not needed but oh well
        wait()
        end
    end
end
0
because roblox thinks the script is fake and something went wrong in the creation of the script pacattack27 0 — 7y

1 answer

Log in to vote
1
Answered by 7 years ago

it is because roblox says it is a incorrect script so it dose not register the script if it was written incorrectly something probely went wrong in the writing of the script

0
Very misspelled, but correct User#8983 0 — 7y
0
What do I do? bigbenbennett 18 — 7y
Ad

Answer this question