badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 14 Jun 2014 05:08 PM |
local hint = Instance.new("Hint") ss = game:GetService("ServerStorage") local maps = ss:GetChildren() local tim = 10 --define function start() randommap = maps[math.random(1, #maps)] hint.Parent = Workspace hint.Text = "Starting in 10 seconds!" wait(5) for i = 5,1, -1 do hint.Text = i wait(1) end local s = randommap:clone() s.Parent = Workspace
for _, players in pairs(game.Players:GetPlayers()) do sl = players.Character:FindFirstChild("Torso") if sl ~= nil then sl.CFrame = s.b.CFrame + Vector3.new(0, 1, 0) players.PlayerGui.Alive.Value = true end hint.Parent = ss wait(tim) hint.Parent = Workspace hint.Text = "Round over!" for _, players in pairs(game.Players:GetPlayers()) do players:LoadCharacter() end get_alive_plrs() end end
function get_alive_plrs() for _, players in pairs(game.Players:GetPlayers()) do if players.PlayerGui.Alive.Value == true then print("Alive!") end end end
start()
u wot tifany? (ง ͠° ͟ل͜ ͡°)ง ill gnaw ur arm off hagrid! |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 14 Jun 2014 05:14 PM |
b1
u wot tifany? (ง ͠° ͟ل͜ ͡°)ง ill gnaw ur arm off hagrid! |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
| |
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 14 Jun 2014 05:16 PM |
@cnt for _, players in pairs(game.Players:GetPlayers()) do sl = players.Character:FindFirstChild("Torso") if sl ~= nil then sl.CFrame = s.b.CFrame + Vector3.new(0, 1, 0) players.PlayerGui.Alive.Value = true end
u wot tifany? (ง ͠° ͟ل͜ ͡°)ง ill gnaw ur arm off hagrid! |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 14 Jun 2014 05:17 PM |
Is it moving them 1 stud up? If so then maybe something else is setting it back to false |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 14 Jun 2014 05:18 PM |
Fixed it, added a delay to a loop
u wot tifany? (ง ͠° ͟ل͜ ͡°)ง ill gnaw ur arm off hagrid! |
|
|
| Report Abuse |
|
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 14 Jun 2014 05:18 PM |
The problem was it was respawning me before checking the value so it was false
u wot tifany? (ง ͠° ͟ل͜ ͡°)ง ill gnaw ur arm off hagrid! |
|
|
| Report Abuse |
|
|
Forestion
|
  |
| Joined: 09 Mar 2013 |
| Total Posts: 15364 |
|
| |
|
badfitz99
|
  |
| Joined: 01 May 2010 |
| Total Posts: 5854 |
|
|
| 14 Jun 2014 05:21 PM |
'wanna l2d'
what
u wot tifany? (ง ͠° ͟ل͜ ͡°)ง ill gnaw ur arm off hagrid! |
|
|
| Report Abuse |
|
|