generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Punish User GUI script

Previous Thread :: Next Thread 
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
29 Jan 2013 06:45 PM
How about putting them in Lighting?

~ṡсɾïρτïṉģ hεlρεɾṡ ۩ lυαlεαɾṉεɾṡ ④ øƒвќṃṿј~ ღ ▂▃▅▆█ρεώḋïερïε☄сυτïερïε█▆▅▃▂ღ 【▬】
Report Abuse
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
29 Jan 2013 06:54 PM
How would I do that?
Report Abuse
Usering is not online. 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
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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 is not online. iCookieNL
Joined: 24 May 2009
Total Posts: 1103
30 Jan 2013 08:09 AM
^
dafuq did i just read
Report Abuse
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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 is not online. 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
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
30 Jan 2013 01:31 PM
I know...I have no clue how to write this script....Does anyone know?
Report Abuse
Jonah13249 is not online. Jonah13249
Joined: 09 Oct 2009
Total Posts: 2105
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 is not online. Taniss99
Joined: 15 Dec 2007
Total Posts: 1707
30 Jan 2013 03:05 PM
Just set the characters parent to lightning... lrn2lua
Report Abuse
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
31 Jan 2013 07:06 AM
Bump
Report Abuse
Neo1035 is not online. 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
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
31 Jan 2013 05:06 PM
Bump
Report Abuse
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image