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 » Scripters
Home Search
 

Re: why doesn't this work?

Previous Thread :: Next Thread 
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:17 PM
function start()
for _,v in pairs(game.Players:GetChildren()) do
v.Character.Torso.CFrame = CFrame.new(Vector3.new(game.Workspace["Game Room"].Spawn.Position.X,game.Workspace["Game Room"].Spawn.Position.Y,game.Workspace["Game Room"].Spawn.Position.Z))
v.TeamColor = BrickColor.new("Dark stone grey")
v.leaderstats.Round.Value = v.leaderstats.Round.Value+1
end
end

nothing happens :\
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:19 PM
[b]
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:22 PM
[b2]
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:26 PM
[3]43b
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:28 PM
[4]sdb
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:33 PM
qq ne1
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:39 PM
i cri
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:48 PM
...
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:50 PM
Hi me, how are you doing me?
Report Abuse
AnimeWiki is not online. AnimeWiki
Joined: 26 Oct 2014
Total Posts: 460
10 Jul 2015 07:53 PM
cough cough maybe u need to run function if you already did i will fix ur script but first try running function start() :p
Report Abuse
beaujibby is not online. beaujibby
Joined: 30 Aug 2008
Total Posts: 3822
10 Jul 2015 07:57 PM
I did, I'm not that bad qq
Report Abuse
AnimeWiki is not online. AnimeWiki
Joined: 26 Oct 2014
Total Posts: 460
10 Jul 2015 08:00 PM
--[[function start()
for _,v in pairs(game.Players:GetChildren()) do
v.Character.Torso.CFrame = CFrame.new(Vector3.new(game.Workspace["Game Room"].Spawn.Position.X,game.Workspace["Game Room"].Spawn.Position.Y,game.Workspace["Game Room"].Spawn.Position.Z))
v.TeamColor = BrickColor.new("Dark stone grey")
v.leaderstats.Round.Value = v.leaderstats.Round.Value+1
end
end
]]


local Players = game:GetService("Players")
local GameRoom = workspace:WaitForChild("Game Room")
local Spawn = GameRoom:WaitForChild("Spawn")

local start = function()
for i=1,#Players.NumPlayers,1 do
local Player = Players:GetPlayers()[i]
Player.Neutral = false
Player.TeamColor = BrickColor.new("Dark stone grey")
if Player and Player.Character then
local Character = Player.Character
spawn(function()
local Torso = Character:WaitForChild("Torso")
if Torso then
Torso.CFrame = CFrame.new(Spawn.CFrame.p)
end
end)
end
spawn(function()
local Leaderstats = Player:WaitForChild("leaderstats")
local Round = Leaderstats:WaitForChild("Round")
Round.Value = Round.Value + 1
end)
end
end


start()


maybe ?
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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