Home¶
Overview¶
The Skeptic Framework is a light-weight, player-centric framework built for games by Skeptic Softworks. It was designed to allow easy access to important components from anywhere in the codebase at any time.
Find out more about Skeptic Softworks at skepticsoftworks.com.
Important note about version¶
All documentation is relevant to the Skeptic Framework V3 and above. Since then, V4 has been released and is mostly backwards-compatible.
You can assume all documentation is relevant for V3 and above, except for documentation explicitly tagged as {version4}.
This documentation may not be accurate for V1 and V2, which are legacy versions of the framework.
Example¶
local Skeptic = require(game:GetService("ServerScriptService").SkepticServer)
-- When was Carry an Egg released?
local AnswerEvent = Skeptic.Events:GetEvent("AnswerOnStage")
local EffectEvent = Skeptic.Events:GetEvent("InvokeEffect")
AnswerEvent.OnServerEvent:Connect(function(playerObject, answer)
if answer == "2024" then
local economy = playerObject:GetHandler("Economy")
economy:Earn(100)
playerObject:UpdateData("CorrectAnswers", function(prev)
prev = prev + 1
return prev
end)
else
local character = playerObject:GetHandler("Character")
local hrp = character:GetCharacter().HumanoidRootPart
EffectEvent:FireAllClients("Explode", hrp.Position)
end
end)