|
| 02 Feb 2013 09:04 PM |
How would I make such a script that punishes the user once clicked and then unpunishes the user when the user clicks again?
It's for an AFK GUI and I can't do the simple 'ff and freeze' script because the user will still be able to use guns.
I tried countless of times trying to make this script but they all failed. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2013 09:05 PM |
Put the character in game.Lighting. If they are already in lighting, put them back in workspace. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2013 09:10 PM |
| I know I tried. But do you know how when you punish someone and when you un-punish someone and then they are frozen in a postion and walk funny? Well, I want to prevent that but I don't know how. Plus, how do I apply game.Lighting to a GUI click? |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2013 09:12 PM |
| Do you know how to script? |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2013 09:14 PM |
| I know basic scripting. I'm not advanced... |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2013 09:16 PM |
| I'm guessing by the way you say the character walks funny, that the Animate script broke after being released back into workspace. Try re-enabling it. |
|
|
| Report Abuse |
|
|
|
| 02 Feb 2013 09:21 PM |
| Honestly, I have no idea how to even write this script. I tried but I failed and I asked a friend and he doesn't even know how. |
|
|
| Report Abuse |
|
|
crouton04
|
  |
| Joined: 07 Jul 2010 |
| Total Posts: 4459 |
|
|
| 02 Feb 2013 09:59 PM |
Put this in the gui button in a local script
plr = game.Players.LocalPlayer char = {} table.insert(char, plr.Character)
script.Parent.MouseButton1Click:connect() if plr.Character.Parent == game.Workspace then plr.Character.Parent = game.Lighting else plr.Character.Parent = game.Workspace end end)
I can't script better than you. |
|
|
| Report Abuse |
|
|