rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
| |
|
|
| 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
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
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 |
|
|
|
| 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
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
rrytry
|
  |
| Joined: 21 Aug 2012 |
| Total Posts: 4151 |
|
| |
|
|
| 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 |
|
|