Attempting to make a part that can move by another button

I am attempting to make a part that an NPC follows move when you press a button, but I need it to appear on all clients instead of just the one who pressed the button. Here is my code.

In the actual button that moves the part.

local ReplicatedStore = game:GetService("ReplicatedStorage")

local remoteEvent = game.ReplicatedStorage["bouble control events"].Forward

debounce = false

script.Parent.Touched:connect(function(hit)
	if not debounce then
		debounce = true
		if(hit.Parent:FindFirstChild("Humanoid")~=nil)then
			remoteEvent:FireServer()
		end
		debounce = false
	end
end)

Code in server script service that runs when an event is fired

local ReplicatedStorage = game:GetService("ReplicatedFirst")
local remoteEvent = game.ReplicatedStorage["bouble control events"].Forward

local function Move()
	workspace.Director.Position += Vector3.new(1,0,0)
end

remoteEvent.OnServerEvent:Connect(Move)

If clarification is needed please tell me, and try your best to help. Thanks a million!

1 Like

If you move the NPC from the server, all the clients will see it. There is no need to fire the remote event back at the client. All you would need to do is to tell the server to move the NPC whenever they press the button using a RemoteEvent

1 Like

Really! Okay ill try this and get back to you.

1 Like

ReplicatedFirst?
image

Also why aren’t you using the ReplicatedStorage variable instead of:
image

Just a few mistakes I’m seeing…

Also that’s a touch event and nothing to do with a click detecter or gui button…
image