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
 

[ Content Deleted ]

Previous Thread :: Next Thread 
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
17 Mar 2013 03:24 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
17 Mar 2013 03:28 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
17 Mar 2013 03:32 PM
[ Content Deleted ]
Report Abuse
dog456pop248 is not online. dog456pop248
Joined: 24 Aug 2008
Total Posts: 3977
17 Mar 2013 03:48 PM
Humanoid.Health = 500
Report Abuse
yomomma128 is not online. yomomma128
Joined: 13 Nov 2008
Total Posts: 23503
17 Mar 2013 03:53 PM
game.Players.LocalPlayer["Right Arm"].Transparency = 0.7
game.Players.LocalPlayer["Left Arm"].Transparency = 0.7
game.Players.LocalPlayer["Right Leg"].Transparency = 0.7
game.Players.LocalPlayer["Left Leg"].Transparency = 0.7
game.Players.LocalPlayer["Head"].Transparency = 0.7
game.Players.LocalPlayer["Torso"].Transparency = 0.7
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
17 Mar 2013 04:00 PM
[ Content Deleted ]
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
17 Mar 2013 04:15 PM
Some humanoid properties only work in a local scripts, so you should consider using one of them.



gui = script.Parent
player = game.Players.LocalPlayer
h = player.Character.Humanoid

gui.MouseButton1Down:connect(function()
h.WalkSpeed = 32
--etc
--etc
end)
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
17 Mar 2013 04:17 PM
I personally would use the GetChildren method with classname because some people wear hats that have different names so it also has to become transparent.
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
17 Mar 2013 04:26 PM
[ Content Deleted ]
Report Abuse
rrytry is not online. rrytry
Joined: 21 Aug 2012
Total Posts: 4151
17 Mar 2013 04:40 PM
[ Content Deleted ]
Report Abuse
xXStealthsniper200Xx is not online. xXStealthsniper200Xx
Joined: 30 Nov 2011
Total Posts: 2037
17 Mar 2013 05:12 PM
This is a Mouse click function

gui = script.Parent <-- Shortcut to your object
player = game.Players.LocalPlayer
h = player.Character.Humanoid

gui.MouseButton1Down:connect(function() <-- MouseButton1Down
h.WalkSpeed = 32
--etc
--etc
end)

It means when you click with Button 1 (Left Click) on the object named "gui."

So let's say the script was this.

Start = script.Parent.Menu.StartGame
player = game.Players.LocalPlayer
h = player.Character.Humanoid

Start.MouseButton1Down:connect(function()
h.WalkSpeed = 32
Start:Destroy()
end)

The following would run and connect to Start aka StartGame in my Workspace and the line below the function is what's going on once clicked.

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