I have some functions that i want to run one time once the server is started up. I have placed these function inside a server script, but they don’t run. Perhaps they try to run before the parts they are affecting have lodaded in?
Id there any way to test if the server is loaded before running scripts and functions?
I have tried this:
if not game.IsLoaded then
game.Loaded:Wait()
obbyTools.setup() -- setup the obby stuff, NOT WORKING
end
I don’t think you need to wait for the server to load and these should only be used in a LocalScript although I could be wrong. I’m pretty sure they are not needed in a server sided script though.