User:Mindraker/Gametutorial
From Legacy Roblox Wiki
Jump to navigationJump to search
Introduction
This tutorial is meant to be a guide on what you need for scripting minigames.
How to teleport people
Change the x,y, and z coordinates to where you want to be teleported.
game.Workspace.username.Torso.CFrame = CFrame.new(Vector3.new(x,y,z)) --[[ change "username" to the name of the appropriate player. --]]
How to choose a random player to teleport to a different location
name = "Name here" -- put the name of the brick you want to teleport to here while true do wait(15) list = game.Players:GetChildren() for x = 1, #list do chance = math.random(1, #list) list[chance].Character:MoveTo(workspace[name].Position) wait(15) end end
How to give points
See Leaderboards
How to make it realize the last one standing
"TODO"