So, Im using Remote Events to show the Gui via Tweenposition to every player ( Simple Intermission etc. ) But It's not moving the Gui to everyone at the same time. I know its because im defining the player with a for i,v in pairs loop. So it loops trough each player, How can I move the Gui to everyone at the same time.

Thats the line of code im writing in a normal script

slideOut:FireAllClients("Label")

slideOut is my Event which trigger that the Gui is "Sliding In" the players screen.

Thats the line of code im having in the Local script for my Events

local function movegui(obj)
		if obj == "Label" then
		Player.PlayerGui:WaitForChild("Info").Label:TweenPosition(UDim2.new(0.325, 0, 0, 0))
		elseif obj == "Side" then
		Player.PlayerGui:WaitForChild("Info").Side:TweenPosition(UDim2.new(0.65, 0, 0, 0))
		elseif obj == "Warning" then
		Player.PlayerGui:WaitForChild("Info").Warning:TweenPosition(UDim2.new(0.35, 0,0.4, 0))
		end
	end
	
	slideIn.OnClientEvent:Connect(movegui)

6 comments

0

So if my problem was not clear : The gui is not showing to everyone at the same time. There is a small delay everytime

0

That just happens. Welcome to network magic.

0

Really? Is there no way to fix that? I mean if there are 24 Players in my game it will have huge impact if it loops trough each player each wow.

0

I don't know what to say dude. It sounds like either your logic is wrong or you're just experiencing network magic.

0

Different people have different network speed. :/

0

Alright :)) Thanks guys. Thought there was another way around but thanks!