basically in my script im sending info from the client to the server then sending that info to every client, but when testing it it only seems to fire to the client that ran the events
--all variables are defined i just shortened it
--LOCAL SCRIPT
RunService.RenderStepped:Connect(function(DeltaTime)
remotes.SendPosition:FireServer(pos.X.Scale, pos.Y.Scale, newplayer:GetId())
end)
remotes:WaitForChild("SendPosition").OnClientEvent:Connect(function(x, y, obj)
local other = engine:GetBodyById(obj)
if other then
print(other:GetFrame().Name) --this only prints once, but its supposed to print for every player in the game (it gets the players name)
if other:GetFrame().Name ~= plr.Name then
other:SetPosition(x, y)
end
end
wait(0.1)
end)
---------------------------
--SERVER SCRIPT
remotes:WaitForChild("SendPosition").OnServerEvent:Connect(function(plr, x, y, obj)
remotes:WaitForChild("SendPosition"):FireAllClients(x, y, obj)
end)
---------------------------
all it does it instead of firing all clients it just sends to one, any help?