I am trying to learn how to make private server only updates.
I have seen the developer post (whatever you call it) about how to check if the server is a VIP server.
So, I am testing it with changing a parts property only if it is a VIP server. But I don’t really understand how to incorporate Workspace.Part.Transparency = 1 Into this (from the post teaching about the API)
-- is this a VIP server?
if game.PrivateServerId ~= "" and game.PrivateServerOwnerId ~= 0 then
-- listen for new players being added
Players.PlayerAdded:Connect(function(player)
-- check if the player is the server owner
if player.UserId == game.PrivateServerOwnerId then
print("The private server owned has joined the game")
end
end)
end
Basically what you’re doing is checking if it’s a vip server by checking the private server id, if it is then the code will run, the if statement runs when the server starts, so you can put it directly after the if statement if you want it to run when that happens, you can put it inside the player added function to change the transparency every time a player joins, or inside the if statement that checks if its the owner, which will only run when the owner of the vip server joins.