script.Parent
or
game:GetService("ServerScriptService")
script.Parent
or
game:GetService("ServerScriptService")
prob depends on the case, if it ends up being script.Parent.Parent.Parent then get the service
Doesn’t really matter (to the extent of my knowledge), but I’d use game:GetService()
since if you move the script elsewhere, the script will break.
In my personal opinion
game:GetService("ServerScriptService")
is better because if u were to have a script within another script, it’ll start to look like this:
script.parent.parent.parent
and so on…
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.