|
| 02 Jun 2017 09:38 AM |
| How do I make a script that can access my arms to make them invisible? This needs to be a loop as well. |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2017 09:38 AM |
Why would you need to use a loop to make them invisible lol!
|
|
|
| Report Abuse |
|
|
|
| 02 Jun 2017 09:40 AM |
game.Players.PlayerAdded:connect(function(player) player.CharacterAdded:connect(function(character) character["Left Arm"].Transparency = 1 character["Right Arm"].Transparency = 1 end) end)
|
|
|
| Report Abuse |
|
|
VoltCode
|
  |
| Joined: 21 Aug 2016 |
| Total Posts: 329 |
|
|
| 02 Jun 2017 09:42 AM |
This is inside a localscript, And Don't know why you want a loop but here:
p = game.Players.LocalPlayer la = p.Character:FindFirstChild("") -- What your left arm is called (R6 or R15) ra = p.Character:FindFirstChild("") -- What your right arm is called (R6 or R15) while true do wait() if la.Transparency == 1 and ra.Transparency == 1 then else la.Transparency = 1 ra.Transparency = 1 end end
⚡ ϟ ⚡ Electrifying Code Since 2016 ⚡ ϟ ⚡ |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2017 09:43 AM |
| I forgot to say that it needed to be a touched script. Also it needs to be looped because the gun that I'm using with a morph when unequipped changes the character's arms back to normal and makes really ugly blocks where the arms are. |
|
|
| Report Abuse |
|
|
VoltCode
|
  |
| Joined: 21 Aug 2016 |
| Total Posts: 329 |
|
|
| 02 Jun 2017 09:43 AM |
script.Parent.Touched:connect(function(t) p = t.Parent la = p:FindFirstChild("") -- What your left arm is called (R6 or R15) ra = p:FindFirstChild("") -- What your right arm is called (R6 or R15) while true do wait() if la.Transparency == 1 and ra.Transparency == 1 then else la.Transparency = 1 ra.Transparency = 1 end end
end)
⚡ ϟ ⚡ Electrifying Code Since 2016 ⚡ ϟ ⚡ |
|
|
| Report Abuse |
|
|
| |
|
VoltCode
|
  |
| Joined: 21 Aug 2016 |
| Total Posts: 329 |
|
|
| 02 Jun 2017 09:47 AM |
No need
⚡ ϟ ⚡ Electrifying Code Since 2016 ⚡ ϟ ⚡ |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2017 09:49 AM |
| When I touch the block this error comes up: Workspace.Part.Script:7: attempt to index global 'la' (a nil value). in line 7 |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2017 09:57 AM |
script.Parent.Touched:connect(function(player) local plr = game.Players:GetPlayerFromCharacter(player.Parent) if plr then local la = plr.Character:FindFirstChild("Left Arm") local ra = plr.Character:FindFirstChild("Right Arm") if la and ra then la.Transparency = 1 ra.Transparency = 1 la.Changed:connect(function() la.Transparency = 1 end) ra.Changed:connect(function() da.Transparency = 1 end) end)
I'm on mobile so this took forever |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2017 10:10 AM |
| The very bottom parenthesis are highlighted saying expected identifier, got ')' |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2017 11:44 AM |
Fix the script yourself for once
bamboozled |
|
|
| Report Abuse |
|
|