Question: How can I pause a tweening gui for the full server, instead of just pausing it for the client?
1 Like
I think you’d have to use remote events.
2 Likes
I know but actually I don’t really understand where to start from. I’m not way too familiar with RemoteEvents…
RemoteEvents are basically client-server/server-client transportation
Say I put this on the client
local Fruit = "Orange"
workspace.RemoteEvent:FireServer(Fruit)
We’re passing the Fruit
variable onto the server here, and on this…
workspace.RemoteEvent.OnServerEvent:Connect(function(Player, Fruit)
print(Fruit)
--Output: "Orange"
end)
In a OnServerEvent
function, you put the Player
parameter first then whatever else you want (Aka the Fruit
variable)
In a OnClientEvent
function however, it’s pretty much the opposite (Basically, the server can’t find the player so you need to find a way to get the Player
object)
Now I’m hungry talking about fruits
1 Like
local Fruit = "Orange"
Correction*
Yeah I rushed through that mb, but you get the point
1 Like