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

(see my other question first) Error with equipping tools?

Asked by 6 years ago

Here's a link to what happened. https://gyazo.com/ca48a44cccfdf1e76d47a3ee2113267f

I made a transparent Part grouped inside my Meshpart to use as a handle. I used this script to forcefully equip it to you when touched. (I put the script inside the transparent Part.)

script.Parent.Touched:connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then
        hit.Parent.Humanoid:EquipTool(game.Workspace.PortalGun)
    end
end)

Help me out a bit, i cant seem to figure out what's wrong.

0
Yea, link a picture of your explorer please. Tomstah 401 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

I think what is wrong is your tool. The Part and the Tool are supposed to be separate. If you could also link a picture of explorer window with Workspace and the Tool open so I can see what the problem is better :D

Ad

Answer this question