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

Argument 3 missing or nil - I don't know how to fix this can someone help me?

Asked by 5 years ago
Edited 5 years ago

bQ.Transparency = 1

bR.Transparency = 0

bS.Transparency = 0

bT.Transparency = 0

bU.Transparency = 0

bQ.CFrame = rarm.CFrame * ang(rd(0), rd(0), rd(0)) * cf(0, -0.025, 0)

bR.CFrame = bQ.CFrame * ang(rd(0), rd(0), rd(0)) * cf(0, -0.025, 0)

c7 = (bQ.Position - rarm.Position).magnitude

c8 = (bR.Position - bQ.Position).magnitude

bS.CFrame = cf(rarm.CFrame.p, bQ.CFrame.p) * cf(0, 0, -c7 / 2)

bT.CFrame = cf(bQ.CFrame.p, bR.CFrame.p) * cf(0, 0, -c8 / 2)

bU.CFrame = bR.CFrame * cf(0, -0.025, 0) * ang(rd(0), rd(180), rd(90))

cam.CoordinateFrame = hrp.CFrame * ang(rd(10), rd(-180), rd(0)) * cf(0, 0, 6)

for I = 1, 50 do

swait()

c7 = (bQ.Position - rarm.Position).magnitude

c8 = (bR.Position - bQ.Position).magnitude

lerpz(N, "C0", NC0 * cf(0, 0, 0) * ang(rd(30), rd(-6), rd(-14)), 0.1)

lerpz(RS, "C0", RSC0 * cf(0, 0.1, 0) * ang(rd(0), rd(-50), rd(110)), 0.15)

lerpz(RS, "C1", RSC1 * cf(0, 0, 0) * ang(rd(0), rd(0), rd(0)), 0.05)

bQ.CFrame = bQ.CFrame:lerp(rarm.CFrame * ang(rd(0), rd(0), rd(0)) * cf(0, -10, 0), 0.1)

bR.CFrame = bR.CFrame:lerp(bQ.CFrame * ang(rd(0), rd(0), rd(-140)) * cf(0, -10, 0), 0.07)

bS.CFrame = cf(rarm.CFrame.p, bQ.CFrame.p) * cf(0, 0, -(c7 + 1) / 2)

bT.CFrame = cf(bQ.CFrame.p, bR.CFrame.p) * cf(0, 0, -(c8 - 1) / 2)

bU.CFrame = bU.CFrame:lerp(bR.CFrame * cf(0, -6.5, 0) * ang(rd(0), rd(180), rd(90)), 0.3)

b_.Scale = b_.Scale:lerp(Vector3.new(60, 70, 60), 0.13)

c0.Scale = c0.Scale:lerp(Vector3.new(30, 30, c7 * 5 * 1.2), 0.13)

c1.Scale = c1.Scale:lerp(Vector3.new(35, 35, c8 * 5 * 1.2), 0.13)

c2.Scale = c2.Scale:lerp(Vector3.new(0.16, 0.16, 0.16), 0.13)

cam.CoordinateFrame = cam.CoordinateFrame * cf(0, 0, 0.094)

end

cd = ang(rd(0), rd(0), rd(0)) * cf(0, -10, 0)

cg = ang(rd(0), rd(0), rd(-140)) * cf(0, -10, 0)

ci = ang(rd(0), rd(0), rd(-40)) * cf(0, -6.5, 0) * ang(rd(0), rd(270), rd(90))

ck = Vector3.new(60, 70, 60)

cm = 3.5

co = 5

cj = 0.3--speed of hand

cq = Vector3.new(0.16, 0.16, 0.16)

cb = true

coroutine.resume(coroutine.create(function()

while cb == true do

swait2()

bQ.CFrame = bQ.CFrame:lerp(rarm.CFrame * cd, ce) --- This is where it say

bR.CFrame = bR.CFrame:lerp(bQ.CFrame * cg, ch)

c7 = (bQ.Position - rarm.Position).magnitude

c8 = (bR.Position - bQ.Position).magnitude

bS.CFrame = cf(rarm.CFrame.p, bQ.CFrame.p) * cf(0, 0, -(c7 + 1) / 2)

bT.CFrame = cf(bQ.CFrame.p, bR.CFrame.p) * cf(0, 0, -(c8 - 1) / 2)

bU.CFrame = bU.CFrame:lerp(bR.CFrame * ci, cj)

b_.Scale = b_.Scale:lerp(ck, cl)

c0.Scale = c0.Scale:lerp(Vector3.new(cm * 5, cm * 5, (bQ.Position - rarm.Position).magnitude * 5 * 1.2), cn)

c1.Scale = c1.Scale:lerp(Vector3.new(co * 5, co * 5, (bR.Position - bQ.Position).magnitude * 5 * 1.2), cp)

c2.Scale = c2.Scale:lerp(cq, cr)

end

end))

0
It's nil because it's never defined. You have to define it. DeceptiveCaster 3761 — 5y

1 answer

Log in to vote
0
Answered by 5 years ago

while cb == true do

swait2()

bQ.CFrame = bQ.CFrame:lerp(rarm.CFrame * cd, ce) -- The bug is here

bR.CFrame = bR.CFrame:lerp(bQ.CFrame * cg, ch)

c7 = (bQ.Position - rarm.Position).magnitude

c8 = (bR.Position - bQ.Position).magnitude

bS.CFrame = cf(rarm.CFrame.p, bQ.CFrame.p) * cf(0, 0, -(c7 + 1) / 2)

bT.CFrame = cf(bQ.CFrame.p, bR.CFrame.p) * cf(0, 0, -(c8 - 1) / 2)

bU.CFrame = bU.CFrame:lerp(bR.CFrame * ci, cj)

b_.Scale = b_.Scale:lerp(ck, cl)

c0.Scale = c0.Scale:lerp(Vector3.new(cm * 5, cm * 5, (bQ.Position - rarm.Position).magnitude * 5 * 1.2), cn)

c1.Scale = c1.Scale:lerp(Vector3.new(co * 5, co * 5, (bR.Position - bQ.Position).magnitude * 5 * 1.2), cp)

c2.Scale = c2.Scale:lerp(cq, cr)

end

end))

Ad

Answer this question