generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: No errors, not changing value

Previous Thread :: Next Thread 
badfitz99 is not online. 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 is not online. 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 is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
14 Jun 2014 05:15 PM
what value? What line?
Report Abuse
badfitz99 is not online. 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 is not online. 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 is not online. 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 is not online. 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 is not online. Forestion
Joined: 09 Mar 2013
Total Posts: 15364
14 Jun 2014 05:19 PM
wanna l2d
Report Abuse
badfitz99 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image