Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local plr = owner
- local char = plr.Character
- local hum = char:FindFirstChildOfClass("Humanoid")
- if hum.RigType == Enum.HumanoidRigType.R15 then else
- error('not r15 rigtype')
- end
- local t = {}
- pcall(function()
- game:GetService("PhysicsService"):CreateCollisionGroup('asd')
- game:GetService("PhysicsService"):CollisionGroupSetCollidable('asd','asd',false)
- end)
- function create_part(p1,p2,size,c0)
- p1 = char:FindFirstChild(p1)
- local p = Instance.new("Part")
- p.Size = size
- p.Name = p2
- p.Color = p1.Color
- p.Material = p1.Material
- p.Anchored = false
- p.Massless = false
- p.CanCollide = false
- p.Parent = char
- game:GetService("PhysicsService"):SetPartCollisionGroup(p,'asd')
- game:GetService("PhysicsService"):SetPartCollisionGroup(p1,'asd')
- local weld = Instance.new("Weld")
- weld.Part0 = p1
- weld.Part1 = p
- weld.C0 = c0
- weld.Parent = p
- t[p] = 1
- return p
- end
- create_part('UpperTorso','Torso',Vector3.new(2,2,1),CFrame.new(0,-0.2,0))
- create_part('LeftUpperArm','Left Arm',Vector3.new(1,2,1),CFrame.new(0,-0.4,0))
- create_part('RightUpperArm','Right Arm',Vector3.new(1,2,1),CFrame.new(0,-0.4,0))
- create_part('LeftLowerLeg','Left Leg',Vector3.new(1,2,1),CFrame.new(0,0.2,0))
- create_part('RightLowerLeg','Right Leg',Vector3.new(1,2,1),CFrame.new(0,0.2,0))
- hum.BreakJointsOnDeath = false
- hum.RequiresNeck = false
- hum.RigType = Enum.HumanoidRigType.R6
- hum.AutomaticScalingEnabled = false
- hum.HipHeight = 0
- wait()
- for i,v in pairs(char:GetChildren()) do
- if v:IsA("BasePart") and not t[v] and v.Name ~= 'Head' then
- v.Transparency = 1
- v.CanCollide = false
- v.Anchored = false
- v.Massless = true
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement