I am trying to make so you can move a part with a tool, but nothing happens.. Please help:
Local script (Inside a tool):
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local down = false
local tool = script.Parent
tool.Equipped:Connect(function(mouse)
if mouse.Target ~= nil then
mouse.Button1Down:Connect(function()
down = true
part = mouse.Target
end)
end
if down then
mouse.Move:Connect(function()
game.ReplicatedStorage.RemoteEvent:FireServer(mouse.hit.X, mouse.hit.Y, mouse.hit.Z, part)
end)
end
end)
Server script:
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player, x,y,z, part)
part.Position = Vector3.new(x,y,z)
end)
Thanks for help!!

4 comments
Calling :FireServer() from a LocalScript automatically passes an initial argument, being the player who called it. You should be catching (plr, x, y, z, part) even if you don't use plr.
Ok.
Still doesnt work.
indent ur code