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: how do I fix this scripting error

Previous Thread :: Next Thread 
sd10099 is not online. sd10099
Joined: 13 Sep 2011
Total Posts: 12804
29 Jun 2015 11:48 PM
while true do
local c = game.Players:GetChildren()
if c.userId == d1 then
end
else
d2=c.userId
end


Send me trades! https://www.youtube.com/watch?v=xTFm7p7avo4
Report Abuse
LongKillKreations is not online. LongKillKreations
Joined: 14 Feb 2014
Total Posts: 4502
29 Jun 2015 11:49 PM
"how do I fix this error"

*scans post for error*
where the hell is the error
post the error
thank you
Report Abuse
sd10099 is not online. sd10099
Joined: 13 Sep 2011
Total Posts: 12804
29 Jun 2015 11:52 PM
ok it just says "Expected 'end' to close 'do' at line 15"
and heres the rest of the script line 15 is the "while true do"

function Enter(d)
local d1=d.userId
game.Players.ChildAdded:connect(Enter)
end
while true do
local c = game.Players:GetChildren()
if c.userId == d1 then
end
else
d2=c.userId
end
end


Send me trades! https://www.youtube.com/watch?v=xTFm7p7avo4
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
29 Jun 2015 11:57 PM
lmao

this will crash your studio bc there's no wait in the loop
Report Abuse
CrowClaws is not online. CrowClaws
Joined: 04 Jul 2010
Total Posts: 4466
29 Jun 2015 11:57 PM
also while loops don't have an else
wtf are you doing

http://wiki.roblox.com/index.php?title=Loops
Report Abuse
sd10099 is not online. sd10099
Joined: 13 Sep 2011
Total Posts: 12804
29 Jun 2015 11:58 PM
@crow yeah I just realised that a min ago but the else is messing up the script


Send me trades! https://www.youtube.com/watch?v=xTFm7p7avo4
Report Abuse
sd10099 is not online. sd10099
Joined: 13 Sep 2011
Total Posts: 12804
29 Jun 2015 11:58 PM
owait oops loll
thx


Send me trades! https://www.youtube.com/watch?v=xTFm7p7avo4
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
30 Jun 2015 12:01 AM
Well u only have 12 lines of code, so idk what ur on rn but it must be something heavy...
Report Abuse
sd10099 is not online. sd10099
Joined: 13 Sep 2011
Total Posts: 12804
30 Jun 2015 12:02 AM
i took that part out of the entire script but ik this was the problem


Send me trades! https://www.youtube.com/watch?v=xTFm7p7avo4
Report Abuse
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
30 Jun 2015 12:06 AM
well how tf r we supposed to debug if u leave out the line that it's the source of the error!!!
Report Abuse
sd10099 is not online. sd10099
Joined: 13 Sep 2011
Total Posts: 12804
30 Jun 2015 12:20 AM
but i didnt


Send me trades! https://www.youtube.com/watch?v=xTFm7p7avo4
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