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!

