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

FakeArms to Head Weld?

Asked by 10 years ago

I heard that if you weld the arms to the head and add a head moving with cursor script, then it will look up and down, so I want to know, how would I properly type the script?

2 answers

Log in to vote
0
Answered by 3 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)
Ad
Log in to vote
-1
Answered by 10 years ago

guys, yas all know am useless! look what I tried!

local function weldBetween(a, b, c)
    local weld = Instance.new("ManualWeld")
    weld.falsearm1 = a
    weld.Head = b
    weld.falsearm2 = c
    weld.C0 = CFrame.new()
    weld.C1 = b.CFrame:inverse() * a.CFrame * c.CFrame
    weld.C2 = CFrame.new()
    weld.Parent = b
    return weld;
end

plz help me guys!

0
come on guys!!!!!!!!!!!!!!!!!!!!! Answer! Please!!! kapitanovaskapandr 0 — 10y
0
ok Newh0hrizonCz 58 — 3y

Answer this question