|
| 29 Sep 2015 06:08 PM |
My game just froze after I added this code in.
ON the unequip fuction for my tool I added in game.Player.Humanoid:UnequipTools() then game.Player.Backpack:ClearAllChidlren()
-- excuse the syntax and grammar but it was correct and crashed the game. What happened? |
|
|
| Report Abuse |
|
|
| |
|
|
| 29 Sep 2015 06:41 PM |
It's incorrect for one thing, and you have no proof it did it properly.
But it didn't crash the game; another one of your poorly coded scripts did. |
|
|
| Report Abuse |
|
|
Darkenus
|
  |
| Joined: 17 Jul 2014 |
| Total Posts: 1997 |
|
|
| 29 Sep 2015 06:50 PM |
> game.Player.Humanoid:UnequipTools() --Not correct. Should be:
game.Players.PUTNAMEHERE.Character.Humanoid:UnequipTools()
as long as you defined everything correctly and you waited for the player/character to load.
_____________________________________________________________
>game.Player.Backpack:ClearAllChidlren() --Not correct. Should be:
game.Players.PUTNAMEHERE.Backpack:ClearAllChildren()
as long as you defined everything correctly and you waited for the player/character to load. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2015 07:52 PM |
guys
"- excuse the syntax and grammar" which means I just wrote that really quickly giving you the idea of what it does. I didn't actually write it correctly on this forum due to lack of time.
There is no errors in my code but it crashed the game.
But hey if you still don't believe me
script.Parent.Unequipped:connect(function(goAway) game.Players.LocalPlayer.Character.Humanoid:UnequipTools() game.Players.LocalPlayer.Backpack:ClearAllChildren() end)
-- crash. |
|
|
| Report Abuse |
|
|
|
| 29 Sep 2015 07:55 PM |
"But it didn't crash the game; another one of your poorly coded scripts did."
negatory, my tool worked perfectly up until this point. |
|
|
| Report Abuse |
|
|
|
| 30 Sep 2015 05:45 PM |
"negatory, my tool worked perfectly up until this point. "
negatory, the script is fine and you made a dumb error you don't even realize. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 05:12 PM |
Well please tell me the error, and that would make the script not perfect... Thank you troll. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 07:08 PM |
You made a dumb error in ANOTHER script.
As I've said your script works perfectly fine. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 08:29 PM |
| Please point this error out as I just said. Otherwise it's not my code because that above is my code... |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 08:40 PM |
| warspyking, gtfo, you're not helping. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 08:44 PM |
| He's not getting any help unless he posts relevant code, until then he's fresh Get Out meat. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 08:45 PM |
| Did you just call me delicious? ................................ |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 08:59 PM |
'he's'
Not you, matt, but you can get out too. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 09:04 PM |
| You ugly fok, you get out. Piece of fok. Looking like you devour'd sonic.exe during the prom. Piece of fok. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 09:33 PM |
"He's not getting any help unless he posts relevant code, until then he's fresh Get Out meat."
I posted my code that crashed the game which is why I posted it in the first place I wanted to know why but all I get is troll response from this waspy guy. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 09:49 PM |
| Try captioning e in unequip |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 09:53 PM |
| That wont change anything. it doesn't matter anymore I fixed it already. |
|
|
| Report Abuse |
|
|
|
| 04 Oct 2015 09:54 PM |
| Oh ok, sorry I wasn't much help. :( |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2015 04:15 PM |
| It's ok thanks for trying tho :) |
|
|
| Report Abuse |
|
|
|
| 10 Oct 2015 04:26 PM |
| I don't see why that would cause you to crash. Either that was completely coincidental or there is other code which is behind the crash. |
|
|
| Report Abuse |
|
|