Advertisement
pz_java

C H A O S

Aug 30th, 2019
175
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. game.Workspace.ChildAdded:Connect(function(char)
  2. if game.Players:GetPlayerFromCharacter(char) then
  3. local hrp = char:WaitForChild("HumanoidRootPart")
  4. local ball1 = Instance.new("Part")
  5. ball1.Shape = Enum.PartType.Ball
  6. ball1.Color = Color3.new(1,0,1)
  7. ball1.CanCollide = false
  8. ball1.Massless = true
  9. ball1.CanCollide = false
  10. ball1.Size = Vector3.new(1,1,1)
  11. ball1.TopSurface = Enum.SurfaceType.Smooth
  12. ball1.BottomSurface = Enum.SurfaceType.Smooth
  13.  
  14. local ball2 = ball1:Clone()
  15. local stick = ball1:Clone()
  16. stick.Shape = Enum.PartType.Cylinder
  17. stick.Size = Vector3.new(20,1,1)
  18. local ball3 = ball2:Clone()
  19. ball3.Color = Color3.new(0.5,0,1)
  20. ball3.Size = Vector3.new(2,2,2)
  21. local stick2 = stick:Clone()
  22. stick2.Color = ball3.Color
  23. stick2.Size = Vector3.new(2,2,2)
  24. local weld = Instance.new("Weld",ball1)
  25. weld.Part0 = ball1
  26. weld.C0 = CFrame.new(0.5,1,0.5)
  27. weld.Part1 = hrp
  28. ball1.Parent = char
  29. local weld = Instance.new("Weld",ball2)
  30. weld.Part0 = ball2
  31. weld.C0 = CFrame.new(-0.5,1,0.5)
  32. weld.Part1 = hrp
  33. ball2.Parent = char
  34. local weld = Instance.new("Weld",stick)
  35. weld.Part0 = stick
  36. weld.C0 = CFrame.new(10,1,0)*CFrame.Angles(0,math.rad(90),0)
  37. weld.Part1 = hrp
  38. stick.Parent = char
  39. local weld = Instance.new("Weld",ball3)
  40. weld.Part0 = ball3
  41. weld.C0 = CFrame.new(-0,1,20)
  42. weld.Part1 = hrp
  43. ball3.Parent = char
  44. local weld = Instance.new("Weld",stick2)
  45. weld.Part0 = stick2
  46. weld.C0 = CFrame.new(19,1,0)*CFrame.Angles(0,math.rad(90),0)
  47. weld.Part1 = hrp
  48. stick2.Parent = char
  49. ball1.Locked = true
  50. ball2.Locked = true
  51. ball3.Locked = true
  52. stick.Locked = true
  53. stick2.Locked = true
  54. end
  55. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement