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: Help, please?

Previous Thread :: Next Thread 
DragonWarlord101 is not online. DragonWarlord101
Joined: 26 Oct 2008
Total Posts: 363
04 Aug 2011 02:42 PM
Can anyone help me with this script?

while true do
wait()
pcall(function () game.Players.noobnamehere:Remove() end)

The error is this:

[string "f"]:4: 'end' expected (to cloes 'while' at line 1) near ',eof.'

[replace , with < and . with >
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 02:43 PM
*facepalm*
Add an end
Report Abuse
myrco1001 is not online. myrco1001
Joined: 17 Sep 2010
Total Posts: 2574
04 Aug 2011 02:44 PM
while true do
wait()
pcall(function () game.Players.noobnamehere:Remove() end)
end
Report Abuse
DragonWarlord101 is not online. DragonWarlord101
Joined: 26 Oct 2008
Total Posts: 363
04 Aug 2011 02:44 PM
Sorry, thanks, I am new to this, don't get mad at me D:
Report Abuse
citymaster22 is not online. citymaster22
Joined: 10 Jan 2010
Total Posts: 4993
04 Aug 2011 02:45 PM
I never bothered to learn pcall.
Report Abuse
andrija11 is not online. andrija11
Joined: 25 Sep 2009
Total Posts: 245
04 Aug 2011 02:47 PM
LOL that is hard but you can try this while true do wait() game.Players.noobnamehere:Remove() end
_______________________________________________________________
OR

local deb = true
function onTouched(hit)
if deb == true then
deb = false
hit.Parent.Humanoid.Health = 0
wait(1)
deb = true
end
end


Report Abuse
andrija11 is not online. andrija11
Joined: 25 Sep 2009
Total Posts: 245
04 Aug 2011 02:48 PM
Did i help?
Report Abuse
DragonWarlord101 is not online. DragonWarlord101
Joined: 26 Oct 2008
Total Posts: 363
04 Aug 2011 02:49 PM
Thanks all, but someone has already halped me (myrco1001) and yes, andrija11, you helped a little bit ;3
Report Abuse
andrija11 is not online. andrija11
Joined: 25 Sep 2009
Total Posts: 245
04 Aug 2011 02:49 PM
sory i said wrong XD
local deb = true
function onTouched(hit)
if deb == true then
deb = false
hit.Parent.Humanoid.Health = 0
wait(1) --waits 1 seconds
deb = true
end --ends if
end --ends function

game.Workspace.andrija11.Torso.Touched:connect(onTouched)
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