Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

falsearms1 & 2 Weld to Head?

People, I asked earlier, nobody answered! Please answer this time! I can't remember but in the weld Script was something like arms[1] = falsearm1 think, so how would I weld those fake arms to the head?

2 comments

0

THE HEAD? ARMS ON THE HEAD? What are you making? Also sorry about this random comment, its just I wanna know what you need that for and I can't answer cause I've only used Welds once in a simple script xD

0

I place my arm welds to my head to create a smoother movement of the arms when I "move the arms" to where I am looking at. The secret is you move the head instead since the camera focus is based on the Humanoid to the Head of it.

2 answers

✓ Accepted answer

You set the Part0 of a weld to the head. You set the Part1'of the weld to the fake arm.

Ex.

local char = game.Players.LocalPlayer.Character
local weld = Instance.new('Weld',char.Head)
weld.Part0 = char.Head
weld.Part1 = FAKEARMGOESHERE.
Weld.C0 = CFrame.new(you change these values)

4 comments

0

thnx, btw, does the Part1 just work for 1 arm? or 2 of them? do I have to put in Part2 for the other arm? cos there are falsearm1 and falsearm2

0

You can only have one part1 per weld so you better make another weld.

0

ok, thnx. by the way, what will I change the CFrame.new() to? cos you said in brackets to add something in there...

0

for FPS I prefer to use R6 real arms this is my local script: ~~~~~~~~~~~~~~~~~ plr = game.Players.LocalPlayer; repeat wait() until plr.Character char = plr.Character m = plr:GetMouse() game["Run Service"].RenderStepped:connect(function() local c = game.Workspace.CurrentCamera char.HumanoidRootPart["RootJoint"].C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y) + 1.

for FPS I prefer to use R6 real arms this is my local script:

plr = game.Players.LocalPlayer;
repeat wait() until plr.Character
char = plr.Character
m = plr:GetMouse()
game["Run Service"].RenderStepped:connect(function()
local c = game.Workspace.CurrentCamera

char.HumanoidRootPart["RootJoint"].C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.asin((m.Origin.p - m.Hit.p).unit.y) + 1.55,3.15,0)

	char.Humanoid.CameraOffset = (char.HumanoidRootPart.CFrame+Vector3.new(0,0,0)):pointToObjectSpace(char.Head.CFrame.p + Vector3.new(0,-1.46,0))

end)

This discussion is preserved as it was. New answers, comments, and votes are closed.