Difference between studio testing and actual game

I have a spectating system in my game and it works fine when I create a local server with two simulated players. When I publish it and have two actual people play it, it just doesn’t work. I’m basically asking what is the difference between a local server with simulated players and an actual server with real people.

Idk, about the spectating system, but I CAN give you an answer about:

Local servers are created on your machine. They exist in your computer, therefore, they will have the fastest time (no latency, no ping [relative]). It is usually created on a unused port in the 50000s range. That is why when you leave the game, it will say disconnecting from 127.0.0.1:56621. That IP address is your own computer’s IP. Regular servers are hosted within roblox, they might be thousands of miles away, therefore connection may be an issue. You can test functionallity through studio by using the runservice.

local RunService = game:GetService("RunService")]

if RunService:IsStudio() then
    print("You are playing within Studio")
end

This will only print if you play in studio and therefore you can mess around with this and hopefully find your problem.

4 Likes