Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Equipping Tool with ClickDetector but It doesn't work correctly?

Here's the script:

local function onMouseClick(player)
	player.Character.Humanoid:EquipTool(game.Lighting.Flashlight:Clone())
end
script.Parent.Clicker.MouseClick:connect(onMouseClick)

The script I just gave above does make the Player equips it. But the problem is the scripts in the tools doesn't run

But If I just use this:

game.Players.RomDino.Character:EquipTool(game.Lighting.Flashlight:Clone())

Then the Player equips the tools and the scripts in the tools works...

???

2 comments

0

You didnt use Humanoid for the one that works, since idk then remove Humanoid in the 1st script

0

^ You know that I solved this 2 days ago right? The script was right and it only works in solo mode not Studio mode

1 answer

I just realised something that this doesn't work in Studio

oops

This discussion is preserved as it was. New answers, comments, and votes are closed.