|
| 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 |
|
|
| |
|
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 |
|
|
|
| 04 Aug 2011 02:44 PM |
| Sorry, thanks, I am new to this, don't get mad at me D: |
|
|
| Report Abuse |
|
|
|
| 04 Aug 2011 02:45 PM |
| I never bothered to learn pcall. |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 25 Sep 2009 |
| Total Posts: 245 |
|
| |
|
|
| 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
|
  |
| 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 |
|
|