Why is fireallclients not replicating on all clients?

The thing is I want to tween a earth wall going up inside the client

rEvent:FireAllClients(clonedWall, pos)
rEvent.OnClientEvent:Connect(function(clonedWall, pos)	
	local halfWall = clonedWall.Main.Size.Y
	local tweenInfo = TweenInfo.new(3, Enum.EasingStyle.Linear)
	local tween = tweenService:Create(clonedWall.Main, tweenInfo, {CFrame = 
        clonedWall.Main.CFrame * CFrame.new(0, math.abs(pos) + halfWall/2, 0)})


1 Like

You might want to just use FireClient Instead of FireAllClients.


why I want all the players to see the tween

1 Like

FireClient() is for the server.

FireServer() is for one client

That’s what I’ve been told at least.


Also, this will basically get the players in the game, then replicate the event across all of them, if you want a explanation on what it does.


Yeah, it gets all players inside the Players service as a table and then FireClients on all Players inside the Players table.

1 Like

Its not working it only outputs on one of my clients

I understand what they are thank you though

I think I can see whats going on, are you parenting the LocalScript when the PlayerAdded Event is fired?

Perhaps you could try making the animation play within a Script in workspace. As far as I know, you can still listen to ServerEvents in Scripts in workspace. (Don’t make the script a parent of a brick, or it probably won’t work.)

I don’t quite understand what you mean but this is where i put my scripts


I’m going to try that thanks 30 cha

If that local script makes the brick tween you need to switch the parent to Starter Character or something then place a RemoteEvent in replicated storage.

It’s not working because the other clients don’t own that local script and aren’t connected to the remote event inside the tool.