I want to make first person arms that move with your screen, and move around the direction you move them. But I can’t figure out how to do it. I checked out Stack Overflow but they just found my question as something that they don’t need to deal with so… Yea.
I wanted it to be with a tool, and I need some methods on doing it. I don’t wanna ask for a script because I want to know how it works so I can fix it in the future and do it again in the future.
Anything that can help me would be appreciated. I preferably want posts that explain how it works and how to use it. If not, posts that have to do with it are appreciated as well.
I wanted to try using Viewport Frames but I am not an expert on those, and I don’t think you can do it with tools. Since I am making a flashlight.
Have a renderstepped event always setting the CFrame of the cameraPart to the cameras CFrame.
Create animations and set them to looped. check when the player is running,walking or idle and if their state changes, stop all animations and play the correct one.
I assume you want to see the arms? You can do this to make the arms visible, this’ll also work with animations
R6 models:
local self,player = script.Parent,game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local humanoid = char:WaitForChild("Humanoid") -- waits for the humanoid in the character
function antiTrans(part)
if part and part:IsA("BasePart") and( part.Name=="Left Arm" or part.Name=="Right Arm") then -- checks if a part and is a arm
part.LocalTransparencyModifier = part.Transparency
part.Changed:connect(function (property)
part.LocalTransparencyModifier = part.Transparency--Changes the local modifyer(client side only)
end)
end
end
for _,v in pairs(char:GetChildren()) do
antiTrans(v) -- adds all parts
end
R15 models:
local self,player = script.Parent,game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:wait()
local humanoid = char:WaitForChild("Humanoid") -- waits for the humanoid in the character
function antiTrans(part)
if part and part:IsA("BasePart") and( part.Name=="LeftUpperArm" or part.Name=="LeftLowerArm" or part.Name=="LeftHand" or part.Name=="RightUpperArm" or part.Name=="RightLowerArm" or part.Name=="RightHand") then -- checks if a part and is a arm
part.LocalTransparencyModifier = part.Transparency
part.Changed:connect(function (property)
part.LocalTransparencyModifier = part.Transparency--Changes the local modifyer(client side only)
end)
end
end
for _,v in pairs(char:GetChildren()) do
antiTrans(v) -- adds all parts
end
Well I want to know how to see the arms wherever your camera is instead of the arms being in one place. I want to also make the arms move when you move your camera. So wherever you look, your arms will be there, and the arms move left right up down depending on where you look.
I am not asking for scripts, but rather just looking for some tutorials that would help. I preferably want ones that tell how it works and how to use it, its so I can fix it in the future.
Do you know what renderstepped events are and the basics of CFrame? Every frame, set the CFrame of the camera part to the camera’s CFrame. I do not think you need a tutorial. Make this in a client script.
Alvin blox has a videos about the basics of cframes and the dev king has a tutorial about runservice(he explains how to use a renderstepped event)