I am helping out a friend with a script. It is almost like TMM, but in a maze. He wants it to be this way: There are 11 players and 10 players are innocent and 1 player is the murder. The murder has 5 minutes to kill all innocent. If he kills all player then the murder wins and if he doesn't then innocent wins. For the sheriff, it will be this. He wants the sheriff's gun spawning randomly in the maze and if one of the innocent gets it, then he is the sheriff who needs to kill the murder. Just like TMM but different. He also wants the timer too. This is the script and other things in the model that I tried to make: http://www.roblox.com/Script-and-Spawn-For-a-Friend-item?id=189684938
local lobbySpawn = game.Workspace.LobbySpawn local murderSpawn = game.Workspace.MurderSpawn local innocentSpawn = game.Workspace.InnocentSpawn minimumPlayers = 11 function teleporttenPlayers(target) for _, player in pairs(game.Players:GetChildren()) do while player.Character == nil do wait() end local character = player.Character local torso = character:WaitForChild("Torso") torso.CFrame = target.CFrame end end function teleportPlayer(target) for _, player in pairs(game.Player:GetChildren()) do while player.Character == nil do wait() end local character = player.Character local torso = character:WaitForChild("Torso") torso.CFrame = target.CFrame end end function teleportPlayers(target) for _, player in pairs(game.Players:GetChildren()) do while player.Character == nil do wait() end local character = player.Character local torso = character:WaitForChild("Torso") torso.CFrame = target.CFrame end end while true do -- teleport ten players to the innocenttrack teleporttenPlayers(innocentSpawn) -- teleport one player to the murderspawn teleportPlayer(murderSpawn) -- teleport all players to the lobby teleportPlayers(lobbySpawn) end
Sorry for this. But I am learning how to script which I really need help. Thank you!
This is a request. You are **NOT **allowed to have requests on this website.