Glorpia Docs
Instances

ServerScript

The public creator-authored script class that runs on Glorpia's authoritative server.

Availability

NameTypeDescription
Execution contextserverRuns on the authoritative game simulation.
ExecutionavailableEnabled ServerScripts under Workspace or ServerScriptService start once when discovered; connected callbacks can keep running.
Studio insertionavailableInsert ServerScript anywhere in Explorer. It remains inactive until it has a valid server execution ancestry.
Instance.new()supportedA runtime-created ServerScript starts once after it is enabled and enters Workspace or ServerScriptService.
EnabledbooleanRead/write hierarchy property. Enabling an unstarted ServerScript in a valid server context allows it to start on the next runtime script scan.
script globalavailableInside the script, script refers to that ServerScript instance.
ServerScript uses the public creator API and does not receive the privileged permissions of CoreScript or CoreLocalScript.

ServerScripts can use server-only services such as ServerScriptService and ServerStorage. UserInputService, RunService.RenderStepped, Players.LocalPlayer and workspace.CurrentCamera are not available in the public server context.

Example

Luau
script.Parent.Touched:Connect(function(hit)
    local humanoid = hit.Parent and hit.Parent:FindFirstChildOfClass("Humanoid")
    if humanoid then
        humanoid.Health = 0
    end
end)

Public API