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

How do i make this first person arms script exact size?

Asked by
exarlus 72
6 years ago

Whenever i try to change the size to exact value and not + or - i get an error saying Exarlus.PlayerGui.PUT IN STARTERGUI!! thanks ;).TextButton.LocalScript:28: unexpected symbol near '='

Script:

wait(3)
lp = game.Players.LocalPlayer
p = lp.Character
p:WaitForChild("Body Colors")
larm = p['LeftLowerArm']
rarm = p['RightLowerArm']

l = Instance.new("Part",workspace.CurrentCamera)

l.FormFactor = "Custom"
l.BrickColor = p['Body Colors'].LeftArmColor
l.Material = "SmoothPlastic"
l.CanCollide = false


r = Instance.new("Part",workspace.CurrentCamera)
r.FormFactor = "Custom"
r.BrickColor = p['Body Colors'].RightArmColor
r.Material = "SmoothPlastic"
r.CanCollide = false


script.Parent.left.Value = l
script.Parent.right.Value = r



l.Size = larm.Size = Vector3.new(1.44, 0.9, 0.85)
l.CFrame  = larm.CFrame

r.Size = rarm.Size = Vector3.new(1.44, 0.9, 0.85)
r.CFrame = rarm.CFrame


lw = Instance.new("Weld",l)
lw.Part0 = l
lw.Part1 = p['LeftLowerArm']


rw = Instance.new("Weld",r)
rw.Part0 = r
rw.Part1 = p['RightLowerArm']


r.Name = (lp.Name.."'s extra right arm")
l.Name = (lp.Name.."'s extra left arm")
while wait() do
    l.BrickColor = p['Body Colors'].LeftArmColor
    r.BrickColor = p['Body Colors'].RightArmColor


script.Parent.MouseButton1Down:connect(function()
    if l.Transparency == 1 then
        l.Transparency = 0
        r.Transparency = 0
    elseif l.Transparency == 0 then 
        l.Transparency = 1
        r.Transparency = 1

    else
    print("ERROR")

    l.Transparency = 0
    r.Transparency = 0
    end

end)

p.Humanoid.Died:connect(function()
    larm.Transparency = 0
    rarm.Transparency = 0
    l:Destroy()
    r:Destroy()
end)
end

1 answer

Log in to vote
0
Answered by 6 years ago
l.Size = larm.Size = Vector3.new(1.44, 0.9, 0.85) 

You are using two equal signs on this and you can only use one on one line. Try doing this instead: ~~~~~~~~~~~~~~~~~ l.Size = larm.Size larm.Size= Vector3.new(1.44, 0.9, 0.85) ~~~~~~~~~~~~~~~~~

0
The arms fall off when i use this exarlus 72 — 6y
0
Also it doesen't even adjust the size. exarlus 72 — 6y
0
Nvm i fixed it myself i will accept your answer because it did have something to do with how i fixed it exarlus 72 — 6y
Ad

Answer this question