Advertisement
lafur

Untitled

Jan 28th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.78 KB | None | 0 0
  1. --https://github.com/Mokiros/roblox-FE-compatibility
  2. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  3. local Player,game,owner = owner,game
  4. local RealPlayer = Player
  5. do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end --[[NIGHTOWLACE_WEAPONRY]]--
  6. maincolor = game.Players.LocalPlayer.Character.Torso.BrickColor.Name
  7. secondcolor = "Really black"
  8.  
  9. wait(1 / 60)
  10. Effects = { }
  11. local Player = game.Players.localPlayer
  12. local Character = Player.Character
  13. local Humanoid = Character.Humanoid
  14. local mouse = Player:GetMouse()
  15. local m = Instance.new('Model', Character)
  16. m.Name = "WeaponModel"
  17. local LeftArm = Character["Left Arm"]
  18. local RightArm = Character["Right Arm"]
  19. local LeftLeg = Character["Left Leg"]
  20. local RightLeg = Character["Right Leg"]
  21. local Head = Character.Head
  22. local Torso = Character.Torso
  23. local cam = game.Workspace.CurrentCamera
  24. local RootPart = Character.HumanoidRootPart
  25. local RootJoint = RootPart.RootJoint
  26. local equipped = false
  27. local attack = false
  28. local Anim = 'Idle'
  29. local idle = 0
  30. local attacktype = 1
  31. local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  32. local velocity = RootPart.Velocity.y
  33. local sine = 0
  34. local change = 1
  35. local grabbed = false
  36. local cn = CFrame.new
  37. local mr = math.rad
  38. local angles = CFrame.Angles
  39. local ud = UDim2.new
  40. local c3 = Color3.new
  41.  
  42. local NeckCF = cn(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  43. Humanoid.Animator:Destroy()
  44. Character.Animate:Destroy()
  45.  
  46. local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
  47. local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
  48. local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
  49.  
  50. RSH, LSH = nil, nil
  51.  
  52. RW = Instance.new("Weld")
  53. LW = Instance.new("Weld")
  54.  
  55. RH = Torso["Right Hip"]
  56. LH = Torso["Left Hip"]
  57.  
  58. RSH = Torso["Right Shoulder"]
  59. LSH = Torso["Left Shoulder"]
  60.  
  61. RSH.Parent = nil
  62. LSH.Parent = nil
  63.  
  64. RW.Name = "RW"
  65. RW.Part0 = Torso
  66. RW.C0 = cn(1.5, 0.5, 0)
  67. RW.C1 = cn(0, 0.5, 0)
  68. RW.Part1 = RightArm
  69. RW.Parent = Torso
  70.  
  71. LW.Name = "LW"
  72. LW.Part0 = Torso
  73. LW.C0 = cn(-1.5, 0.5, 0)
  74. LW.C1 = cn(0, 0.5, 0)
  75. LW.Part1 = LeftArm
  76. LW.Parent = Torso
  77.  
  78. function clerp(a, b, t)
  79. local qa = {
  80. QuaternionFromCFrame(a)
  81. }
  82. local qb = {
  83. QuaternionFromCFrame(b)
  84. }
  85. local ax, ay, az = a.x, a.y, a.z
  86. local bx, by, bz = b.x, b.y, b.z
  87. local _t = 1 - t
  88. return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
  89. end
  90.  
  91. function QuaternionFromCFrame(cf)
  92. local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
  93. local trace = m00 + m11 + m22
  94. if trace > 0 then
  95. local s = math.sqrt(1 + trace)
  96. local recip = 0.5 / s
  97. return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
  98. else
  99. local i = 0
  100. if m11 > m00 then
  101. i = 1
  102. end
  103. if m22 > (i == 0 and m00 or m11) then
  104. i = 2
  105. end
  106. if i == 0 then
  107. local s = math.sqrt(m00 - m11 - m22 + 1)
  108. local recip = 0.5 / s
  109. return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
  110. elseif i == 1 then
  111. local s = math.sqrt(m11 - m22 - m00 + 1)
  112. local recip = 0.5 / s
  113. return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
  114. elseif i == 2 then
  115. local s = math.sqrt(m22 - m00 - m11 + 1)
  116. local recip = 0.5 / s
  117. return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
  118. end
  119. end
  120. end
  121.  
  122. function QuaternionToCFrame(px, py, pz, x, y, z, w)
  123. local xs, ys, zs = x + x, y + y, z + z
  124. local wx, wy, wz = w * xs, w * ys, w * zs
  125. local xx = x * xs
  126. local xy = x * ys
  127. local xz = x * zs
  128. local yy = y * ys
  129. local yz = y * zs
  130. local zz = z * zs
  131. 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))
  132. end
  133.  
  134. function QuaternionSlerp(a, b, t)
  135. local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
  136. local startInterp, finishInterp;
  137. if cosTheta >= 0.0001 then
  138. if (1 - cosTheta) > 0.0001 then
  139. local theta = math.acos(cosTheta)
  140. local invSinTheta = 1 / math.sin(theta)
  141. startInterp = math.sin((1 - t) * theta) * invSinTheta
  142. finishInterp = math.sin(t * theta) * invSinTheta
  143. else
  144. startInterp = 1 - t
  145. finishInterp = t
  146. end
  147. else
  148. if (1 + cosTheta) > 0.0001 then
  149. local theta = math.acos(-cosTheta)
  150. local invSinTheta = 1 / math.sin(theta)
  151. startInterp = math.sin((t - 1) * theta) * invSinTheta
  152. finishInterp = math.sin(t * theta) * invSinTheta
  153. else
  154. startInterp = t - 1
  155. finishInterp = t
  156. end
  157. end
  158. 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
  159. end
  160.  
  161. function swait(num)
  162. if num == 0 or num == nil then
  163. game:service'RunService'.RenderStepped:wait(0)
  164. else
  165. for i = 0, num do
  166. game:service'RunService'.RenderStepped:wait(0)
  167. end
  168. end
  169. end
  170.  
  171. local RbxUtility = LoadLibrary("RbxUtility")
  172. local Create = RbxUtility.Create
  173.  
  174. function RemoveOutlines(part)
  175. part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
  176. end
  177.  
  178. function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
  179. local Part = Create("Part"){
  180. formFactor = FormFactor,
  181. Parent = Parent,
  182. Reflectance = Reflectance,
  183. Transparency = Transparency,
  184. CanCollide = false,
  185. Locked = true,
  186. BrickColor = BrickColor.new(tostring(BColor)),
  187. Name = Name,
  188. Size = Size,
  189. Material = Material,
  190. }
  191. RemoveOutlines(Part)
  192. return Part
  193. end
  194.  
  195. function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
  196. local Msh = Create(Mesh){
  197. Parent = Part,
  198. Offset = OffSet,
  199. Scale = Scale,
  200. }
  201. if Mesh == "SpecialMesh" then
  202. Msh.MeshType = MeshType
  203. Msh.MeshId = MeshId
  204. end
  205. return Msh
  206. end
  207.  
  208. function CreateWeld(Parent, Part0, Part1, C0, C1)
  209. local Weld = Create("Weld"){
  210. Parent = Parent,
  211. Part0 = Part0,
  212. Part1 = Part1,
  213. C0 = C0,
  214. C1 = C1,
  215. }
  216. return Weld
  217. end
  218.  
  219. function rayCast(Position, Direction, Range, Ignore)
  220. return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
  221. end
  222.  
  223. function CreateSound(id, par, vol, pit)
  224. coroutine.resume(coroutine.create(function()
  225. local sou = Instance.new("Sound", par or workspace)
  226. sou.Volume = vol
  227. sou.Pitch = pit or 1
  228. sou.SoundId = id
  229. wait()
  230. sou:play()
  231. game:GetService("Debris"):AddItem(sou, 6)
  232. end))
  233. end
  234.  
  235. local function getclosest(obj, distance)
  236. local last, lastx = distance + 1
  237. for i, v in pairs(workspace:GetChildren()) do
  238. if v:IsA'Model' and v ~= Character and v:findFirstChild('Humanoid') and v:findFirstChild('Torso') and v:findFirstChild('Humanoid').Health > 0 then
  239. local t = v.Torso
  240. local dist = (t.Position - obj.Position).magnitude
  241. if dist <= distance then
  242. if dist < last then
  243. last = dist
  244. lastx = v
  245. end
  246. end
  247. end
  248. end
  249. return lastx
  250. end
  251.  
  252. function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch)
  253. for i, v in pairs(hit:GetChildren()) do
  254. if v:IsA("Humanoid") and hit.Name ~= Character.Name then
  255. local find = v:FindFirstChild("Hitz")
  256. if not find then
  257. if v.Parent:findFirstChild("Head") then
  258. local BillG = Create("BillboardGui"){
  259. Parent = v.Parent.Head,
  260. Size = UDim2.new(1, 0, 1, 0),
  261. Adornee = v.Parent.Head,
  262. StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)),
  263. }
  264. local TL = Create("TextLabel"){
  265. Parent = BillG,
  266. Size = UDim2.new(3, 3, 3, 3),
  267. BackgroundTransparency = 1,
  268. Text = tostring(damage).."-",
  269. TextColor3 = Color1.Color,
  270. TextStrokeColor3 = Color2.Color,
  271. TextStrokeTransparency = 0,
  272. TextXAlignment = Enum.TextXAlignment.Center,
  273. TextYAlignment = Enum.TextYAlignment.Center,
  274. FontSize = Enum.FontSize.Size18,
  275. Font = "ArialBold",
  276. }
  277. coroutine.resume(coroutine.create(function()
  278. wait(1)
  279. for i = 0, 1, .1 do
  280. wait(.1)
  281. BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0)
  282. end
  283. BillG:Destroy()
  284. end))
  285. end
  286. v.Health = v.Health - damage
  287. local bool = Create("BoolValue"){
  288. Parent = v,
  289. Name = 'Hitz',
  290. }
  291. if HSound ~= nil and HPitch ~= nil then
  292. CreateSound(HSound, hit, 1, HPitch)
  293. end
  294. game:GetService("Debris"):AddItem(bool, cooldown)
  295. end
  296. end
  297. end
  298. end
  299.  
  300. BeltHandle=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,1,maincolor,"Handle",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  301. 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))
  302. CreateMesh("SpecialMesh",Handle,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  303. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  304. 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))
  305. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  306. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  307. 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))
  308. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  309. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  310. 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))
  311. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  312. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  313. 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))
  314. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  315. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  316. 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))
  317. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  318. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.399999976))
  319. 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))
  320. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.5))
  321. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1))
  322. 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))
  323. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
  324. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  325. 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))
  326. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  327. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1.20000005, 0.200000003, 0.200000003))
  328. 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))
  329. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  330. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  331. 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))
  332. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  333. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.400000006, 0.200000003, 1))
  334. 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))
  335. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 1.29999995))
  336. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  337. 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))
  338. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  339. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  340. 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))
  341. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  342. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
  343. 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))
  344. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 0.800000012))
  345. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  346. 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))
  347. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  348. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(1, 0.200000003, 0.200000003))
  349. 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))
  350. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.600000024, 0.100000001, 0.200000003))
  351. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2))
  352. 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))
  353. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
  354. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.200000003, 0.200000003, 2))
  355. 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))
  356. CreateMesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"rbxasset://fonts/torso.mesh",Vector3.new(0, 0, 0),Vector3.new(0.100000001, 0.100000001, 2))
  357. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  358. 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))
  359. 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))
  360. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  361. 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))
  362. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
  363. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  364. 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))
  365. 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))
  366. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  367. 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))
  368. 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))
  369. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  370. 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))
  371. 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))
  372. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003))
  373. 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))
  374. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
  375. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  376. 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))
  377. 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))
  378. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533))
  379. 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))
  380. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  381. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  382. 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))
  383. 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))
  384. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159))
  385. 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))
  386. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
  387. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  388. 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))
  389. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  390. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  391. 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))
  392. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  393. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  394. 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))
  395. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  396. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.217678159, 0.51834631, 0.217678159))
  397. 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))
  398. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  399. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.217678159))
  400. 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))
  401. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.272097737, 1))
  402. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  403. 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))
  404. 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))
  405. Part=CreatePart(Enum.FormFactor.Symmetric,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.544195533, 0.544195533, 0.544195533))
  406. 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))
  407. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
  408. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  409. 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))
  410. 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))
  411. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,secondcolor,"Part",Vector3.new(0.217678159, 0.200000003, 0.200000003))
  412. 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))
  413. CreateMesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.136048868, 0.952341855))
  414. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  415. 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))
  416. 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))
  417. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  418. 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))
  419. 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))
  420. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  421. 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))
  422. 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))
  423. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  424. 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))
  425. 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))
  426. Part=CreatePart(Enum.FormFactor.Custom,m,Enum.Material.Neon,0,0,maincolor,"Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
  427. 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))
  428. CreateMesh("SpecialMesh",Part,Enum.MeshType.Sphere,"",Vector3.new(0, 0, 0),Vector3.new(0.272097737, 0.272097737, 0.272097737))
  429.  
  430. function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
  431. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  432. prt.Anchored = true
  433. prt.CFrame = cframe
  434. local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  435. game:GetService("Debris"):AddItem(prt, 10)
  436. if Type == 1 or Type == nil then
  437. table.insert(Effects, {
  438. prt,
  439. "Block1",
  440. delay,
  441. x3,
  442. y3,
  443. z3,
  444. msh
  445. })
  446. elseif Type == 2 then
  447. table.insert(Effects, {
  448. prt,
  449. "Block2",
  450. delay,
  451. x3,
  452. y3,
  453. z3,
  454. msh
  455. })
  456. end
  457. end
  458.  
  459. function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  460. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  461. prt.Anchored = true
  462. prt.CFrame = cframe
  463. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  464. game:GetService("Debris"):AddItem(prt, 10)
  465. table.insert(Effects, {
  466. prt,
  467. "Cylinder",
  468. delay,
  469. x3,
  470. y3,
  471. z3,
  472. msh
  473. })
  474. end
  475.  
  476. function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  477. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  478. prt.Anchored = true
  479. prt.CFrame = cframe * CFrame.new(x1, y1, z1)
  480. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  481. game:GetService("Debris"):AddItem(prt, 10)
  482. table.insert(Effects, {
  483. prt,
  484. "Cylinder",
  485. delay,
  486. x3,
  487. y3,
  488. z3,
  489. msh
  490. })
  491. end
  492.  
  493. function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  494. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  495. prt.Anchored = true
  496. prt.CFrame = cframe
  497. local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  498. game:GetService("Debris"):AddItem(prt, 10)
  499. table.insert(Effects, {
  500. prt,
  501. "Cylinder",
  502. delay,
  503. x3,
  504. y3,
  505. z3,
  506. msh
  507. })
  508. end
  509.  
  510. function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  511. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  512. prt.Anchored = true
  513. prt.CFrame = cframe
  514. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  515. game:GetService("Debris"):AddItem(prt, 10)
  516. table.insert(Effects, {
  517. prt,
  518. "Cylinder",
  519. delay,
  520. x3,
  521. y3,
  522. z3,
  523. msh
  524. })
  525. end
  526.  
  527. function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
  528. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
  529. prt.Anchored = true
  530. prt.CFrame = cframe
  531. local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  532. game:GetService("Debris"):AddItem(prt, 10)
  533. table.insert(Effects, {
  534. prt,
  535. "Cylinder",
  536. delay,
  537. x3,
  538. y3,
  539. z3,
  540. msh
  541. })
  542. end
  543.  
  544. function BreakEffect(brickcolor, cframe, x1, y1, z1)
  545. local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
  546. prt.Anchored = true
  547. prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  548. local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
  549. local num = math.random(10, 50) / 1000
  550. game:GetService("Debris"):AddItem(prt, 10)
  551. table.insert(Effects, {
  552. prt,
  553. "Shatter",
  554. num,
  555. prt.CFrame,
  556. math.random() - math.random(),
  557. 0,
  558. math.random(50, 100) / 100
  559. })
  560. end
  561.  
  562. local GrenadeModel = Instance.new("Model")
  563. GrenadeModel.Parent = nil
  564. GrenadeModel.Name = "GrenadeModel"
  565. GrenadeHandle = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Handle", Vector3.new(0.720000029, 0.720000029, 0.720000029))
  566. 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))
  567. GrenadeHandleWeld.Name = "HandleWeld"
  568. CreateMesh("SpecialMesh", GrenadeHandle, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  569. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  570. 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))
  571. 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))
  572. Button = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Button", Vector3.new(0.287999928, 0.24000001, 0.251999915))
  573. 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))
  574. CreateMesh("CylinderMesh", Button, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.150000006, 1))
  575. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, secondcolor, "Part", Vector3.new(0.287999928, 0.24000001, 0.287999928))
  576. 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))
  577. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.299999982, 1))
  578. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  579. 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))
  580. 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))
  581. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  582. 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))
  583. CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(0.300000012, 0.300000012, 0.300000012))
  584. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  585. 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))
  586. 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))
  587. Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928))
  588. 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))
  589. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  590. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  591. 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))
  592. 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))
  593. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  594. 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))
  595. 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))
  596. Part = CreatePart(Enum.FormFactor.Custom, GrenadeModel, Enum.Material.SmoothPlastic, 0, 0, maincolor, "Part", Vector3.new(0.24000001, 0.24000001, 0.24000001))
  597. 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))
  598. 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))
  599. Part = CreatePart(Enum.FormFactor.Symmetric, GrenadeModel, Enum.Material.Neon, 0, 0, maincolor, "Part", Vector3.new(0.287999928, 0.685800076, 0.287999928))
  600. 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))
  601. CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
  602.  
  603. local charge = false
  604.  
  605. local CanThrow = true
  606.  
  607. function ThrowGrenade()
  608. attack = true
  609. for i = 0, 1, 0.05 do
  610. swait()
  611. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  612. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  613. LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, .1) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.1)
  614. if Torsovelocity > 2 then
  615. 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)
  616. 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)
  617. 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)
  618. elseif Torsovelocity < 1 then
  619. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  620. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  621. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  622. end
  623. end
  624. Grenade = GrenadeModel:Clone()
  625. Grenade.Parent = Character
  626. CreateSound("http://roblox.com/asset/?id=175783708",Grenade.Handle,1,1)
  627. for i = 0, 1, 0.05 do
  628. swait()
  629. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  630. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  631. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  632. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-20)), 0.1)
  633. if Torsovelocity > 2 then
  634. 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)
  635. 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)
  636. 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)
  637. elseif Torsovelocity < 1 then
  638. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  639. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  640. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  641. end
  642. end
  643. local Beep = Instance.new("Sound")
  644. Beep.Name = "Beep"
  645. Beep.SoundId = "rbxassetid://146785518"
  646. Beep.Volume = 1
  647. Beep.Looped = true
  648. Beep.Pitch = 4
  649. Beep.Parent = Grenade.Handle
  650. Beep:Play()
  651. while wait() do
  652. if charge == true then
  653. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  654. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  655. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.5)
  656. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1)
  657. if Torsovelocity > 2 then
  658. 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)
  659. 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)
  660. 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)
  661. elseif Torsovelocity < 1 then
  662. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  663. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  664. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  665. end
  666. elseif charge == false then
  667. break
  668. end
  669. end
  670. for i = 0, 1, 0.1 do
  671. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  672. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  673. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  674. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(200), math.rad(0), math.rad(-10)), 0.1)
  675. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  676. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  677. if Torsovelocity > 2 then
  678. 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)
  679. 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)
  680. 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)
  681. elseif Torsovelocity < 1 then
  682. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  683. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  684. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  685. end
  686. end
  687. CreateSound("rbxassetid://320557413",LeftArm,1,1)
  688. Grenade.HandleWeld:remove()
  689. local BodyVelocity = Instance.new("BodyVelocity")
  690. BodyVelocity.maxForce = Vector3.new(math.huge, math.huge, math.huge)
  691. BodyVelocity.velocity = (mouse.Hit.p - Grenade.Handle.Position).unit * 200
  692. BodyVelocity.Parent = Grenade.Handle
  693. game:GetService("Debris"):AddItem(BodyVelocity, 0.1)
  694. game:GetService("Debris"):AddItem(Grenade, 10)
  695. wait()
  696. ExplodeCon = Grenade.Handle.Touched:connect(function(Hit)
  697. ExplodeCon:disconnect()
  698. Grenade.Parent = workspace
  699. CreateSound("rbxassetid://240036913",Grenade.Handle,1,1)
  700. if Hit.Parent == Grenade.Handle.Parent then
  701. return
  702. end
  703. for _, Part in pairs(Grenade:GetChildren()) do
  704. pcall(function()
  705. Part.CanCollide = true
  706. end)
  707. end
  708. local Weld = Instance.new("Weld")
  709. Weld.Part0 = Grenade.Handle
  710. Weld.Part1 = Hit
  711. Weld.C0 = Grenade.Handle.CFrame:inverse() * CFrame.new(Grenade.Handle.Position)
  712. Weld.C1 = Hit.CFrame:inverse() * CFrame.new(Grenade.Handle.Position)
  713. Weld.Parent = Grenade.Handle
  714. for i = 4, 10, 0.075 do
  715. Beep.Pitch = i
  716. swait()
  717. end
  718. for i = 1, 5 do
  719. local Sound = Instance.new("Sound")
  720. Sound.Name = "Explode"
  721. Sound.SoundId = "rbxassetid://166221646"
  722. Sound.Volume = 1
  723. Sound.Pitch = math.random(700, 900) / 1000
  724. Sound.Parent = Grenade.Handle
  725. Sound:Play()
  726. end
  727. local S = Instance.new("Explosion", workspace)
  728. S.ExplosionType = "NoCraters"
  729. S.Position = Grenade.Handle.Position
  730. S.BlastPressure = 5
  731. S.BlastRadius = 10
  732. S.ExplosionType = 2
  733. Grenade:remove()
  734. end)
  735. for i = 0, 1, 0.05 do
  736. swait()
  737. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), .1)
  738. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5), math.rad(0), math.rad(0)), .1)
  739. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  740. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
  741. if Torsovelocity > 2 then
  742. 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)
  743. 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)
  744. 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)
  745. elseif Torsovelocity < 1 then
  746. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -.1) * angles(math.rad(5), math.rad(0), math.rad(5)), 0.1)
  747. RH.C0 = clerp(RH.C0, cn(1, -1, 0) * RHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  748. LH.C0 = clerp(LH.C0, cn(-1, -1, 0) * LHCF * angles(math.rad(-2), math.rad(5), math.rad(0)), .1)
  749. end
  750. end
  751. attack = false
  752. end
  753.  
  754. mouse.Button1Down:connect(function()
  755. if attack == false and CanThrow == true then
  756. charge = true
  757. ThrowGrenade()
  758. end
  759. end)
  760.  
  761. mouse.Button1Up:connect(function()
  762. if charge == true and attack == true then
  763. charge = false
  764. end
  765. end)
  766.  
  767. mouse.KeyDown:connect(function(k)
  768. k = k:lower()
  769. if attack == false and k == '' then
  770.  
  771. end
  772. end)
  773.  
  774. mouse.KeyUp:connect(function(k)
  775. k = k:lower()
  776. if attack == true and k == '' then
  777.  
  778. end
  779. end)
  780.  
  781. game:GetService'RunService'.Stepped:connect(function()
  782. Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
  783. velocity = RootPart.Velocity.y
  784. sine = sine + change
  785. local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
  786. if equipped == true or equipped == false then
  787. if RootPart.Velocity.y > 1 and hit == nil then
  788. Anim = "Jump"
  789. if attack == false then
  790. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  791. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  792. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(30)), .1)
  793. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40), math.rad(0), math.rad(-30)), .1)
  794. RH.C0 = clerp(RH.C0, cn(1, -.9, -.3) * RHCF * angles(math.rad(3), math.rad(0), math.rad(0)), .1)
  795. LH.C0 = clerp(LH.C0, cn(-1, -.7, -.5) * LHCF * angles(math.rad(-3), math.rad(0), math.rad(0)), .1)
  796. end
  797. elseif RootPart.Velocity.y < -1 and hit == nil then
  798. Anim = "Fall"
  799. if attack == false then
  800. RootJoint.C0 = clerp(RootJoint.C0, RootCF * cn(0, 0, 0) * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  801. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(10), math.rad(0), math.rad(0)), .1)
  802. RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(50)), .1)
  803. LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-50)), .1)
  804. RH.C0 = clerp(RH.C0, cn(1, -1, -.3) * RHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  805. LH.C0 = clerp(LH.C0, cn(-1, -.8, -.3) * LHCF * angles(math.rad(-5), math.rad(0), math.rad(0)), .1)
  806. end
  807. elseif Torsovelocity < 1 and hit ~= nil then
  808. Anim = "Idle"
  809. if attack == false then
  810. change = 1
  811. 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)
  812. Torso.Neck.C0 = clerp(Torso.Neck.C0, NeckCF * angles(math.rad(5 - 2 * math.cos(sine / 25)), math.rad(0), math.rad(-5)), .3)
  813. 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)
  814. 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)
  815. 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)
  816. 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)
  817. end
  818. elseif Torsovelocity > 2 and hit ~= nil then
  819. Anim = "Walk"
  820. if attack == false then
  821. 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)
  822. 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)
  823. 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)
  824. 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)
  825. 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)
  826. 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)
  827. end
  828. end
  829. end
  830. if #Effects > 0 then
  831. for e = 1, #Effects do
  832. if Effects[e] ~= nil then
  833. local Thing = Effects[e]
  834. if Thing ~= nil then
  835. local Part = Thing[1]
  836. local Mode = Thing[2]
  837. local Delay = Thing[3]
  838. local IncX = Thing[4]
  839. local IncY = Thing[5]
  840. local IncZ = Thing[6]
  841. if Thing[1].Transparency <= 1 then
  842. if Thing[2] == "Block1" then
  843. Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
  844. local Mesh = Thing[1].Mesh
  845. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  846. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  847. elseif Thing[2] == "Block2" then
  848. Thing[1].CFrame = Thing[1].CFrame
  849. local Mesh = Thing[7]
  850. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  851. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  852. elseif Thing[2] == "Cylinder" then
  853. local Mesh = Thing[1].Mesh
  854. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  855. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  856. elseif Thing[2] == "Blood" then
  857. local Mesh = Thing[7]
  858. Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0)
  859. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
  860. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  861. elseif Thing[2] == "Elec" then
  862. local Mesh = Thing[1].Mesh
  863. Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
  864. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  865. elseif Thing[2] == "Disappear" then
  866. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  867. elseif Thing[2] == "Shatter" then
  868. Thing[1].Transparency = Thing[1].Transparency + Thing[3]
  869. Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
  870. Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
  871. Thing[6] = Thing[6] + Thing[5]
  872. end
  873. else
  874. Part.Parent = nil
  875. table.remove(Effects, e)
  876. end
  877. end
  878. end
  879. end
  880. end
  881. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement