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

Why won't this simple tool work?

Asked by
tumadrina 179
9 years ago
local Player=game.Players.LocalPlayer
local Character=Player.Character
local mouse=Player:GetMouse()
script.Parent.Equipped:connect(function(Mouse)
    Mouse.Activated:connect(function()
    local BodyPosition=Instance.new("BodyPosition",Character.Torso)
    BodyPosition.maxForce=Vector3.new(math.huge,math.huge,math.huge)
    BodyPosition.position=mouse.Hit.p
    wait(5)
    BodyPosition:Destroy()
    end)
end)

the parent is a tool it has a handle ``this works perfectly fine without a tool(mouse.Button1Down) but for some reason Nothing happens when I use a tool, what did I do wrong, thanks in advanced

0
I noticed a difference between the words mouse at line 3 and line 5. damagex443 325 — 9y

Answer this question