Hello, I am trying to make FPS system I know how to make hands visible in first person but I have no idea how to make the hands in FPS to move with mouse cursor (only when moving it up and down, so right and left not included)
local player = game:GetService("Players").LocalPlayer
local character = player.character or player.characterAdded:Wait()
game:GetService("RunService").RenderStepped:Connect(function()
for i, part in pairs(character:GetChildren())do
if string.match(part.Name, "Arm") or string.match(part.Name, "Hand") then
for _,v in pairs(character:GetChildren()) do
if v:IsA("Folder") and v.Name ~= "Scoped Kar98k" and v.Name ~= "Springfield" then
if v:IsA("Tool") and v.Name ~= "Springfield" then
part.LocalTransparencyModifier = 0
end
end
end
end
end
end)
That is how I made arms show in fps but I want the hands moves up and down when in FPS
This is called bobble, you would use math.sin for this, changing the speed of how much it bobbles, and how wide is the bobble for the x axis and the y axis, if you are still learning trigonometry I recommend watching okeanskiy on how to make a bobble camera, also if you want your whole body to show you would do string.match(part.Name, “Arm”) or string.match(part.Name, “Hand”) and string.Match(part.name, “Torso”) or string.Match(part.Name, “UpperTorso”)
Tip: don’t use camera offset, or your just offsetting your camera not the hands
Well the thing is I want the hands (While holding gun) to move up when moving the mouse up and goes down when mouse etc etc, idk if you got what i mean
السلام عليكم
لا اعرف ماذا تريد بشكل دقيق لكن هناك منشور يمكنك ان تطلع عليه
حتى استطيع ان اقدم المساعدة لك يجب ان اعرف تفاصيل اكثر
يمكنك ان تراسلني على Discord
سنبحث معا وسنصل ان شاء الله لما تريد
إنه يبحث عن كيفية جعل ذراعيه المرئيتين ينظران لأعلى عندما تنظر كاميرا الشخصيات ، أخبرته أن يصنع يديه المخصصين ، لكني أريد أن أعرف رأيك. آسف إذا كان هذا يبدو غريبًا ، فقد استخدمت مترجم جوجل