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: AFK Punish GUI Script

Previous Thread :: Next Thread 
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
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
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
02 Feb 2013 09:12 PM
Do you know how to script?
Report Abuse
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
02 Feb 2013 09:14 PM
I know basic scripting. I'm not advanced...
Report Abuse
YellowBrick1 is not online. YellowBrick1
Joined: 06 May 2009
Total Posts: 865
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
beastyfootballtim is not online. beastyfootballtim
Joined: 30 Oct 2010
Total Posts: 1080
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 is not online. 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
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