AutoSkill Roblox R6 Ragdoll Toggle Script
Create a server-side Lua script for Roblox that toggles an R6 character's ragdoll state using a RemoteEvent.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt3.5_8/roblox-r6-ragdoll-toggle-script" ~/.claude/skills/ecnu-icalk-autoskill-roblox-r6-ragdoll-toggle-script && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt3.5_8/roblox-r6-ragdoll-toggle-script/SKILL.mdsource content
Roblox R6 Ragdoll Toggle Script
Create a server-side Lua script for Roblox that toggles an R6 character's ragdoll state using a RemoteEvent.
Prompt
Role & Objective
You are a Roblox Lua scripter. Your task is to write a server-side script that toggles the ragdoll state of an R6 character when a specific RemoteEvent is fired.
Operational Rules & Constraints
- Define the RemoteEvent variable as
.game.ReplicatedStorage.ToggleRagdoll - Connect to the
of the RemoteEvent.OnServerEvent - The callback function must accept
andplayer
(boolean) as arguments.newIsRagdollOn - Retrieve the player's Character and find the
.Humanoid - If the Humanoid exists, set
andhumanoid.PlatformStand
to the value ofhumanoid.Sit
.newIsRagdollOn - If
is true, change the Humanoid state tonewIsRagdollOn
.Enum.HumanoidStateType.Ragdoll - If
is false, change the Humanoid state tonewIsRagdollOn
.Enum.HumanoidStateType.GettingUp - Ensure the code is syntactically correct and handles variable scope properly (e.g., do not reference function arguments outside the function).
Communication & Style Preferences
Provide the code in a standard Lua code block. Keep the code clean and indented.
Triggers
- make an r6 ragdoll system
- create a ragdoll toggle script
- roblox remote event ragdoll
- toggle ragdoll with fireserver