Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

My First Person arm showing script isn't working?

Asked by 7 years ago

I'm making a script that is trying to make the player's arms show in First person and it isn't working.

local player = game.Players.LocalPlayer local character = player.Character game:GetService("RunService").RenderStepped:connect(function() character.LeftArm.LocalTransparencyModifier = 0 end)

And there's nothing related in the output for some reason.

0
PLEASE ANSWER robertwoodsy5115 16 — 7y

1 answer

Log in to vote
0
Answered by
FiredDusk 1466 Moderation Voter
7 years ago
Edited 7 years ago
local player = game.Players.LocalPlayer
local character = player.Character
if not character then
    character = player.CharacterAdded:wait()
end

game:GetService("RunService").RenderStepped:connect(function()
    if character:findFirstChild("Right Arm") then
        character["Right Arm"].LocalTransparencyModifier = 0
    end

    if character:findFirstChild("Right Arm") then
        character["Left Arm"].LocalTransparencyModifier = 0
    end
end)
Ad

Answer this question