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

falsearms1 & 2 Weld to Head?

Asked by 10 years ago

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?

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 infalliblelemon 145 — 10y
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. Bebee2 195 — 10y

2 answers

Log in to vote
1
Answered by
Bebee2 195
10 years ago

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)
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 kapitanovaskapandr 0 — 10y
0
You can only have one part1 per weld so you better make another weld. Bebee2 195 — 10y
0
ok, thnx. by the way, what will I change the CFrame.new() to? cos you said in brackets to add something in there... kapitanovaskapandr 0 — 10y
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. Newh0hrizonCz 58 — 4y
Ad
Log in to vote
0
Answered by 4 years ago

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)

Answer this question