Hergest
|
  |
| Joined: 17 May 2011 |
| Total Posts: 309 |
|
|
| 01 May 2013 04:02 PM |
Started sticking my nose in GUI's. Made a ScreenGUI with a frame with a textbox in it containing the following script: ------------------------------------------------ button = script.Parent player = Script.Parent.Parent.Parent.Parent
button.MouseClick1Button:connect(function() if player.Character then player.Character:Breakjoints() end end
---------------------------------------------------- But when i click the Textbox in-game. It prompts me to change the text instead of dying. Please help. |
|
|
| Report Abuse |
|
|
Hergest
|
  |
| Joined: 17 May 2011 |
| Total Posts: 309 |
|
| |
|
btft
|
  |
| Joined: 19 Feb 2011 |
| Total Posts: 1512 |
|
|
| 01 May 2013 04:25 PM |
button = script.Parent; player = game.Players.LocalPlayer;
button.MouseButton1Click:connect(function() if player.Character then player.Character:BreakJoints(); end end)
--local script. |
|
|
| Report Abuse |
|
|
velibor
|
  |
| Joined: 24 Nov 2009 |
| Total Posts: 1003 |
|
|
| 01 May 2013 04:27 PM |
Put inside LocalScript.
script.Parent.MouseButton1Click:connect(function() if Game.Players.LocalPlayer.Character then Game.Playes.LocalPlayer:LoadCharacter() end end)
|
|
|
| Report Abuse |
|
|