|
| 29 Jan 2013 06:39 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.
|
|
|
| Report Abuse |
|
|
|
| 29 Jan 2013 06:45 PM |
How about putting them in Lighting?
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
| |
|
Usering
|
  |
| Joined: 18 Aug 2012 |
| Total Posts: 10281 |
|
|
| 29 Jan 2013 07:01 PM |
for punishing: player.Character.Parent = game.Lighting
for unpunishing: game.Lighting:FindFirstChild(player.Name).Parent = workspace
[ Content Trolled by Sorcus ] |
|
|
| Report Abuse |
|
|
|
| 30 Jan 2013 06:49 AM |
Then would it be:
if game.Players.PlayerAdded:connect(function(Player) local f = Instance.new("TextButton") local s = Instance.new("ScreenGui") f.Parent = s s.Parent = Player.PlayerGui f.Position = UDim2.new(0.1, 0, 0.1, 0) f.Size = UDim2.new(0.5 0, 0.5, 0) f.MouseButton1Down:connect(function() print("You clicked a text GUI!") then player.Character.Parent = game.Lighting
|
|
|
| Report Abuse |
|
|
iCookieNL
|
  |
| Joined: 24 May 2009 |
| Total Posts: 1103 |
|
| |
|
|
| 30 Jan 2013 01:08 PM |
| A punish user GUI script. At least I think thats what it does. Anybody know how to write the script? |
|
|
| Report Abuse |
|
|
digpoe
|
  |
| Joined: 02 Nov 2008 |
| Total Posts: 9092 |
|
|
| 30 Jan 2013 01:09 PM |
| He didn't read 'A punish user GUI script.' He read a whole load of totally wrongly-syntaxed coding. |
|
|
| Report Abuse |
|
|
|
| 30 Jan 2013 01:31 PM |
| I know...I have no clue how to write this script....Does anyone know? |
|
|
| Report Abuse |
|
|
|
| 30 Jan 2013 02:07 PM |
Obviously... You need to learn more about the basics of Lua. It is really easy to write these scripts...
~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】 |
|
|
| Report Abuse |
|
|
Taniss99
|
  |
| Joined: 15 Dec 2007 |
| Total Posts: 1707 |
|
|
| 30 Jan 2013 03:05 PM |
| Just set the characters parent to lightning... lrn2lua |
|
|
| Report Abuse |
|
|
|
| 30 Jan 2013 05:19 PM |
| Yeah I know that but how do I use player.Character.Parent = game.Lighting with the click function? |
|
|
| Report Abuse |
|
|
| |
|
Neo1035
|
  |
| Joined: 25 Jun 2008 |
| Total Posts: 13076 |
|
|
| 31 Jan 2013 07:42 AM |
So you want to learn this:
1. How to format a function http://wiki.roblox.com/index.php/Function (Read event triggered function for what you want to do specifically)
2. What event to call on the Gui http://wiki.roblox.com/index.php/Beginner's_GUI_Tutorial (Read the reference. Assuming it's a TextButton, look under the TextButton section in the reference for the event you want to use)
Here's a hint. When writing the function, you're going to want to use an if statement and an elseif statement. |
|
|
| Report Abuse |
|
|
| |
|
|
| 02 Feb 2013 08:40 PM |
| Bump. Please will someone write this script for me? I tried countless of times and they all failed. |
|
|
| Report Abuse |
|
|