|
| 14 Oct 2012 07:03 AM |
function kill() script.Parent.Parent.Parent.Parent.Character.Humanoid.Health = 0 end
script.Parent.MouseButton1Down:connect(kill) |
|
|
| Report Abuse |
|
|
awas3
|
  |
| Joined: 24 Oct 2010 |
| Total Posts: 2854 |
|
|
| 14 Oct 2012 07:23 AM |
Easier way:
function kill() script.Parent.Parent.Parent.Parent.Character:BreakJoints() end
script.Parent.MouseButton1Down:connect(kill)
~A3~ |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 07:53 AM |
best way if , since the path wont always be the same. Also put this in a localscript, inside a gui button.
function kill() game.Players.LocalPlayer.Character:BreakJoints() end
script.Parent.MouseButton1Down:connect(kill) |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 07:54 AM |
| idk why i put the "if" in my sentance ._. |
|
|
| Report Abuse |
|
|
human
|
  |
| Joined: 06 May 2007 |
| Total Posts: 2765 |
|
|
| 14 Oct 2012 07:55 AM |
| It's easier/more efficient to use an anonymous function. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 08:15 AM |
script.Parent.MouseButton1Click:connect(function() game.Players.LocalPlayer.Character:BreakJoints() end)
--In a local script |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 09:38 AM |
| Local isn't needed for an easy reset GUI script. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 09:40 AM |
| OH, some good sword fighter has commented! :D |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 09:41 AM |
| Well, I did the normal script. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 09:54 AM |
Talkin' to yourself again?
http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|
|
| 14 Oct 2012 08:24 PM |
| actually, using a local script is probably the most fool proof way |
|
|
| Report Abuse |
|
|
| |
|
|
| 15 Oct 2012 02:09 PM |
Because it's easier to use LocalPlayer.At least, IMO.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2012 02:11 PM |
YEAH BUT WHY? THAT IS WHAT I WANT TO HEAR? :Yelling mode:
~Immi |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2012 02:12 PM |
Local scripts are much more efficient and can find the player you want to do things to much easier... Here's two of the best ways I can think of:
1) efficiency script.Parent.MouseButton1Down:wait() game:GetService("Players").LocalPlayer.Character:BreakJoints()
2) looks script.Parent.Parent.Parent:LoadCharacter()
-- or, if you don't know how many parents it is until you find the character... for _,v in pairs(game:GetService("Players"):GetPlayers())do if script:IsDescendantOf(v)then v:LoadCharacter() end end |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2012 02:12 PM |
| Ok, I understand it already. |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2012 02:13 PM |
| Yeah, but, it was just an easy GUI script, and it is just a button to click, and than you die. |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2012 02:14 PM |
| Hey, thanks for getting me replies, that will get me reply back and getting more posts! |
|
|
| Report Abuse |
|
|
|
| 15 Oct 2012 02:15 PM |
Plus, your script wouldn't always work, without editing it. If a beginner used it, he probably won't know how many parents to use. If you used a LocalScript and Game.Players.LocalPlayer, that wouldn't necessarily be a problem.
¤ ¤ † K M X D † ¤ ¤ |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 16 Oct 2012 09:22 AM |
| Why should we reply when you've already been helped? |
|
|
| Report Abuse |
|
|
|
| 16 Oct 2012 12:02 PM |
^ I just want me to get more posts.
~Immi |
|
|
| Report Abuse |
|
|
|
| 18 Oct 2012 04:03 PM |
LOL.
http://www.roblox.com/CeaselessSouls-Admin-Commands-Gui-based-item?id=92856199 -- Take one and enjoy! Read the description, has a lot of information. |
|
|
| Report Abuse |
|
|
|
| 19 Oct 2012 12:56 AM |
| Same noob who spams for place visits. |
|
|
| Report Abuse |
|
|