Tools dont work

im making a tower defense game and using tools for the placing mechanic, but the tools just, dont work, i have no idea how to fix this

local model = game.ReplicatedStorage.Towers.Gunner
local mouse = game.Players.LocalPlayer:GetMouse()
script.Parent.Equipped:Connect(function()
	print("Equipped") -- wont print
	local clone = model:Clone()
	clone.Parent = workspace.Previews
	for i,v in clone:GetDescendants() do
		if v:IsA("BasePart") then
			v.Transparency = 0.5
			v.CanCollide = false
			v.CanTouch = false
			v.CanQuery = false
		end
	end
	mouse.Move:Connect(function()
		clone:MoveTo(mouse.Hit.Position)
	end)
end)
script.Parent.Unequipped:Connect(function()
	workspace.Previews:ClearAllChildren()
end)

I see you are using Player.LocalPlayer. Is the script therefore a LocalScript?
Otherwise, make sure Tool.RequiresHandle is disabled

2 Likes

it is a localscript, i am just trying to make the local side work first, then the server side, but yes, the requireshandle property fixed it, thanks!

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.