Mr-Shadow_Cat

Grenade

Feb 14th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.11 KB | None | 0 0
  1. --[[NIGHTOWLACE_WEAPONRY]]--
  2. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  3. secondcolor = "Really black"
  4.  
  5. wait(1 / 60)
  6. Effects = { }
  7. local Player = game.Players.localPlayer
  8. local Character = Player.Character
  9. local Humanoid = Character.Humanoid
  10. local mouse = Player:GetMouse()
  11. local m = Instance.new('Model', Character)
  12. m.Name = "WeaponModel"
  13. local LeftArm = Character["Left Arm"]
  14. local RightArm = Character["Right Arm"]
  15. local LeftLeg = Character["Left Leg"]
  16. local RightLeg = Character["Right Leg"]
  17. local Head = Character.Head
  18. local Torso = Character.Torso
  19. local cam = game.Workspace.CurrentCamera
  20. local RootPart = Character.HumanoidRootPart
  21. local RootJoint = RootPart.RootJoint
  22. local equipped = false
  23. local attack = false
  24. local Anim = 'Idle'
  25. local idle = 0
  26. local attacktype = 1
  27. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  28. local velocity = RootPart.Velocity.y
  29. local sine = 0
  30. local change = 1
  31. local grabbed = false
  32. local cn = CFrame.new
  33. local mr = math.rad
  34. local angles = CFrame.Angles
  35. local ud = UDim2.new
  36. local c3 = Color3.new
  37.  
  38. local Music = Instance.new("Sound")
  39.  
  40. Music.Name = "Sound"
  41. Music.SoundId = "http://roblox.com/asset/?id=155746694"
  42. Music.Volume = 2
  43. Music.Looped = true
  44. Music.Parent = Torso
  45. Music:play()
  46.  
  47. CV="White"
  48.  
  49. p = game.Players.LocalPlayer
  50. char = p.Character
  51. local txt = Instance.new("BillboardGui", char)
  52. txt.Adornee = char .Head
  53. txt.Name = "_status"
  54. txt.Size = UDim2.new(2, 0, 1.2, 0)
  55. txt.StudsOffset = Vector3.new(-9, 6, 0)
  56. local text = Instance.new("TextLabel", txt)
  57. text.Size = UDim2.new(10, 0, 7, 0)
  58. text.FontSize = "Size24"
  59. text.TextScaled = true
  60. text.TextTransparency = 0
  61. text.BackgroundTransparency = 1
  62. text.TextTransparency = 0
  63. text.TextStrokeTransparency = 1
  64. text.Font = "Code"
  65. text.TextStrokeColor3 = Color3.new(40,0,0)
  66.  
  67. v=Instance.new("Part")
  68. v.Name = "ColorBrick"
  69. v.Parent=p.Character
  70. v.FormFactor="Symmetric"
  71. v.Anchored=true
  72. v.CanCollide=false
  73. v.BottomSurface="Smooth"
  74. v.TopSurface="Smooth"
  75. v.Size=Vector3.new(10,5,3)
  76. v.Transparency=1
  77. v.CFrame=char.Torso.CFrame
  78. v.BrickColor=BrickColor.new(CV)
  79. v.Transparency=1
  80. text.TextColor3 = Color3.new(255,0,0)
  81. v.Shape="Block"
  82. text.Text = "Grenadier"
  83. coroutine.wrap(function()
  84. while wait() do
  85. wait(3)
  86. text.Text = "Kill"
  87. wait()
  88. text.Text = "Grenadier";
  89. wait(2)
  90. local str = ""
  91. for i = 1, math.random(3,25) do
  92. str = str..string.char(math.random(65,122))
  93. end
  94. text.Text = str
  95. wait()
  96. str = ""
  97. for i = 1, math.random(12,25) do
  98. str = str..string.char(math.random(48,122))
  99. end
  100. wait()
  101. text.Text = str
  102. wait()
  103. text.Text = "Grenadier";
  104. wait(1)
  105. text.Text = "THE PAIN"
  106. wait()
  107. text.Text = "What do you want?"
  108. wait()
  109. text.Text = "Grenadier";
  110. wait(2)
  111. text.Text = "You made me do this.";
  112. wait()
  113. text.Text = "Kill";
  114. wait()
  115. for i = 1, math.random(12,25) do
  116. str = str..string.char(math.random(48,57))
  117. end
  118. text.Text = str
  119. wait()
  120. text.Text = "Grenadier";
  121. wait(2)
  122. end
  123. end)()
  124.  
  125. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  126. Humanoid.Animator:Destroy()
  127. Character.Animate:Destroy()
  128.  
  129. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  130. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  131. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  132.  
  133. RSH, LSH = nil, nil
  134.  
  135. RW = Instance.new("Weld")
  136. LW = Instance.new("Weld")
  137.  
  138. RH = Torso["Right Hip"]
  139. LH = Torso["Left Hip"]
  140.  
  141. RSH = Torso["Right Shoulder"]
  142. LSH = Torso["Left Shoulder"]
  143.  
  144. RSH.Parent = nil
  145. LSH.Parent = nil
  146.  
  147. RW.Name = "RW"
  148. RW.Part0 = Torso
  149. RW.C0 = cn(1.5, 0.5, 0)
  150. RW.C1 = cn(0, 0.5, 0)
  151. RW.Part1 = RightArm
  152. RW.Parent = Torso
  153.  
  154. LW.Name = "LW"
  155. LW.Part0 = Torso
  156. LW.C0 = cn(-1.5, 0.5, 0)
  157. LW.C1 = cn(0, 0.5, 0)
  158. LW.Part1 = LeftArm
  159. LW.Parent = Torso
  160.  
  161. function clerp(a, b, t)
  162. local qa = {
  163. QuaternionFromCFrame(a)
  164. }
  165. local qb = {
  166. QuaternionFromCFrame(b)
  167. }
  168. local ax, ay, az = a.x, a.y, a.z
  169. local bx, by, bz = b.x, b.y, b.z
  170. local _t = 1 - t
  171. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  172. end
  173.  
  174. function QuaternionFromCFrame(cf)
  175. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  176. local trace = m00 + m11 + m22
  177. if trace > 0 then
  178. local s = math.sqrt(1 + trace)
  179. local recip = 0.5 / s
  180. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  181. else
  182. local i = 0
  183. if m11 > m00 then
  184. i = 1
  185. end
  186. if m22 > (i == 0 and m00 or m11) then
  187. i = 2
  188. end
  189. if i == 0 then
  190. local s = math.sqrt(m00 - m11 - m22 + 1)
  191. local recip = 0.5 / s
  192. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  193. elseif i == 1 then
  194. local s = math.sqrt(m11 - m22 - m00 + 1)
  195. local recip = 0.5 / s
  196. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  197. elseif i == 2 then
  198. local s = math.sqrt(m22 - m00 - m11 + 1)
  199. local recip = 0.5 / s
  200. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  201. end
  202. end
  203. end
  204.  
  205. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  206. local xs, ys, zs = x + x, y + y, z + z
  207. local wx, wy, wz = w * xs, w * ys, w * zs
  208. local xx = x * xs
  209. local xy = x * ys
  210. local xz = x * zs
  211. local yy = y * ys
  212. local yz = y * zs
  213. local zz = z * zs
  214. return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
  215. end
  216.  
  217. function QuaternionSlerp(a, b, t)
  218. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  219. local startInterp, finishInterp;
  220. if cosTheta >= 0.0001 then
  221. if (1 - cosTheta) > 0.0001 then
  222. local theta = math.acos(cosTheta)
  223. local invSinTheta = 1 / math.sin(theta)
  224. startInterp = math.sin((1 - t) * theta) * invSinTheta
  225. finishInterp = math.sin(t * theta) * invSinTheta
  226. else
  227. startInterp = 1 - t
  228. finishInterp = t
  229. end
  230. else
  231. if (1 + cosTheta) > 0.0001 then
  232. local theta = math.acos(-cosTheta)
  233. local invSinTheta = 1 / math.sin(theta)
  234. startInterp = math.sin((t - 1) * theta) * invSinTheta
  235. finishInterp = math.sin(t * theta) * invSinTheta
  236. else
  237. startInterp = t - 1
  238. finishInterp = t
  239. end
  240. end
  241. return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
  242. end
  243.  
  244. function swait(num)
  245. if num == 0 or num == nil then
  246. game:service'RunService'.RenderStepped:wait(0)
  247. else
  248. for i = 0, num do
  249. game:service'RunService'.RenderStepped:wait(0)
  250. end
  251. end
  252. end
  253.  
  254. local RbxUtility = LoadLibrary("RbxUtility")
  255. local Create = RbxUtility.Create
  256.  
  257. function RemoveOutlines(part)
  258. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  259. end
  260.  
  261. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  262. local Part = Create("Part"){
  263. formFactor = FormFactor,
  264. Parent = Parent,
  265. Reflectance = Reflectance,
  266. Transparency = Transparency,
  267. CanCollide = false,
  268. Locked = true,
  269. BrickColor = BrickColor.new(tostring(BColor)),
  270. Name = Name,
  271. Size = Size,
  272. Material = Material,
  273. }
  274. RemoveOutlines(Part)
  275. return Part
  276. end
  277.  
  278. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  279. local Msh = Create(Mesh){
  280. Parent = Part,
  281. Offset = OffSet,
  282. Scale = Scale,
  283. }
  284. if Mesh == "SpecialMesh" then
  285. Msh.MeshType = MeshType
  286. Msh.MeshId = MeshId
  287. end
  288. return Msh
  289. end
  290.  
  291. function CreateWeld(Parent, Part0, Part1, C0, C1)
  292. local Weld = Create("Weld"){
  293. Parent = Parent,
  294. Part0 = Part0,
  295. Part1 = Part1,
  296. C0 = C0,
  297. C1 = C1,
  298. }
  299. return Weld
  300. end
  301.  
  302. function rayCast(Position, Direction, Range, Ignore)
  303. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  304. end
  305.  
  306. function CreateSound(id, par, vol, pit)
  307. coroutine.resume(coroutine.create(function()
  308. local sou = Instance.new("Sound", par or workspace)
  309. sou.Volume = vol
  310. sou.Pitch = pit or 1
  311. sou.SoundId = id
  312. wait()
  313. sou:play()
  314. game:GetService("Debris"):AddItem(sou, 6)
  315. end))
  316. end
  317.  
  318. local function getclosest(obj, distance)
  319. local last, lastx = distance + 1
  320. for i, v in pairs(workspace:GetChildren()) do
  321. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  322. local t = v.Torso
  323. local dist = (t.Position - obj.Position).magnitude
  324. if dist <= distance then
  325. if dist < last then
  326. last = dist
  327. lastx = v
  328. end
  329. end
  330. end
  331. end
  332. return lastx
  333. end
  334.  
  335. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  336. for i, v in pairs(hit:GetChildren()) do
  337. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  338. local find = v:FindFirstChild("Hitz")
  339. if not find then
  340. if v.Parent:findFirstChild("Head") then
  341. local BillG = Create("BillboardGui"){
  342. Parent = v.Parent.Head,
  343. Size = UDim2.new(1, 0, 1, 0),
  344. Adornee = v.Parent.Head,
  345. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  346. }
  347. local TL = Create("TextLabel"){
  348. Parent = BillG,
  349. Size = UDim2.new(3, 3, 3, 3),
  350. BackgroundTransparency = 1,
  351. Text = tostring(damage).."-",
  352. TextColor3 = Color1.Color,
  353. TextStrokeColor3 = Color2.Color,
  354. TextStrokeTransparency = 0,
  355. TextXAlignment = Enum.TextXAlignment.Center,
  356. TextYAlignment = Enum.TextYAlignment.Center,
  357. FontSize = Enum.FontSize.Size18,
  358. Font = "ArialBold",
  359. }
  360. coroutine.resume(coroutine.create(function()
  361. wait(1)
  362. for i = 0, 1, .1 do
  363. wait(.1)
  364. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  365. end
  366. BillG:Destroy()
  367. end))
  368. end
  369. v.Health = v.Health - damage
  370. local bool = Create("BoolValue"){
  371. Parent = v,
  372. Name = 'Hitz',
  373. }
  374. if HSound ~= nil and HPitch ~= nil then
  375. CreateSound(HSound, hit, 1, HPitch)
  376. end
  377. game:GetService("Debris"):AddItem(bool, cooldown)
  378. end
  379. end
  380. end
  381. end
  382.  
  383. BeltHandle=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,1,maincolor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  384. BeltHandleWeld=CreateWeld(m,Character["Torso"],BeltHandle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.100003839, -0.10000658, 0.039604187, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  385. CreateMesh("SpecialMesh",Handle,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  386. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  387. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00000143, 0.800000191, -0.900024414, 1.00000095, 0, 0, 0, 1.00000095, 0, 0, 0, 1))
  388. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  389. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  390. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.199999452, 0.800000191, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  391. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  392. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  393. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000095, 0.800000668, -0.600036621, 1.00000095, 0, 0, 0, 1.00000095, 0, 0, 0, 1))
  394. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  395. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  396. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 0.800000191, -1.20002747, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  397. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  398. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  399. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.999999285, 1.20000017, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  400. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  401. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.399999976))
  402. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.399996519, 1.19997859, -0.900001526, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  403. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.5))
  404. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1))
  405. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.873519182, 0.875028849, 7.62939453e-006, 1.00000048, 2.98023224e-008, 0, -2.98023224e-008, 1.00000048, 0, 0, 0, 1))
  406. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
  407. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  408. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.19999969, 1.20000017, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  409. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  410. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1.20000005, 0.200000003, 0.200000003))
  411. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.383595228, 0.873704672, 0.561660767, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  412. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  413. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  414. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.20000017, -0.600036621, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  415. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  416. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1))
  417. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.10000467, -0.839025259, 7.62939453e-006, 1.00000048, 2.98023224e-008, 0, -2.98023224e-008, 1.00000048, 0, 0, 0, 1))
  418. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
  419. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  420. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.20000017, -1.20002747, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  421. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  422. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  423. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.00000143, 1.00000095, -0.900024414, 1.00000095, 0, 0, 0, 1.00000095, 0, 0, 0, 1))
  424. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  425. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  426. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.199999571, 1.00000024, -0.900024414, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  427. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  428. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  429. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.00000024, -1.20002747, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  430. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  431. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  432. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.400000334, 1.00000024, -0.600036621, 1, 0, 0, 0, 1, 0, 0, 0, 1))
  433. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  434. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2))
  435. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.600006104, -0.550998211, -0.264925003, 0, 0, 1, 0.866030455, -0.50000298, 0, 0.50000298, 0.866030455, 0))
  436. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
  437. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2))
  438. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.551292419, -0.550997257, -0.264920235, 0, 0, 1, 0.866026282, -0.500000596, 0, 0.500000596, 0.866026282, 0))
  439. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
  440. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  441. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.618934631, -1.11904907, -0.378275394, -7.22996483e-005, 0.258449346, 0.966024876, -0.258846909, -0.933106005, 0.249622881, 0.965918303, -0.250034481, 0.0669662654))
  442. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  443. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  444. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146978378, 0.819980621, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872))
  445. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
  446. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  447. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146780014, -0.618598938, 0.819963455, -0.965918303, 0.250127673, -0.0666192323, 0.000367853441, 0.258694977, 0.965959072, 0.258847147, 0.933012903, -0.249970183))
  448. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0353727117, 0.0353727117, 0.195910335))
  449. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  450. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.618911743, -1.11906242, 0.0842905045, -7.22996483e-005, 0.258449346, 0.966024876, -0.258846909, -0.933106005, 0.249622881, 0.965918303, -0.250034481, 0.0669662654))
  451. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  452. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  453. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146529675, -1.11931229, -0.849815369, -0.966026366, 0.249645084, -0.0668619275, -0.258443773, -0.93311727, 0.249998152, 2.07903122e-005, 0.258784831, 0.965935051))
  454. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  455. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003))
  456. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146978855, 0.833585739, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872))
  457. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
  458. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  459. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146543503, -1.11932945, -0.387252808, -0.966026366, 0.249645084, -0.0668619275, -0.258443773, -0.93311727, 0.249998152, 2.07903122e-005, 0.258784831, 0.965935051))
  460. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  461. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533))
  462. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146978378, 1.11928749, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872))
  463. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  464. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  465. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.146780968, -0.618598938, 0.887987137, -0.965918303, 0.250127673, -0.0666192323, 0.000367853441, 0.258694977, 0.965959072, 0.258847147, 0.933012903, -0.249970183))
  466. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  467. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159))
  468. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.146979332, 0.874403, -0.618515015, 0.965925932, -0.25, 0.0669871271, 0.258818984, 0.933012784, -0.25000006, 1.72604899e-007, 0.258819044, 0.965925872))
  469. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
  470. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  471. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.147661209, 0.618507385, -1.11928749, -0.965925753, 0.250000179, -0.0669872537, 9.5304955e-009, -0.258818716, -0.965925992, -0.258819222, -0.933012724, 0.249999642))
  472. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  473. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  474. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.618507385, 0.147660732, -1.11928558, 1.63101575e-007, 0.258819103, 0.965925872, -0.965925813, 0.249999955, -0.0669871345, -0.258818984, -0.933012784, 0.250000089))
  475. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  476. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  477. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.811385632, 1.0717392, -0.472206116, -0.965925872, -0.249999747, -0.0669872984, -3.85198042e-008, 0.258819461, -0.965925813, 0.258818835, -0.933012724, -0.250000447))
  478. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  479. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  480. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.07174683, -0.811385632, -0.472205162, 0, -0.258819073, 0.965925932, -0.965925813, -0.25, -0.0669872984, 0.258819044, -0.933012664, -0.25))
  481. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  482. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159))
  483. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812067032, 0.227316856, -1.07175446, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932))
  484. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
  485. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  486. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812459946, -1.07144165, 0.240917206, -0.965933323, -0.250073344, -0.0666048378, 0.000382640806, -0.258748859, 0.965944588, -0.25879091, 0.933012486, 0.250029802))
  487. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  488. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533))
  489. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812067032, 0.472203255, -1.07175446, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932))
  490. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  491. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  492. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812264442, -0.471851349, -0.840454102, -0.96582526, -0.250369936, -0.0670563057, 0.259194255, -0.932908118, -0.250001878, 3.5586083e-005, -0.258838713, 0.965920568))
  493. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  494. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003))
  495. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812066555, 0.186501503, -1.07175446, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932))
  496. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
  497. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  498. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812278271, -0.471839905, -1.30301666, -0.96582526, -0.250369936, -0.0670563057, 0.259194255, -0.932908118, -0.250001878, 3.5586083e-005, -0.258838713, 0.965920568))
  499. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  500. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  501. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.0718689, -0.471829414, 1.04336882, 0.000128595711, -0.259174168, 0.965830684, 0.258791149, -0.932919323, -0.250377089, 0.965933323, 0.249980628, 0.066952005))
  502. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  503. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  504. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.07188416, -0.471815109, 0.580803394, 0.000128595711, -0.259174168, 0.965830684, 0.258791149, -0.932919323, -0.250377089, 0.965933323, 0.249980628, 0.066952005))
  505. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.141490847, 0.141490847, 0.579568207))
  506. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  507. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.812461376, -1.07144928, 0.172890663, -0.965933323, -0.250073344, -0.0666048378, 0.000382640806, -0.258748859, 0.965944588, -0.25879091, 0.933012486, 0.250029802))
  508. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.0353727117, 0.0353727117, 0.195910335))
  509. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  510. Partweld=CreateWeld(m,BeltHandle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.812067032, 0.172896385, -1.07176208, 0.965925813, 0.25, 0.0669872984, -0.258819044, 0.933012664, 0.25, 3.85670473e-009, -0.258819073, 0.965925932))
  511. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
  512.  
  513. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  514. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  515. prt.Anchored = true
  516. prt.CFrame = cframe
  517. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  518. game:GetService("Debris"):AddItem(prt, 10)
  519. if Type == 1 or Type == nil then
  520. table.insert(Effects, {
  521. prt,
  522. "Block1",
  523. delay,
  524. x3,
  525. y3,
  526. z3,
  527. msh
  528. })
  529. elseif Type == 2 then
  530. table.insert(Effects, {
  531. prt,
  532. "Block2",
  533. delay,
  534. x3,
  535. y3,
  536. z3,
  537. msh
  538. })
  539. end
  540. end
  541.  
  542. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  543. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  544. prt.Anchored = true
  545. prt.CFrame = cframe
  546. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  547. game:GetService("Debris"):AddItem(prt, 10)
  548. table.insert(Effects, {
  549. prt,
  550. "Cylinder",
  551. delay,
  552. x3,
  553. y3,
  554. z3,
  555. msh
  556. })
  557. end
  558.  
  559. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  560. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  561. prt.Anchored = true
  562. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  563. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  564. game:GetService("Debris"):AddItem(prt, 10)
  565. table.insert(Effects, {
  566. prt,
  567. "Cylinder",
  568. delay,
  569. x3,
  570. y3,
  571. z3,
  572. msh
  573. })
  574. end
  575.  
  576. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  577. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  578. prt.Anchored = true
  579. prt.CFrame = cframe
  580. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  581. game:GetService("Debris"):AddItem(prt, 10)
  582. table.insert(Effects, {
  583. prt,
  584. "Cylinder",
  585. delay,
  586. x3,
  587. y3,
  588. z3,
  589. msh
  590. })
  591. end
  592.  
  593. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  594. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  595. prt.Anchored = true
  596. prt.CFrame = cframe
  597. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  598. game:GetService("Debris"):AddItem(prt, 10)
  599. table.insert(Effects, {
  600. prt,
  601. "Cylinder",
  602. delay,
  603. x3,
  604. y3,
  605. z3,
  606. msh
  607. })
  608. end
  609.  
  610. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  611. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  612. prt.Anchored = true
  613. prt.CFrame = cframe
  614. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  615. game:GetService("Debris"):AddItem(prt, 10)
  616. table.insert(Effects, {
  617. prt,
  618. "Cylinder",
  619. delay,
  620. x3,
  621. y3,
  622. z3,
  623. msh
  624. })
  625. end
  626.  
  627. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  628. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  629. prt.Anchored = true
  630. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  631. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  632. local num = math.random(10, 50) / 1000
  633. game:GetService("Debris"):AddItem(prt, 10)
  634. table.insert(Effects, {
  635. prt,
  636. "Shatter",
  637. num,
  638. prt.CFrame,
  639. math.random() - math.random(),
  640. 0,
  641. math.random(50, 100) / 100
  642. })
  643. end
  644.  
  645. local GrenadeModel = Instance.new("Model")
  646. GrenadeModel.Parent = nil
  647. GrenadeModel.Name = "GrenadeModel"
  648. GrenadeHandle = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Handle", Vector3.new(0.720000029, 0.720000029, 0.720000029))
  649. GrenadeHandleWeld = CreateWeld(GrenadeModel, Character["Left Arm"], GrenadeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0399894714, 0.0880355835, -1.03497469, -1, -1.29144695e-010, -1.65926451e-007, 1.65926451e-007, -5.96046377e-008, -1, 1.291348e-010, -1, 5.96046377e-008))
  650. GrenadeHandleWeld.Name = "HandleWeld"
  651. CreateMesh("SpecialMesh", GrenadeHandle, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  652. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  653. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-005, 6.07967377e-006, -0.305992126, -0.99999994, 2.91125325e-005, 0.000388413115, 0.0003884123, -2.87742059e-005, 1, 2.91237066e-005, 1, 2.87628955e-005))
  654. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
  655. Button = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Button", Vector3.new(0.287999928, 0.24000001, 0.251999915))
  656. Buttonweld = CreateWeld(GrenadeModel, GrenadeHandle, Button, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.378005981, -2.2649765e-006, 1, 0, 4.87636868e-018, 0, 1, 0, 4.87636868e-018, 0, 1))
  657. CreateMesh("CylinderMesh", Button, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.150000006, 1))
  658. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Part", Vector3.new(0.287999928, 0.24000001, 0.287999928))
  659. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-3.81469727e-006, -0.323997498, 4.05311584e-006, 1, 0, 4.87636868e-018, 0, 1, 0, 4.87636868e-018, 0, 1))
  660. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.299999982, 1))
  661. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  662. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.52587891e-005, 9.77516174e-006, -0.395996094, -0.99999994, 2.91125325e-005, 0.000388413115, 0.0003884123, -2.87742059e-005, 1, 2.91237066e-005, 1, 2.87628955e-005))
  663. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.0468000025, 0.0468000025, 0.259199947))
  664. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  665. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, -0.396003723, 5.96046448e-007, 1, 0, 4.87636868e-018, 0, 1, 0, 4.87636868e-018, 0, 1))
  666. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.300000012, 0.300000012, 0.300000012))
  667. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  668. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(6.67572021e-006, -7.62939453e-006, -0.305995941, 2.90565495e-005, -0.000388383865, 0.99999994, -2.88907795e-005, -0.99999994, -0.000388383021, 1, -2.88794927e-005, -2.90677672e-005))
  669. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
  670. Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928))
  671. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.000904083252, 0, 3.6234119e-012, 0, 1, -1, -1.42108547e-014, 3.62340236e-012, 1.42108547e-014, -1, 0))
  672. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  673. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  674. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.67028809e-005, 0, 0.306002617, -0.99999994, -0.000388418615, 2.90845201e-005, 0.0003884178, -1, -2.87741423e-005, 2.90956923e-005, -2.87628409e-005, 1))
  675. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
  676. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  677. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.14440918e-005, 1.52587891e-005, -0.306001425, -0.99999994, -0.000388418615, 2.90845201e-005, 0.0003884178, -1, -2.87741423e-005, 2.90956923e-005, -2.87628409e-005, 1))
  678. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
  679. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  680. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.45571136e-005, -3.05175781e-005, 0.305992126, 2.90565495e-005, -0.000388383865, 0.99999994, -2.88907795e-005, -0.99999994, -0.000388383021, 1, -2.88794927e-005, -2.90677672e-005))
  681. CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=18430887", Vector3.new(0, 0, 0), Vector3.new(0.18720001, 0.18720001, 0.766799986))
  682. Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928))
  683. Partweld = CreateWeld(GrenadeModel, GrenadeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000904083252, -5.96046448e-007, 0, -1, 2.46687932e-007, -5.96051919e-008, 5.96052629e-008, 3.27825546e-007, -1, -2.46687904e-007, -1, -3.27825546e-007))
  684. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  685.  
  686. local charge = false
  687.  
  688. local CanThrow = true
  689.  
  690. function ThrowGrenade()
  691. attack = true
  692. for i = 0, 1, 0.05 do
  693. swait()
  694. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  695. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  696. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, .1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.1)
  697. if Torsovelocity > 2 then
  698. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  699. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  700. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  701. elseif Torsovelocity < 1 then
  702. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  703. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  704. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  705. end
  706. end
  707. Grenade = GrenadeModel:Clone()
  708. Grenade.Parent = Character
  709. CreateSound("http://roblox.com/asset/?id=1043364151",Grenade.Handle,4,1)
  710. for i = 0, 1, 0.05 do
  711. swait()
  712. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  713. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  714. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  715. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.1)
  716. if Torsovelocity > 2 then
  717. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  718. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  719. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  720. elseif Torsovelocity < 1 then
  721. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  722. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  723. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  724. end
  725. end
  726. local Beep = Instance.new("Sound")
  727. Beep.Name = "Beep"
  728. Beep.SoundId = "rbxassetid://965143595"
  729. Beep.Volume = 4
  730. Beep.Looped = true
  731. Beep.Pitch = 1
  732. Beep.Parent = Grenade.Handle
  733. Beep:Play()
  734. local Beep2 = Instance.new("Sound")
  735. Beep2.Name = "Beep2"
  736. Beep2.SoundId = "rbxassetid://1039719759"
  737. Beep2.Volume = 4
  738. Beep2.Looped = false
  739. Beep2.Pitch = 1
  740. Beep2.Parent = Grenade.Handle
  741.  
  742. while wait() do
  743. if charge == true then
  744. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  745. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.5)
  747. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1)
  748. if Torsovelocity > 2 then
  749. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  750. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  751. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  752. elseif Torsovelocity < 1 then
  753. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  754. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  755. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  756. end
  757. elseif charge == false then
  758. break
  759. end
  760. end
  761. for i = 0, 1, 0.1 do
  762. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  763. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  764. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  765. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1)
  766. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  767. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  768. if Torsovelocity > 2 then
  769. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  770. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  771. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  772. elseif Torsovelocity < 1 then
  773. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  774. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  775. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  776. end
  777. end
  778. CreateSound("rbxassetid://535156025",LeftArm,5,1)
  779. Grenade.HandleWeld:remove()
  780. local BodyVelocity = Instance.new("BodyVelocity")
  781. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  782. BodyVelocity.velocity = (mouse.Hit.p - Grenade.Handle.Position).unit * 200
  783. BodyVelocity.Parent = Grenade.Handle
  784. game:GetService("Debris"):AddItem(BodyVelocity, 0.1)
  785. game:GetService("Debris"):AddItem(Grenade, 10)
  786. wait()
  787. ExplodeCon = Grenade.Handle.Touched:connect(function(Hit)
  788. ExplodeCon:disconnect()
  789. Grenade.Parent = workspace
  790. CreateSound("rbxassetid://240036913",Grenade.Handle,1,1)
  791. if Hit.Parent == Grenade.Handle.Parent then
  792. return
  793. end
  794. for _, Part in pairs(Grenade:GetChildren()) do
  795. pcall(function()
  796. Part.CanCollide = true
  797. end)
  798. end
  799. local Weld = Instance.new("Weld")
  800. Weld.Part0 = Grenade.Handle
  801. Weld.Part1 = Hit
  802. Weld.C0 = Grenade.Handle.CFrame:inverse() * CFrame.new(Grenade.Handle.Position)
  803. Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Grenade.Handle.Position)
  804. Weld.Parent = Grenade.Handle
  805. Beep2:Play()
  806. for i = 1, 10, 0.075 do
  807. swait()
  808. end
  809. for i = 1, 5 do
  810. local Sound = Instance.new("Sound")
  811. Sound.Name = "Explode"
  812. Sound.SoundId = "rbxassetid://166221646"
  813. Sound.Volume = 5
  814. Sound.Pitch = math.random(700, 900) / 1000
  815. Sound.Parent = Workspace
  816. Sound:Play()
  817. end
  818. local S = Instance.new("Explosion", workspace)
  819. S.ExplosionType = "NoCraters"
  820. S.Position = Grenade.Handle.Position
  821. S.BlastPressure = 5
  822. S.BlastRadius = 10
  823. S.ExplosionType = 2
  824. Grenade:remove()
  825. end)
  826. for i = 0, 1, 0.05 do
  827. swait()
  828. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  829. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  830. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  831. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  832. if Torsovelocity > 2 then
  833. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  834. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 5), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  835. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 5), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  836. elseif Torsovelocity < 1 then
  837. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  838. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  839. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  840. end
  841. end
  842. attack = false
  843. end
  844.  
  845. mouse.Button1Down:connect(function()
  846. if attack == false and CanThrow == true then
  847. charge = true
  848. ThrowGrenade()
  849. end
  850. end)
  851.  
  852. mouse.Button1Up:connect(function()
  853. if charge == true and attack == true then
  854. charge = false
  855. end
  856. end)
  857.  
  858. mouse.KeyDown:connect(function(k)
  859. k = k:lower()
  860. if attack == false and k == '' then
  861.  
  862. end
  863. end)
  864.  
  865. mouse.KeyUp:connect(function(k)
  866. k = k:lower()
  867. if attack == true and k == '' then
  868.  
  869. end
  870. end)
  871.  
  872. game:GetService'RunService'.Stepped:connect(function()
  873. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  874. velocity = RootPart.Velocity.y
  875. sine = sine + change
  876. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  877. if equipped == true or equipped == false then
  878. if RootPart.Velocity.y > 1 and hit == nil then
  879. Anim = "Jump"
  880. if attack == false then
  881. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  882. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  883. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  884. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  885. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  886. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  887. end
  888. elseif RootPart.Velocity.y < -1 and hit == nil then
  889. Anim = "Fall"
  890. if attack == false then
  891. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  892. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  893. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  894. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  895. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  896. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  897. end
  898. elseif Torsovelocity < 1 and hit ~= nil then
  899. Anim = "Idle"
  900. if attack == false then
  901. change = 1
  902. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.1 + 0.1 * math.cos(sine / 25)) * angles(math.rad(0), math.rad(0), math.rad(5)), .3)
  903. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3)
  904. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(5 + 3 * math.cos(sine / 25))), 0.3)
  905. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-5 - 3 * math.cos(sine / 25))), 0.3)
  906. RH.C0 = clerp(RH.C0, cn(1, -.9 - 0.1 * math.cos(sine / 25), 0) * RHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
  907. LH.C0 = clerp(LH.C0, cn(-1, -.9 - 0.1 * math.cos(sine / 25), 0) * LHCF * angles(math.rad(-2 + 2 * math.cos(sine / 25)), math.rad(-5), math.rad(0 + 2 * math.cos(sine / 25))), .3)
  908. end
  909. elseif Torsovelocity > 2 and hit ~= nil then
  910. Anim = "Walk"
  911. if attack == false then
  912. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, -0.05 + .1 * math.cos(sine / 3)) * angles(math.rad(5), math.rad(0) + RootPart.RotVelocity.Y / 30, math.rad(5 * math.cos(sine / 5))), .2)
  913. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(-3), math.rad(0), math.rad(-5 * math.cos(sine / 5)) + RootPart.RotVelocity.Y / 9), .2)
  914. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  915. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50 * math.cos(sine / 4)), math.rad(0), math.rad(4 * math.cos(sine / 4))), .2)
  916. RH.C0 = clerp(RH.C0, cn(1, -1 + .1 * math.cos(sine / 3), 0) * RHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  917. LH.C0 = clerp(LH.C0, cn(-1, -1 + .1 * math.cos(sine / 3), 0) * LHCF * angles(math.rad(-2), math.rad(0), math.rad(30 * math.cos(sine / 4))), .3)
  918. end
  919. end
  920. end
  921. if #Effects > 0 then
  922. for e = 1, #Effects do
  923. if Effects[e] ~= nil then
  924. local Thing = Effects[e]
  925. if Thing ~= nil then
  926. local Part = Thing[1]
  927. local Mode = Thing[2]
  928. local Delay = Thing[3]
  929. local IncX = Thing[4]
  930. local IncY = Thing[5]
  931. local IncZ = Thing[6]
  932. if Thing[1].Transparency <= 1 then
  933. if Thing[2] == "Block1" then
  934. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  935. local Mesh = Thing[1].Mesh
  936. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  937. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  938. elseif Thing[2] == "Block2" then
  939. Thing[1].CFrame = Thing[1].CFrame
  940. local Mesh = Thing[7]
  941. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  942. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  943. elseif Thing[2] == "Cylinder" then
  944. local Mesh = Thing[1].Mesh
  945. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  946. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  947. elseif Thing[2] == "Blood" then
  948. local Mesh = Thing[7]
  949. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  950. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  951. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  952. elseif Thing[2] == "Elec" then
  953. local Mesh = Thing[1].Mesh
  954. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  955. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  956. elseif Thing[2] == "Disappear" then
  957. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  958. elseif Thing[2] == "Shatter" then
  959. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  960. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  961. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  962. Thing[6] = Thing[6] + Thing[5]
  963. end
  964. else
  965. Part.Parent = nil
  966. table.remove(Effects, e)
  967. end
  968. end
  969. end
  970. end
  971. end
  972. end)
Add Comment
Please, Sign In to add comment