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

How can i make a murder mystery lobby teleport?

Asked by 3 years ago

so i have this LOCAL script

local player = game.Players.LocalPlayer
local intermission = 11
local roundTime = 11
local startText = script.Parent

while wait(1) do
    if intermission > 0 then
        if intermission > 10 then
            startText.Text = "wait"
            player.character.LowerTorso.CFrame = CFrame.new(game.Workspace.NotMapSpawn.Position)
        end
        startText.Text = "starts in " .. intermission
        intermission -= 1
        print("starts in " .. intermission)
    else
        if roundTime > 10 then
            startText.Text = "wait"
            player.character.LowerTorso.CFrame = CFrame.new(game.Workspace.MapSpawn.Position)
        else
            startText.Text = "ends in " .. roundTime
        end
        roundTime -= 1
        print("ends in " .. roundTime)
        if roundTime < 0 then
            intermission = 11
            startText.Text = "nice"
            wait(3)
        end
    end
end

but this is only local and I don't know how to get LocalPlayer and how to change the the gui text

0
You should not program a round-based game on the Client. Ziffixture 6913 — 3y
0
i know i am trying to understand how servers work HeroFigo 81 — 3y
0
All the guides and API documentation on that site will be the easiest and fastest way to learn how it all works. SteamG00B 1633 — 3y
0
well i know how it works but i don't know how to script it just sayin HeroFigo 81 — 3y

Answer this question