Advertisement
jjhoweisuber22

Pokeball ROBLOX

Feb 19th, 2015
712
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.12 KB | None | 0 0
  1. Plrs = game:GetService("Players")
  2.  
  3. Name = "tootalljj"
  4. me = Plrs[Name]
  5. char = me.Character
  6. Modelname = "PokeSoul"
  7. Surfaces = {"FrontSurface", "BackSurface", "TopSurface", "BottomSurface", "LeftSurface", "RightSurface"}
  8. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  9.  
  10. Add = {
  11. Sphere = function(P)
  12. local m = Instance.new("SpecialMesh",P)
  13. m.MeshType = "Sphere"
  14. return m
  15. end,
  16. BF = function(P)
  17. local bf = Instance.new("BodyForce",P)
  18. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  19. return bf
  20. end,
  21. BP = function(P)
  22. local bp = Instance.new("BodyPosition",P)
  23. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  24. bp.P = 14000
  25. return bp
  26. end,
  27. BG = function(P)
  28. local bg = Instance.new("BodyGyro",P)
  29. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  30. bg.P = 14000
  31. return bg
  32. end
  33. }
  34.  
  35. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  36. local p = Instance.new("Part")
  37. p.formFactor = "Custom"
  38. p.Anchored = Anchor
  39. p.CanCollide = Collide
  40. p.Transparency = Tran
  41. p.Reflectance = Ref
  42. p.BrickColor = BrickColor.new(Color)
  43. for _, Surf in pairs(Surfaces) do
  44. p[Surf] = "Smooth"
  45. end
  46. p.Size = Vector3.new(X, Y, Z)
  47. if Break then
  48. p:BreakJoints()
  49. else p:MakeJoints() end
  50. p.Parent = Parent
  51. return p
  52. end
  53.  
  54. function Weld(p0, p1, x, y, z, a, b, c)
  55. local w = Instance.new("Weld")
  56. w.Parent = p0
  57. w.Part0 = p0
  58. w.Part1 = p1
  59. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  60. return w
  61. end
  62.  
  63. function ComputePos(pos1, pos2)
  64. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  65. return CFrame.new(pos1, pos3)
  66. end
  67.  
  68. for i,v in pairs(char:children()) do
  69. if v.Name == Modelname then
  70. v:remove()
  71. end
  72. end
  73.  
  74. torso = char.Torso
  75. neck = torso.Neck
  76. hum = char.Humanoid
  77. Rarm = char["Right Arm"]
  78. Larm = char["Left Arm"]
  79. Rleg = char["Right Leg"]
  80. Lleg = char["Left Leg"]
  81.  
  82. slash = Instance.new("Sound")
  83. slash.SoundId = "rbxasset://sounds//swordslash.wav"
  84. slash.Volume = 0.8
  85. slash.Pitch = 1.4
  86. slash.Parent = Rarm
  87.  
  88. hitsound = Instance.new("Sound")
  89. hitsound.SoundId = "http://www.roblox.com/asset/?id=2801263"
  90. hitsound.Volume = 0.55
  91. hitsound.Pitch = 2.1
  92. hitsound.Parent = torso
  93.  
  94. Mo = Instance.new("Model")
  95. Mo.Name = Modelname
  96.  
  97. RABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  98. LABrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  99. RLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  100. LLBrick = Part(Mo, false, false, 1, 0, "White", 0.1, 0.1, 0.1, true)
  101.  
  102. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  103. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  104. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  105. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  106.  
  107. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  108. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  109. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  110. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  111.  
  112. for i = -100, -1, 25 do
  113. local p = Part(Mo, false, false, 0, 0, "Black", 0.8, 0.3, 0.1, true)
  114. local w = Weld(torso, p, 0, 0, 0, 0, 0, 0)
  115. w.C0 = CFrame.new(0, -0.5, -0.6) * CFrame.Angles(0, math.rad(i), 0)
  116. w.C1 = CFrame.new(0, 0, -0.6)
  117. end
  118.  
  119. Mo.Parent = char
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement