|
| 16 Jul 2013 10:19 PM |
This script controls parts in a morph that are on the player. All it does is make one part transparent and not able to collide and vice versa for another. Than it puts them back to normal to make it appear as if the right arm moved. It works great in play solo but in play mode nothing happens. I have tried start player to test this out but I can never connect to it.
script.Parent.Equipped:connect(function(m) m.Button1Down:connect(function() Person = script.Parent.Parent.Chest RightArm = Person.rightarm Arm = Person.arm1
Arm.Transparency = 1 Arm.CanCollide = false RightArm.Transparency = 0 RightArm.CanCollide = true wait(1) Arm.Transparency = 0 Arm.CanCollide = true RightArm.Transparency = 1 RightArm.CanCollide = false end) end)
|
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 10:22 PM |
script.Parent.Equipped:connect(function(m) m.Button1Down:connect(function() Person = script.Parent.Parent.Chest RightArm = Person.rightarm Arm = Person.arm1
Arm.Transparency = 1 Arm.CanCollide = false RightArm.Transparency = 0 RightArm.CanCollide = true wait(1) Arm.Transparency = 0 Arm.CanCollide = true RightArm.Transparency = 1 RightArm.CanCollide = false (run) (end) (end) |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 10:22 PM |
| Try that, Maybe it'd work, I'm kinda new to scripting/building |
|
|
| Report Abuse |
|
|
|
| 16 Jul 2013 10:26 PM |
| Thanks for trying but it didnt work |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 16 Jul 2013 10:43 PM |
| Try function() on top line? |
|
|
| Report Abuse |
|
|
| |
|
ninja5566
|
  |
| Joined: 14 Jan 2009 |
| Total Posts: 5233 |
|
|
| 17 Jul 2013 11:29 PM |
easiest fix ever
wait() ----BOOOOOOOOM script.Parent.Equipped:connect(function(m) m.Button1Down:connect(function() Person = script.Parent.Parent.Chest RightArm = Person.rightarm Arm = Person.arm1
Arm.Transparency = 1 Arm.CanCollide = false RightArm.Transparency = 0 RightArm.CanCollide = true wait(1) Arm.Transparency = 0 Arm.CanCollide = true RightArm.Transparency = 1 RightArm.CanCollide = false end) end)
Now put dat as a localscript |
|
|
| Report Abuse |
|
|