Help With Building tool

I’m making salt for a game kind of like phasmopobias salt but its client sided so it won’t work I added a remote event and now the salt don’t work any ideas that can help?

LOCAL SCRIPT-

SERVER SCRIPT-

1 Like

You can’t send functions (move) over a remote event like that. You should connect the client to a remote event instead.

I tried that the salt still don’t work

The remote event doesn’t get fired from the client.

Try doing this instead in the client:

script.Parent.Parent.Activated:Connect(function()
    local player = game.Players.LocalPlayer
    local mouse = player:GetMouse()
    script.Parent.RemoteEvent:FireServer(mouse) --You cannot send functions over remote events.
end)

That didn’t work---------------