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

Why isn't this working?

Asked by 9 years ago

nathen35 is letting me borrow his scripting helpers account to ask this question.

I am making a lantern tool. Why isnt this script working?

function onEquipped()
local w1 = Instance.new("Weld")
    w1.Parent = script.Parent.Handle
    w1.Part0 = w1.Parent
    w1.Part1 = script.Parent.Brick
    w1.C1 = CFrame.Angles(0, 0, 0) * CFrame.new(0, 0, 0)
    end
script.Parent.Equipped:connect(onEquipped)
script.Parent.Unequipped:connect(onUnequipped)

All it does is make me get stuck in mid-air, and the tool Spawns not in my hands.

0
The Handle is probably anchored, that would make you get stuck in mid-air. As for the tool not spawning in your hand, it is probably because you didn't CFrame it towards the Player's arm. SlickPwner 534 — 9y

Answer this question