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

Help with Animation?

Asked by 8 years ago

So i am making a first person game and i have guns in it but when i add the reload animations to the gun they are not visible to the player since it is first person so how would i get around this and make the arms visible?

1 answer

Log in to vote
1
Answered by 8 years ago

BaseParts has a property called LocalTransparencyModifier.

local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:wait()

game:GetService("RunService").RenderStepped:connect(function()
    Character["Right Arm"].LocalTransparencyModifier = 0
    Character["Left Arm"].LocalTransparencyModifier = 0
end)
Ad

Answer this question