Advertisement
astronaut32

boom

Sep 10th, 2015
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. game:GetObjects("rbxassetid://295509879")[1].Parent = game.Players.LocalPlayer.Backpack
  2. hit = game.Players.LocalPlayer.Character.Torso
  3. if hit.Parent:findFirstChild("Humanoid") ~= nil and hit.Parent:findFirstChild("Chest") == nil then
  4. local g = game:GetObjects("rbxassetid://235449831")[1]
  5. g.Parent = hit.Parent
  6. local C = g:GetChildren()
  7. for i=1, #C do
  8. if C[i].className == "Part" or C[i].className == "WedgePart" then
  9. local W = Instance.new("Weld")
  10. W.Part0 = g.Middle
  11. W.Part1 = C[i]
  12. local CJ = CFrame.new(g.Middle.Position)
  13. local C0 = g.Middle.CFrame:inverse()*CJ
  14. local C1 = C[i].CFrame:inverse()*CJ
  15. W.C0 = C0
  16. W.C1 = C1
  17. W.Parent = g.Middle
  18. end
  19. local Y = Instance.new("Weld")
  20. Y.Part0 = hit.Parent.Torso
  21. Y.Part1 = g.Middle
  22. Y.C0 = CFrame.new(0, 0, 0)
  23. Y.Parent = Y.Part0
  24. end
  25. local h = g:GetChildren()
  26. for i = 1, # h do
  27. h[i].Anchored = false
  28. h[i].CanCollide = false
  29. end
  30. g.Middle.CFrame = hit.Parent.Torso.CFrame
  31. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement