So basically, I’d like to add a button to my gui that has the current users profile pic and it clones their character into a ragdoll (gmod concept) I’m really new to scripting, so I don’t know how to do this.
Do you want the ragdoll to only be shown on their client, or do you want it to be shown to everyone?
I would like my ragdoll to be shown serversided.
I made a placefile for you and all the code is available.
Placefile:
RagdollTesting.rbxl (42.1 KB)
- To get it working in your game, run this code in your command bar:
--//Run this code in your command bar
local PhysicsService = game:GetService("PhysicsService")
PhysicsService:CreateCollisionGroup("A")
PhysicsService:CreateCollisionGroup("B")
PhysicsService:CollisionGroupSetCollidable("A", "B", false)
-
Copy the local script in the placefile’s StarterGui button, and paste it in your button.
-
Copy the remote event from ReplicatedStorage and paste it into your game’s ReplicatedStorage.
-
Copy these scripts from ServerScriptService and paste it into your game’s ServerScriptService.
It should work now.
Example video:
1 Like
thank you very much, this is perfect
1 Like
No problem. If you have any more questions, feel free to ask.