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 » Scripters
Home Search
 

Re: Invisible Arms

Previous Thread :: Next Thread 
DeadlyHVAR10 is online. DeadlyHVAR10
Joined: 14 Oct 2011
Total Posts: 21
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
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
02 Jun 2017 09:38 AM
Why would you need to use a loop to make them invisible lol!


Report Abuse
Valyrian_Advisor is not online. Valyrian_Advisor
Joined: 13 Apr 2013
Total Posts: 1703
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 is not online. 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
DeadlyHVAR10 is online. DeadlyHVAR10
Joined: 14 Oct 2011
Total Posts: 21
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 is not online. 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
DeadlyHVAR10 is online. DeadlyHVAR10
Joined: 14 Oct 2011
Total Posts: 21
02 Jun 2017 09:46 AM
is it still local?
Report Abuse
VoltCode is not online. VoltCode
Joined: 21 Aug 2016
Total Posts: 329
02 Jun 2017 09:47 AM
No need


⚡ ϟ ⚡ Electrifying Code Since 2016 ⚡ ϟ ⚡
Report Abuse
DeadlyHVAR10 is online. DeadlyHVAR10
Joined: 14 Oct 2011
Total Posts: 21
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
TheBeastSword is online. TheBeastSword
Joined: 28 Oct 2011
Total Posts: 213
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
DeadlyHVAR10 is online. DeadlyHVAR10
Joined: 14 Oct 2011
Total Posts: 21
02 Jun 2017 10:10 AM
The very bottom parenthesis are highlighted saying expected identifier, got ')'
Report Abuse
TjazBuilder is not online. TjazBuilder
Joined: 27 Sep 2013
Total Posts: 845
02 Jun 2017 11:44 AM
Fix the script yourself for once


bamboozled
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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