Actor SDK

Head to ``ReplicatedStorage.Actor.SDK`` to begin your journey of a new SCP. Have any questions? DM metatable#0 on Discord.

Example Package

Despawn, Event, Init, and Actions upon call are fired on server and client side. Utilize RunService to determine if its runtype.

Actions can use DoNotCallbackServer = true to prevent the client from having the server call the function to reduce network activity.

-- Copyright 2023 Bulk Games
-- Proprietary software for Area-27

-- Written with ❤️ by Metatable (@vq9o) <[email protected]> <[email protected]>
-- Documentation: area27.docs.metatable.dev
-- Notes: Server & Client environments are not replicated/shared. Cooldown ticks and Hold/Toggle boolean are replicated.

-- Anomaly Data Version 0.0.1

local ReplicatedStorage = game:GetService("ReplicatedStorage")
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")

local function IsPlayerCharacter(Part)
	if not Part.Parent:IsA("Model") then
		return IsPlayerCharacter(Part.Parent)
	end

	return Players:GetPlayerFromCharacter(Part.Parent)
end

return {
	despawn = function(Anomaly)
		if RunService:IsServer() then
		end
		
		return Anomaly
	end,

	event = function(Anomaly, Server, Data, ...)
		local Event = Data.Event;
		local args = {...};
		
		if RunService:IsServer() then
		end
		
		return Anomaly
	end,

	init = function(Anomaly)
		if RunService:IsServer() then
		end
		
		return Anomaly
	end,

	actions = {}
}

Last updated