Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local debounce = true
- script.Parent.Touched:connect(function(hit)
- if debounce == true then
- debounce = false
- local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
- --local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
- local char = plr.Character
- for _,find in ipairs(char:GetChildren()) do
- if find.ClassName == 'Accessory' then
- find:Destroy()
- end
- end
- local top = Instance.new('Part',char)
- top.Size = Vector3.new(1,2,1)
- Instance.new('CylinderMesh',top)
- top.CanCollide = false
- top:BreakJoints()
- top.BrickColor = BrickColor.new('Really red')
- local topWeld = Instance.new('Weld',top)
- topWeld.Part0 = top
- topWeld.Part1 = char.Head
- topWeld.C0 = CFrame.new(0,-1.5,0)
- local bottom = Instance.new('Part',char)
- bottom.Size = Vector3.new(2,.1,2)
- bottom.CanCollide = false
- bottom:BreakJoints()
- local bottomWeld = Instance.new('Weld',bottom)
- bottomWeld.Part0 = bottom
- bottomWeld.Part1 = char.Head
- bottomWeld.C0 = CFrame.new(0,-.5,0)
- bottom.BrickColor = BrickColor.new('Really red')
- Instance.new('CylinderMesh',bottom)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement