Advertisement
HenloMyDude

agent guy

Nov 9th, 2019
609
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 57.08 KB | None | 0 0
  1.  
  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,Mouse,mouse,UserInputService,ContextActionService = owner
  4. local RealPlayer = Player
  5. do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
  6.  
  7. function Smooth(part)
  8. part.TopSurface = "Smooth"
  9. part.BottomSurface = "Smooth"
  10. part.RightSurface = "Smooth"
  11. part.LeftSurface = "Smooth"
  12. end
  13.  
  14. plr = owner
  15. char = plr.Character
  16. ra = char["Right Arm"]
  17. la = char["Left Arm"]
  18. rl = char["Right Leg"]
  19. ll = char["Left Leg"]
  20. root = char.HumanoidRootPart
  21. hed = char.Head
  22. tors = char.Torso
  23. hum = char.Humanoid
  24. dancin = false
  25.  
  26. clerp = function(toclerp, cf, number)
  27. local joint = toclerp
  28. joint.C0 = joint.C0:Lerp(cf, number)
  29. end
  30.  
  31. clerp2 = function(toclerp, cf)
  32. local joint = toclerp
  33. joint.C0 = cf
  34. end
  35.  
  36. clerp3 = function(toclerp, cf, number)
  37. local joint = toclerp
  38. joint.C1 = joint.C1:Lerp(cf, number)
  39. end
  40.  
  41. Swait,swait = function(number)
  42. if number == 0 or number == nil then
  43. game:GetService("RunService").Heartbeat:Wait()
  44. else
  45. for i = 1,number do
  46. game:GetService("RunService").Heartbeat:Wait()
  47. end
  48. end
  49. end
  50.  
  51. ezweld = function(p, a, b, cf)
  52. local weld = Instance.new("Weld",p)
  53. weld.Part0 = a
  54. weld.Part1 = b
  55. weld.C0 = cf
  56. return weld
  57. end
  58.  
  59. IT = Instance.new
  60. Rad = math.rad
  61. Cos = math.cos
  62. Sin = math.sin
  63. BrickC = BrickColor.new
  64. C3 = Color3.new
  65. VT = Vector3.new
  66.  
  67. anim = "Idle"
  68. attack = false
  69. local RS = char.Torso["Right Shoulder"]
  70. local LS = char.Torso["Left Shoulder"]
  71. local RH = char.Torso["Right Hip"]
  72. local LH = char.Torso["Left Hip"]
  73. local neck = char.Torso["Neck"]
  74. local anim = "Idle"
  75. local root = char.HumanoidRootPart
  76. local rootj = root.RootJoint
  77. local timepos = 0
  78. local sine = 0
  79. local RSnor = RS.C0
  80. local LSnor = LS.C0
  81. local RHnor = RH.C0
  82. local LHnor = LH.C0
  83. local RSnor2 = RS.C1
  84. local LSnor2 = LS.C1
  85. local RHnor2 = RH.C1
  86. local LHnor2 = LH.C1
  87. local rootjnor = rootj.C0
  88. local necknor = neck.C0
  89. local tors = char.Torso
  90. local playstealanim = false
  91. hum.Animator:Destroy()
  92. hold = false
  93. mouse = plr:GetMouse()
  94. hold = false
  95. Debris = game:GetService("Debris")
  96.  
  97. --------------
  98.  
  99. --Converted with ttyyuu12345's model to script plugin v4
  100. function sandbox(var,func)
  101. local env = getfenv(func)
  102. local newenv = setmetatable({},{
  103. __index = function(self,k)
  104. if k=="script" then
  105. return var
  106. else
  107. return env[k]
  108. end
  109. end,
  110. })
  111. setfenv(func,newenv)
  112. return func
  113. end
  114. cors = {}
  115. mas = Instance.new("Model",game:GetService("Lighting"))
  116. Model0 = Instance.new("Model")
  117. Part1 = Instance.new("Part")
  118. Part2 = Instance.new("Part")
  119. Part3 = Instance.new("Part")
  120. Part4 = Instance.new("Part")
  121. Part5 = Instance.new("Part")
  122. Part6 = Instance.new("Part")
  123. Part7 = Instance.new("Part")
  124. Part8 = Instance.new("Part")
  125. Part9 = Instance.new("Part")
  126. Part10 = Instance.new("Part")
  127. Part11 = Instance.new("Part")
  128. Weld12 = Instance.new("Weld")
  129. Weld13 = Instance.new("Weld")
  130. Weld14 = Instance.new("Weld")
  131. Weld15 = Instance.new("Weld")
  132. Weld16 = Instance.new("Weld")
  133. Weld17 = Instance.new("Weld")
  134. Weld18 = Instance.new("Weld")
  135. Weld19 = Instance.new("Weld")
  136. Weld20 = Instance.new("Weld")
  137. Weld21 = Instance.new("Weld")
  138. Weld22 = Instance.new("Weld")
  139. Weld23 = Instance.new("Weld")
  140. Weld24 = Instance.new("Weld")
  141. Weld25 = Instance.new("Weld")
  142. Weld26 = Instance.new("Weld")
  143. Weld27 = Instance.new("Weld")
  144. Weld28 = Instance.new("Weld")
  145. Weld29 = Instance.new("Weld")
  146. Weld30 = Instance.new("Weld")
  147. Weld31 = Instance.new("Weld")
  148. Weld32 = Instance.new("Weld")
  149. Weld33 = Instance.new("Weld")
  150. Weld34 = Instance.new("Weld")
  151. Weld35 = Instance.new("Weld")
  152. Weld36 = Instance.new("Weld")
  153. Weld37 = Instance.new("Weld")
  154. Weld38 = Instance.new("Weld")
  155. Weld39 = Instance.new("Weld")
  156. Weld40 = Instance.new("Weld")
  157. Weld41 = Instance.new("Weld")
  158. Part42 = Instance.new("Part")
  159. Part43 = Instance.new("Part")
  160. Part44 = Instance.new("Part")
  161. Part45 = Instance.new("Part")
  162. Part46 = Instance.new("Part")
  163. Part47 = Instance.new("Part")
  164. Part48 = Instance.new("Part")
  165. Part49 = Instance.new("Part")
  166. Part50 = Instance.new("Part")
  167. Part51 = Instance.new("Part")
  168. Part52 = Instance.new("Part")
  169. Part53 = Instance.new("Part")
  170. WedgePart54 = Instance.new("WedgePart")
  171. Part55 = Instance.new("Part")
  172. CylinderMesh56 = Instance.new("CylinderMesh")
  173. Part57 = Instance.new("Part")
  174. CylinderMesh58 = Instance.new("CylinderMesh")
  175. Part59 = Instance.new("Part")
  176. Part60 = Instance.new("Part")
  177. Part61 = Instance.new("Part")
  178. Part62 = Instance.new("Part")
  179. Model0.Name = "Gun"
  180. Model0.Parent = mas
  181. Part1.Parent = Model0
  182. Part1.CFrame = CFrame.new(61.0860596, 0.205383316, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  183. Part1.Orientation = Vector3.new(0, -90, 90)
  184. Part1.Position = Vector3.new(61.0860596, 0.205383316, -142.953415)
  185. Part1.Rotation = Vector3.new(-90, -90, 0)
  186. Part1.Size = Vector3.new(0.377446294, 0.539208949, 1.61762691)
  187. Part1.BottomSurface = Enum.SurfaceType.Smooth
  188. Part1.CanCollide = false
  189. Part1.Material = Enum.Material.Metal
  190. Part1.TopSurface = Enum.SurfaceType.Smooth
  191. Part2.Parent = Model0
  192. Part2.CFrame = CFrame.new(60.1423912, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  193. Part2.Orientation = Vector3.new(0, -90, 90)
  194. Part2.Position = Vector3.new(60.1423912, 0.205391541, -143.222992)
  195. Part2.Rotation = Vector3.new(-90, -90, 0)
  196. Part2.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  197. Part2.BottomSurface = Enum.SurfaceType.Smooth
  198. Part2.CanCollide = false
  199. Part2.Material = Enum.Material.Metal
  200. Part2.TopSurface = Enum.SurfaceType.Smooth
  201. Part3.Parent = Model0
  202. Part3.CFrame = CFrame.new(59.3335724, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  203. Part3.Orientation = Vector3.new(0, -90, 90)
  204. Part3.Position = Vector3.new(59.3335724, 0.205391541, -143.222992)
  205. Part3.Rotation = Vector3.new(-90, -90, 0)
  206. Part3.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  207. Part3.BottomSurface = Enum.SurfaceType.Smooth
  208. Part3.CanCollide = false
  209. Part3.Material = Enum.Material.Metal
  210. Part3.TopSurface = Enum.SurfaceType.Smooth
  211. Part4.Parent = Model0
  212. Part4.CFrame = CFrame.new(61.5982704, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  213. Part4.Orientation = Vector3.new(0, -90, 90)
  214. Part4.Position = Vector3.new(61.5982704, 0.205391541, -143.222992)
  215. Part4.Rotation = Vector3.new(-90, -90, 0)
  216. Part4.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  217. Part4.BottomSurface = Enum.SurfaceType.Smooth
  218. Part4.CanCollide = false
  219. Part4.Material = Enum.Material.Metal
  220. Part4.TopSurface = Enum.SurfaceType.Smooth
  221. Part5.Parent = Model0
  222. Part5.CFrame = CFrame.new(61.4365082, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  223. Part5.Orientation = Vector3.new(0, -90, 90)
  224. Part5.Position = Vector3.new(61.4365082, 0.205391541, -143.222992)
  225. Part5.Rotation = Vector3.new(-90, -90, 0)
  226. Part5.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  227. Part5.BottomSurface = Enum.SurfaceType.Smooth
  228. Part5.CanCollide = false
  229. Part5.Material = Enum.Material.Metal
  230. Part5.TopSurface = Enum.SurfaceType.Smooth
  231. Part6.Parent = Model0
  232. Part6.CFrame = CFrame.new(60.7894516, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  233. Part6.Orientation = Vector3.new(0, -90, 90)
  234. Part6.Position = Vector3.new(60.7894516, 0.205391541, -143.222992)
  235. Part6.Rotation = Vector3.new(-90, -90, 0)
  236. Part6.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  237. Part6.BottomSurface = Enum.SurfaceType.Smooth
  238. Part6.CanCollide = false
  239. Part6.Material = Enum.Material.Metal
  240. Part6.TopSurface = Enum.SurfaceType.Smooth
  241. Part7.Parent = Model0
  242. Part7.CFrame = CFrame.new(61.2747421, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  243. Part7.Orientation = Vector3.new(0, -90, 90)
  244. Part7.Position = Vector3.new(61.2747421, 0.205391541, -143.222992)
  245. Part7.Rotation = Vector3.new(-90, -90, 0)
  246. Part7.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  247. Part7.BottomSurface = Enum.SurfaceType.Smooth
  248. Part7.CanCollide = false
  249. Part7.Material = Enum.Material.Metal
  250. Part7.TopSurface = Enum.SurfaceType.Smooth
  251. Part8.Parent = Model0
  252. Part8.CFrame = CFrame.new(60.6276855, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  253. Part8.Orientation = Vector3.new(0, -90, 90)
  254. Part8.Position = Vector3.new(60.6276855, 0.205391541, -143.222992)
  255. Part8.Rotation = Vector3.new(-90, -90, 0)
  256. Part8.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  257. Part8.BottomSurface = Enum.SurfaceType.Smooth
  258. Part8.CanCollide = false
  259. Part8.Material = Enum.Material.Metal
  260. Part8.TopSurface = Enum.SurfaceType.Smooth
  261. Part9.Parent = Model0
  262. Part9.CFrame = CFrame.new(60.9512138, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  263. Part9.Orientation = Vector3.new(0, -90, 90)
  264. Part9.Position = Vector3.new(60.9512138, 0.205391541, -143.222992)
  265. Part9.Rotation = Vector3.new(-90, -90, 0)
  266. Part9.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  267. Part9.BottomSurface = Enum.SurfaceType.Smooth
  268. Part9.CanCollide = false
  269. Part9.Material = Enum.Material.Metal
  270. Part9.TopSurface = Enum.SurfaceType.Smooth
  271. Part10.Parent = Model0
  272. Part10.CFrame = CFrame.new(60.3041573, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  273. Part10.Orientation = Vector3.new(0, -90, 90)
  274. Part10.Position = Vector3.new(60.3041573, 0.205391541, -143.222992)
  275. Part10.Rotation = Vector3.new(-90, -90, 0)
  276. Part10.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  277. Part10.BottomSurface = Enum.SurfaceType.Smooth
  278. Part10.CanCollide = false
  279. Part10.Material = Enum.Material.Metal
  280. Part10.TopSurface = Enum.SurfaceType.Smooth
  281. Part11.Parent = Model0
  282. Part11.CFrame = CFrame.new(61.7600365, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  283. Part11.Orientation = Vector3.new(0, -90, 90)
  284. Part11.Position = Vector3.new(61.7600365, 0.205391541, -143.222992)
  285. Part11.Rotation = Vector3.new(-90, -90, 0)
  286. Part11.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  287. Part11.BottomSurface = Enum.SurfaceType.Smooth
  288. Part11.CanCollide = false
  289. Part11.Material = Enum.Material.Metal
  290. Part11.TopSurface = Enum.SurfaceType.Smooth
  291. Weld12.Name = "BTWeld"
  292. Weld12.Parent = Part11
  293. Weld12.C1 = CFrame.new(0, 0, -1.94117355, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  294. Weld12.Part0 = Part11
  295. Weld12.Part1 = Part46
  296. Weld12.part1 = Part46
  297. Weld13.Name = "BTWeld"
  298. Weld13.Parent = Part11
  299. Weld13.C1 = CFrame.new(0, 0, -0.970584869, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  300. Weld13.Part0 = Part11
  301. Weld13.Part1 = Part6
  302. Weld13.part1 = Part6
  303. Weld14.Name = "BTWeld"
  304. Weld14.Parent = Part11
  305. Weld14.C1 = CFrame.new(0, 0, -0.485294342, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  306. Weld14.Part0 = Part11
  307. Weld14.Part1 = Part7
  308. Weld14.part1 = Part7
  309. Weld15.Name = "BTWeld"
  310. Weld15.Parent = Part11
  311. Weld15.C1 = CFrame.new(8.22544098e-06, 0.269577026, -0.673976898, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  312. Weld15.Part0 = Part11
  313. Weld15.Part1 = Part1
  314. Weld15.part1 = Part1
  315. Weld16.Name = "BTWeld"
  316. Weld16.Parent = Part11
  317. Weld16.C1 = CFrame.new(0, 0, -1.13235092, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  318. Weld16.Part0 = Part11
  319. Weld16.Part1 = Part8
  320. Weld16.part1 = Part8
  321. Weld17.Name = "BTWeld"
  322. Weld17.Parent = Part11
  323. Weld17.C1 = CFrame.new(-0.000156342983, -0.0267333984, -3.07450485, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  324. Weld17.Part0 = Part11
  325. Weld17.Part1 = WedgePart63
  326. Weld17.part1 = WedgePart63
  327. Weld18.Name = "BTWeld"
  328. Weld18.Parent = Part11
  329. Weld18.C1 = CFrame.new(-0.000156342983, -1.73693085, -1.39897156, 1, 0, 0, 0, 0.342020005, 0.939692736, 0, -0.939692736, 0.342019796)
  330. Weld18.Part0 = Part11
  331. Weld18.Part1 = Part60
  332. Weld18.part1 = Part60
  333. Weld19.Name = "BTWeld"
  334. Weld19.Parent = Part11
  335. Weld19.C1 = CFrame.new(0, 0.269577026, -1.75240326, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  336. Weld19.Part0 = Part11
  337. Weld19.Part1 = Part51
  338. Weld19.part1 = Part51
  339. Weld20.Name = "BTWeld"
  340. Weld20.Parent = Part11
  341. Weld20.C1 = CFrame.new(0, 0, -0.808822632, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  342. Weld20.Part0 = Part11
  343. Weld20.Part1 = Part9
  344. Weld20.part1 = Part9
  345. Weld21.Name = "BTWeld"
  346. Weld21.Parent = Part11
  347. Weld21.C1 = CFrame.new(7.67409801e-06, 0.269577026, -2.21075439, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  348. Weld21.Part0 = Part11
  349. Weld21.Part1 = Part61
  350. Weld21.part1 = Part61
  351. Weld22.Name = "BTWeld"
  352. Weld22.Parent = Part11
  353. Weld22.C1 = CFrame.new(0, 0, -1.7794075, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  354. Weld22.Part0 = Part11
  355. Weld22.Part1 = Part42
  356. Weld22.part1 = Part42
  357. Weld23.Name = "BTWeld"
  358. Weld23.Parent = Part11
  359. Weld23.C1 = CFrame.new(0.000164568424, -0.530273438, -2.37520218, -1, 0, 0, 0, -1, 0, 0, -0, 1)
  360. Weld23.Part0 = Part11
  361. Weld23.Part1 = WedgePart54
  362. Weld23.part1 = WedgePart54
  363. Weld24.Name = "BTWeld"
  364. Weld24.Parent = Part11
  365. Weld24.C1 = CFrame.new(-1.49011612e-08, 0.485275269, -1.50978088, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  366. Weld24.Part0 = Part11
  367. Weld24.Part1 = Part62
  368. Weld24.part1 = Part62
  369. Weld25.Name = "BTWeld"
  370. Weld25.Parent = Part11
  371. Weld25.C1 = CFrame.new(-8.22544098e-06, 0.269577026, -3.0896492, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  372. Weld25.Part0 = Part11
  373. Weld25.Part1 = Part52
  374. Weld25.part1 = Part52
  375. Weld26.Name = "BTWeld"
  376. Weld26.Parent = Part11
  377. Weld26.C1 = CFrame.new(-0.000156342983, 0.955657959, -2.60570526, 1, 0, 0, 0, 1, 8.94069672e-08, 0, 8.94069672e-08, 1)
  378. Weld26.Part0 = Part11
  379. Weld26.Part1 = Part59
  380. Weld26.part1 = Part59
  381. Weld27.Name = "BTWeld"
  382. Weld27.Parent = Part11
  383. Weld27.C1 = CFrame.new(-0.000172764063, 0.107257843, 0.162002563, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  384. Weld27.Part0 = Part11
  385. Weld27.Part1 = Part57
  386. Weld27.part1 = Part57
  387. Weld28.Name = "BTWeld"
  388. Weld28.Parent = Part11
  389. Weld28.C1 = CFrame.new(0, 0.269577026, -2.93868637, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  390. Weld28.Part0 = Part11
  391. Weld28.Part1 = Part53
  392. Weld28.part1 = Part53
  393. Weld29.Name = "BTWeld"
  394. Weld29.Parent = Part11
  395. Weld29.C1 = CFrame.new(-0.000156328082, 0.107795715, 0.161987305, 1, 0, 0, 0, 0, -1, 0, 1, 0)
  396. Weld29.Part0 = Part11
  397. Weld29.Part1 = Part55
  398. Weld29.part1 = Part55
  399. Weld30.Name = "BTWeld"
  400. Weld30.Parent = Part11
  401. Weld30.C1 = CFrame.new(-0.0539074689, 1.51135254, -2.86398697, 1, 0, 0, 0, 0.984807789, -0.173648119, 0, 0.173648119, 0.984807789)
  402. Weld30.Part0 = Part11
  403. Weld30.Part1 = Part49
  404. Weld30.part1 = Part49
  405. Weld31.Name = "BTWeld"
  406. Weld31.Parent = Part11
  407. Weld31.C1 = CFrame.new(2.05338001e-05, 1.40350342, -2.83613586, 1, 0, 0, 0, 0.984807789, -0.173648119, 0, 0.173648119, 0.984807789)
  408. Weld31.Part0 = Part11
  409. Weld31.Part1 = Part50
  410. Weld31.part1 = Part50
  411. Weld32.Name = "BTWeld"
  412. Weld32.Parent = Part11
  413. Weld32.C1 = CFrame.new(0, 0, -0.32352829, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  414. Weld32.Part0 = Part11
  415. Weld32.Part1 = Part5
  416. Weld32.part1 = Part5
  417. Weld33.Name = "BTWeld"
  418. Weld33.Parent = Part11
  419. Weld33.C1 = CFrame.new(0, 0, -1.45587921, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  420. Weld33.Part0 = Part11
  421. Weld33.Part1 = Part10
  422. Weld33.part1 = Part10
  423. Weld34.Name = "BTWeld"
  424. Weld34.Parent = Part11
  425. Weld34.C1 = CFrame.new(0, 0, -1.61764526, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  426. Weld34.Part0 = Part11
  427. Weld34.Part1 = Part2
  428. Weld34.part1 = Part2
  429. Weld35.Name = "BTWeld"
  430. Weld35.Parent = Part11
  431. Weld35.C1 = CFrame.new(0, 0, -2.26470184, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  432. Weld35.Part0 = Part11
  433. Weld35.Part1 = Part45
  434. Weld35.part1 = Part45
  435. Weld36.Name = "BTWeld"
  436. Weld36.Parent = Part11
  437. Weld36.C1 = CFrame.new(0, 0, -2.10293579, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  438. Weld36.Part0 = Part11
  439. Weld36.Part1 = Part47
  440. Weld36.part1 = Part47
  441. Weld37.Name = "BTWeld"
  442. Weld37.Parent = Part11
  443. Weld37.C1 = CFrame.new(0, 0, -0.161766052, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  444. Weld37.Part0 = Part11
  445. Weld37.Part1 = Part4
  446. Weld37.part1 = Part4
  447. Weld38.Name = "BTWeld"
  448. Weld38.Parent = Part11
  449. Weld38.C1 = CFrame.new(0.0539405346, 1.75317383, -2.73087311, 1, 0, 0, 0, 0.965925872, -0.258818984, 0, 0.258818984, 0.965925872)
  450. Weld38.Part0 = Part11
  451. Weld38.Part1 = Part48
  452. Weld38.part1 = Part48
  453. Weld39.Name = "BTWeld"
  454. Weld39.Parent = Part11
  455. Weld39.C1 = CFrame.new(0, 0, -0.64705658, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  456. Weld39.Part0 = Part11
  457. Weld39.Part1 = Part44
  458. Weld39.part1 = Part44
  459. Weld40.Name = "BTWeld"
  460. Weld40.Parent = Part11
  461. Weld40.C1 = CFrame.new(0, 0, -2.42646408, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  462. Weld40.Part0 = Part11
  463. Weld40.Part1 = Part3
  464. Weld40.part1 = Part3
  465. Weld41.Name = "BTWeld"
  466. Weld41.Parent = Part11
  467. Weld41.C1 = CFrame.new(0, 0, -1.29411697, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  468. Weld41.Part0 = Part11
  469. Weld41.Part1 = Part43
  470. Weld41.part1 = Part43
  471. Part42.Parent = Model0
  472. Part42.CFrame = CFrame.new(59.980629, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  473. Part42.Orientation = Vector3.new(0, -90, 90)
  474. Part42.Position = Vector3.new(59.980629, 0.205391541, -143.222992)
  475. Part42.Rotation = Vector3.new(-90, -90, 0)
  476. Part42.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  477. Part42.BottomSurface = Enum.SurfaceType.Smooth
  478. Part42.CanCollide = false
  479. Part42.Material = Enum.Material.Metal
  480. Part42.TopSurface = Enum.SurfaceType.Smooth
  481. Part43.Parent = Model0
  482. Part43.CFrame = CFrame.new(60.4659195, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  483. Part43.Orientation = Vector3.new(0, -90, 90)
  484. Part43.Position = Vector3.new(60.4659195, 0.205391541, -143.222992)
  485. Part43.Rotation = Vector3.new(-90, -90, 0)
  486. Part43.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  487. Part43.BottomSurface = Enum.SurfaceType.Smooth
  488. Part43.CanCollide = false
  489. Part43.Material = Enum.Material.Metal
  490. Part43.TopSurface = Enum.SurfaceType.Smooth
  491. Part44.Parent = Model0
  492. Part44.CFrame = CFrame.new(61.1129799, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  493. Part44.Orientation = Vector3.new(0, -90, 90)
  494. Part44.Position = Vector3.new(61.1129799, 0.205391541, -143.222992)
  495. Part44.Rotation = Vector3.new(-90, -90, 0)
  496. Part44.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  497. Part44.BottomSurface = Enum.SurfaceType.Smooth
  498. Part44.CanCollide = false
  499. Part44.Material = Enum.Material.Metal
  500. Part44.TopSurface = Enum.SurfaceType.Smooth
  501. Part45.Parent = Model0
  502. Part45.CFrame = CFrame.new(59.4953346, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  503. Part45.Orientation = Vector3.new(0, -90, 90)
  504. Part45.Position = Vector3.new(59.4953346, 0.205391541, -143.222992)
  505. Part45.Rotation = Vector3.new(-90, -90, 0)
  506. Part45.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  507. Part45.BottomSurface = Enum.SurfaceType.Smooth
  508. Part45.CanCollide = false
  509. Part45.Material = Enum.Material.Metal
  510. Part45.TopSurface = Enum.SurfaceType.Smooth
  511. Part46.Parent = Model0
  512. Part46.CFrame = CFrame.new(59.8188629, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  513. Part46.Orientation = Vector3.new(0, -90, 90)
  514. Part46.Position = Vector3.new(59.8188629, 0.205391541, -143.222992)
  515. Part46.Rotation = Vector3.new(-90, -90, 0)
  516. Part46.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  517. Part46.BottomSurface = Enum.SurfaceType.Smooth
  518. Part46.CanCollide = false
  519. Part46.Material = Enum.Material.Metal
  520. Part46.TopSurface = Enum.SurfaceType.Smooth
  521. Part47.Parent = Model0
  522. Part47.CFrame = CFrame.new(59.6571007, 0.205391541, -143.222992, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  523. Part47.Orientation = Vector3.new(0, -90, 90)
  524. Part47.Position = Vector3.new(59.6571007, 0.205391541, -143.222992)
  525. Part47.Rotation = Vector3.new(-90, -90, 0)
  526. Part47.Size = Vector3.new(0.188723132, 0.0539208949, 0.0539208949)
  527. Part47.BottomSurface = Enum.SurfaceType.Smooth
  528. Part47.CanCollide = false
  529. Part47.Material = Enum.Material.Metal
  530. Part47.TopSurface = Enum.SurfaceType.Smooth
  531. Part48.Parent = Model0
  532. Part48.CFrame = CFrame.new(58.6684608, 0.151451007, -142.236359, 0, 0.258818984, -0.965925872, 1, 0, 0, 0, -0.965925872, -0.258818984)
  533. Part48.Orientation = Vector3.new(0, -105, 90)
  534. Part48.Position = Vector3.new(58.6684608, 0.151451007, -142.236359)
  535. Part48.Rotation = Vector3.new(-180, -75, -90)
  536. Part48.Size = Vector3.new(0.302908868, 0.686593533, 0.444266349)
  537. Part48.BottomSurface = Enum.SurfaceType.Smooth
  538. Part48.CanCollide = false
  539. Part48.Material = Enum.Material.Metal
  540. Part48.TopSurface = Enum.SurfaceType.Smooth
  541. Part49.Parent = Model0
  542. Part49.CFrame = CFrame.new(58.6771164, 0.25929901, -142.231934, 0, 0.173648119, -0.984807789, 1, 0, 0, 0, -0.984807789, -0.173648119)
  543. Part49.Orientation = Vector3.new(0, -100, 90)
  544. Part49.Position = Vector3.new(58.6771164, 0.25929901, -142.231934)
  545. Part49.Rotation = Vector3.new(-180, -80, -90)
  546. Part49.Color = Color3.new(0.0666667, 0.0666667, 0.0666667)
  547. Part49.Size = Vector3.new(0.302908868, 0.686593533, 0.444266349)
  548. Part49.BottomSurface = Enum.SurfaceType.Smooth
  549. Part49.BrickColor = BrickColor.new("Really black")
  550. Part49.CanCollide = false
  551. Part49.Material = Enum.Material.Metal
  552. Part49.TopSurface = Enum.SurfaceType.Smooth
  553. Part49.brickColor = BrickColor.new("Really black")
  554. Part50.Name = "Handle"
  555. Part50.Parent = Model0
  556. Part50.CFrame = CFrame.new(58.7232704, 0.205371007, -142.333298, 0, 0.173648119, -0.984807789, 1, 0, 0, 0, -0.984807789, -0.173648119)
  557. Part50.Orientation = Vector3.new(0, -100, 90)
  558. Part50.Position = Vector3.new(58.7232704, 0.205371007, -142.333298)
  559. Part50.Rotation = Vector3.new(-180, -80, -90)
  560. Part50.Size = Vector3.new(0.404406726, 0.916655362, 0.593129873)
  561. Part50.BottomSurface = Enum.SurfaceType.Smooth
  562. Part50.CanCollide = false
  563. Part50.Material = Enum.Material.Metal
  564. Part50.TopSurface = Enum.SurfaceType.Smooth
  565. Part51.Parent = Model0
  566. Part51.CFrame = CFrame.new(60.0076332, 0.205391541, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  567. Part51.Orientation = Vector3.new(0, -90, 90)
  568. Part51.Position = Vector3.new(60.0076332, 0.205391541, -142.953415)
  569. Part51.Rotation = Vector3.new(-90, -90, 0)
  570. Part51.Size = Vector3.new(0.377446294, 0.539208949, 1.61762691)
  571. Part51.BottomSurface = Enum.SurfaceType.Smooth
  572. Part51.CanCollide = false
  573. Part51.Material = Enum.Material.Metal
  574. Part51.TopSurface = Enum.SurfaceType.Smooth
  575. Part52.Parent = Model0
  576. Part52.CFrame = CFrame.new(58.6703873, 0.205399767, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  577. Part52.Orientation = Vector3.new(0, -90, 90)
  578. Part52.Position = Vector3.new(58.6703873, 0.205399767, -142.953415)
  579. Part52.Rotation = Vector3.new(-90, -90, 0)
  580. Part52.Size = Vector3.new(0.377446294, 0.539208949, 0.431367129)
  581. Part52.BottomSurface = Enum.SurfaceType.Smooth
  582. Part52.CanCollide = false
  583. Part52.Material = Enum.Material.Metal
  584. Part52.TopSurface = Enum.SurfaceType.Smooth
  585. Part53.Parent = Model0
  586. Part53.CFrame = CFrame.new(58.8213501, 0.205391541, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  587. Part53.Orientation = Vector3.new(0, -90, 90)
  588. Part53.Position = Vector3.new(58.8213501, 0.205391541, -142.953415)
  589. Part53.Rotation = Vector3.new(-90, -90, 0)
  590. Part53.Size = Vector3.new(0.377446294, 0.539208949, 0.431367129)
  591. Part53.BottomSurface = Enum.SurfaceType.Smooth
  592. Part53.CanCollide = false
  593. Part53.Material = Enum.Material.Metal
  594. Part53.TopSurface = Enum.SurfaceType.Smooth
  595. WedgePart54.Parent = Model0
  596. WedgePart54.CFrame = CFrame.new(59.3848343, 0.20555611, -142.692719, 0, 0, -1, -1, 0, 0, 0, 1, 0)
  597. WedgePart54.Orientation = Vector3.new(0, -90, -90)
  598. WedgePart54.Position = Vector3.new(59.3848343, 0.20555611, -142.692719)
  599. WedgePart54.Rotation = Vector3.new(90, -90, 0)
  600. WedgePart54.Size = Vector3.new(0.0911263153, 0.647050738, 0.145047203)
  601. WedgePart54.BottomSurface = Enum.SurfaceType.Smooth
  602. WedgePart54.CanCollide = false
  603. WedgePart54.Material = Enum.Material.Metal
  604. Part55.Name = "FiringHole"
  605. Part55.Parent = Model0
  606. Part55.CFrame = CFrame.new(61.6522408, 0.205547869, -143.061005, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  607. Part55.Orientation = Vector3.new(0, 180, 90)
  608. Part55.Position = Vector3.new(61.6522408, 0.205547869, -143.061005)
  609. Part55.Rotation = Vector3.new(-180, 0, -90)
  610. Part55.Color = Color3.new(0.105882, 0.164706, 0.207843)
  611. Part55.Size = Vector3.new(0.242644027, 0.539208949, 0.242644027)
  612. Part55.BottomSurface = Enum.SurfaceType.Smooth
  613. Part55.BrickColor = BrickColor.new("Black")
  614. Part55.CanCollide = false
  615. Part55.Material = Enum.Material.Metal
  616. Part55.TopSurface = Enum.SurfaceType.Smooth
  617. Part55.brickColor = BrickColor.new("Black")
  618. CylinderMesh56.Parent = Part55
  619. Part57.Parent = Model0
  620. Part57.CFrame = CFrame.new(61.6527786, 0.205564305, -143.060989, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  621. Part57.Orientation = Vector3.new(0, 180, 90)
  622. Part57.Position = Vector3.new(61.6527786, 0.205564305, -143.060989)
  623. Part57.Rotation = Vector3.new(-180, 0, -90)
  624. Part57.Size = Vector3.new(0.242098242, 0.537996113, 0.242098242)
  625. Part57.BottomSurface = Enum.SurfaceType.Smooth
  626. Part57.CanCollide = false
  627. Part57.Material = Enum.Material.Metal
  628. Part57.TopSurface = Enum.SurfaceType.Smooth
  629. CylinderMesh58.Parent = Part57
  630. Part59.Parent = Model0
  631. Part59.CFrame = CFrame.new(59.1543312, 0.205547884, -142.267334, 0, -8.94069672e-08, -1, 1, 0, 0, 0, -1, -8.94069672e-08)
  632. Part59.Orientation = Vector3.new(0, -90, 90)
  633. Part59.Position = Vector3.new(59.1543312, 0.205547884, -142.267334)
  634. Part59.Rotation = Vector3.new(-90, -90, 0)
  635. Part59.Size = Vector3.new(0.0911263153, 0.0909884423, 0.909884751)
  636. Part59.BottomSurface = Enum.SurfaceType.Smooth
  637. Part59.CanCollide = false
  638. Part59.Material = Enum.Material.Metal
  639. Part59.TopSurface = Enum.SurfaceType.Smooth
  640. Part60.Parent = Model0
  641. Part60.CFrame = CFrame.new(59.6493797, 0.205547884, -142.502457, 0, -0.939692736, -0.342019796, 1, 0, 0, 0, -0.342020005, 0.939692736)
  642. Part60.Orientation = Vector3.new(0, -20, 90)
  643. Part60.Position = Vector3.new(59.6493797, 0.205547884, -142.502457)
  644. Part60.Rotation = Vector3.new(0, -20, 90)
  645. Part60.Size = Vector3.new(0.0911263153, 0.0909884423, 0.591425121)
  646. Part60.BottomSurface = Enum.SurfaceType.Smooth
  647. Part60.CanCollide = false
  648. Part60.Material = Enum.Material.Metal
  649. Part60.TopSurface = Enum.SurfaceType.Smooth
  650. Part61.Parent = Model0
  651. Part61.CFrame = CFrame.new(59.5492821, 0.205383867, -142.953415, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  652. Part61.Orientation = Vector3.new(0, -90, 90)
  653. Part61.Position = Vector3.new(59.5492821, 0.205383867, -142.953415)
  654. Part61.Rotation = Vector3.new(-90, -90, 0)
  655. Part61.Size = Vector3.new(0.364864796, 0.521235406, 1.56370616)
  656. Part61.BottomSurface = Enum.SurfaceType.Smooth
  657. Part61.CanCollide = false
  658. Part61.Material = Enum.Material.Metal
  659. Part61.TopSurface = Enum.SurfaceType.Smooth
  660. Part62.Parent = Model0
  661. Part62.CFrame = CFrame.new(60.2502556, 0.205391556, -142.737717, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  662. Part62.Orientation = Vector3.new(0, -90, 90)
  663. Part62.Position = Vector3.new(60.2502556, 0.205391556, -142.737717)
  664. Part62.Rotation = Vector3.new(-90, -90, 0)
  665. Part62.Size = Vector3.new(0.404406726, 0.10784179, 3.31613493)
  666. Part62.BottomSurface = Enum.SurfaceType.Smooth
  667. Part62.CanCollide = false
  668. Part62.Material = Enum.Material.Metal
  669. Part62.TopSurface = Enum.SurfaceType.Smooth
  670. for i,v in pairs(mas:GetChildren()) do
  671. v.Parent = script
  672. pcall(function() v:MakeJoints() end)
  673. end
  674. mas:Destroy()
  675. for i,v in pairs(cors) do
  676. spawn(function()
  677. pcall(v)
  678. end)
  679. end
  680.  
  681. Gun = Model0
  682. handle = Gun.Handle
  683.  
  684. local weldo = ezweld(char, handle, ra, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0))
  685.  
  686. IT = Instance.new
  687. CF = CFrame.new
  688. VT = Vector3.new
  689. RAD = math.rad
  690. C3 = Color3.new
  691. UD2 = UDim2.new
  692. BRICKC = BrickColor.new
  693. ANGLES = CFrame.Angles
  694. EULER = CFrame.fromEulerAnglesXYZ
  695. COS = math.cos
  696. ACOS = math.acos
  697. SIN = math.sin
  698. ASIN = math.asin
  699. ABS = math.abs
  700. MRANDOM = math.random
  701. FLOOR = math.floor
  702.  
  703. --------------
  704.  
  705. function Oof(Ch)
  706. if Ch.ClassName == "Model" and Ch ~= char then
  707. local D = Ch:GetDescendants()
  708. for i = 1,#D do
  709. local ee = D[i]
  710. if ee:IsA("Humanoid") then
  711. ee.BreakJointsOnDeath = false
  712. elseif ee:IsA("Motor6D") or ee:IsA("Motor") then
  713. local Old = ee.Parent
  714. ee.Parent = nil
  715. local R = Instance.new("Glue",Old)
  716. R.Name = ee.Name
  717. R.Part0 = ee.Part0
  718. R.Part1 = ee.Part1
  719. R.C0 = ee.C0
  720. R.C1 = ee.C1
  721. elseif ee:IsA("Part") or ee:IsA("MeshPart") then
  722. ee.Anchored = false
  723. end
  724. end
  725. end
  726. end
  727.  
  728. function NewSound(TABLE)
  729. local ID = "rbxassetid://"..(TABLE.ID or 0)
  730. local PARENT = (TABLE.PARENT or root)
  731. local VOLUME = (TABLE.VOLUME or 0.5)
  732. local PITCH = (TABLE.PITCH or 1)
  733. local LOOP = (TABLE.LOOP or false)
  734. local MAXDISTANCE = (TABLE.MAXDISTANCE or 100)
  735. local EMITTERSIZE = (TABLE.EMITTERSIZE or 10)
  736. local PLAYING = (TABLE.PLAYING or true)
  737. local PLAYONREMOVE = (TABLE.PLAYONREMOVE or false)
  738. local DOESDEBRIS = (TABLE.DOESDEBRIS or true)
  739. if ID ~= "rbxassetid://0" then
  740. local SOUND = IT("Sound",PARENT)
  741. SOUND.SoundId = ID
  742. SOUND.Volume = VOLUME
  743. SOUND.Pitch = PITCH
  744. SOUND.Looped = LOOP
  745. SOUND.MaxDistance = MAXDISTANCE
  746. SOUND.EmitterSize = EMITTERSIZE
  747. SOUND.PlayOnRemove = PLAYONREMOVE
  748. if DOESDEBRIS == true and PLAYING == true and LOOP == false then
  749. Debris:AddItem(SOUND,SOUND.TimeLength+5)
  750. end
  751. if PLAYING == true then
  752. SOUND:Play()
  753. end
  754. return SOUND
  755. end
  756. end
  757.  
  758. function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
  759. local NEWSOUND = nil
  760. coroutine.resume(coroutine.create(function()
  761. NEWSOUND = IT("Sound")
  762. NEWSOUND.Parent = PARENT
  763. NEWSOUND.Volume = VOLUME
  764. NEWSOUND.Pitch = PITCH
  765. NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
  766. NEWSOUND:play()
  767. if DOESLOOP == true then
  768. NEWSOUND.Looped = true
  769. else
  770. repeat wait(1) until NEWSOUND.Playing == false
  771. NEWSOUND:remove()
  772. end
  773. end))
  774. return NEWSOUND
  775. end
  776.  
  777. function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
  778. local NEWMESH = IT(MESH)
  779. if MESH == "SpecialMesh" then
  780. NEWMESH.MeshType = MESHTYPE
  781. if MESHID ~= "nil" and MESHID ~= "" then
  782. NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
  783. end
  784. if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
  785. NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
  786. end
  787. end
  788. NEWMESH.Offset = OFFSET or VT(0, 0, 0)
  789. NEWMESH.Scale = SCALE
  790. NEWMESH.Parent = PARENT
  791. return NEWMESH
  792. end
  793.  
  794. function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
  795. local NEWPART = IT("Part")
  796. NEWPART.formFactor = FORMFACTOR
  797. NEWPART.Reflectance = REFLECTANCE
  798. NEWPART.Transparency = TRANSPARENCY
  799. NEWPART.CanCollide = false
  800. NEWPART.Locked = true
  801. NEWPART.Anchored = true
  802. if ANCHOR == false then
  803. NEWPART.Anchored = false
  804. end
  805. NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
  806. NEWPART.Name = NAME
  807. NEWPART.Size = SIZE
  808. NEWPART.Position = root.Position
  809. NEWPART.Material = MATERIAL
  810. NEWPART:BreakJoints()
  811. NEWPART.Parent = PARENT
  812. return NEWPART
  813. end
  814.  
  815. function Dismember(MAN,DOWHAT)
  816. local HUM = MAN:FindFirstChildOfClass("Humanoid")
  817. if HUM then
  818. HUM.Health = 0
  819. HUM.PlatformStand = true
  820. end
  821. Oof(MAN)
  822. end
  823.  
  824. function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
  825. return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
  826. end
  827.  
  828. function CastProperRay(StartPos, EndPos, Distance, Ignore)
  829. local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
  830. return Raycast(StartPos, DIRECTION, Distance, Ignore)
  831. end
  832.  
  833. function Chatter(Text,Timer)
  834. local chat = coroutine.wrap(function()
  835. if char:FindFirstChild("SpeechBoard")~= nil then
  836. char:FindFirstChild("SpeechBoard"):destroy()
  837. end
  838. local naeeym2 = IT("BillboardGui",char)
  839. naeeym2.Size = UD2(0,100,0,40)
  840. naeeym2.StudsOffset = Vector3.new(0,2,0)
  841. naeeym2.Adornee = char.Head
  842. naeeym2.Name = "SpeechBoard"
  843. naeeym2.AlwaysOnTop = true
  844. local tecks2 = IT("TextBox",naeeym2)
  845. tecks2.BackgroundTransparency = 1
  846. tecks2.BorderSizePixel = 0
  847. tecks2.Text = ""
  848. tecks2.Font = "Legacy"
  849. tecks2.TextSize = 15
  850. tecks2.TextStrokeTransparency = 0
  851. tecks2.TextColor3 = Color3.new(1, 1, 1)
  852. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  853. tecks2.Size = UDim2.new(1,0,0.5,0)
  854. for i = 1,string.len(Text),1 do
  855. CreateSound(418252437, char.Head, 3, MRANDOM(8,12)/15, false)
  856. tecks2.Text = string.sub(Text,1,i)
  857. wait(Timer)
  858. end
  859. wait(1)
  860. naeeym2:Destroy()
  861. end)
  862. chat()
  863. end
  864.  
  865. Effects = IT("Model",script)
  866. Effects.Name = "some effects"
  867.  
  868. function WACKYEFFECT(Table)
  869. local TYPE = (Table.EffectType or "Sphere")
  870. local SIZE = (Table.Size or VT(1,1,1))
  871. local ENDSIZE = (Table.Size2 or VT(0,0,0))
  872. local TRANSPARENCY = (Table.Transparency or 0)
  873. local ENDTRANSPARENCY = (Table.Transparency2 or 1)
  874. local CFRAME = (Table.CFrame or root.CFrame)
  875. local MOVEDIRECTION = (Table.MoveToPos or nil)
  876. local ROTATION1 = (Table.RotationX or 0)
  877. local ROTATION2 = (Table.RotationY or 0)
  878. local ROTATION3 = (Table.RotationZ or 0)
  879. local MATERIAL = (Table.Material or "Neon")
  880. local COLOR = (Table.Color or C3(1,1,1))
  881. local TIME = (Table.Time or 45)
  882. local SOUNDID = (Table.SoundID or nil)
  883. local SOUNDPITCH = (Table.SoundPitch or nil)
  884. local SOUNDVOLUME = (Table.SoundVolume or nil)
  885. local USEBOOMERANGMATH = (Table.UseBoomerangMath or false)
  886. local BOOMERANG = (Table.Boomerang or 0)
  887. local SIZEBOOMERANG = (Table.SizeBoomerang or 0)
  888. coroutine.resume(coroutine.create(function()
  889. local PLAYSSOUND = false
  890. local SOUND = nil
  891. local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
  892. if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
  893. PLAYSSOUND = true
  894. SOUND = NewSound({ID = SOUNDID,PARENT = EFFECT,VOLUME = SOUNDVOLUME,PITCH = SOUNDPITCH,LOOP = false,MAXDISTANCE = 200,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
  895. end
  896. EFFECT.Color = COLOR
  897. local MSH = nil
  898. if TYPE == "Sphere" then
  899. MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
  900. elseif TYPE == "Block" or TYPE == "Box" then
  901. MSH = IT("BlockMesh",EFFECT)
  902. MSH.Scale = SIZE
  903. elseif TYPE == "Wave" then
  904. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
  905. elseif TYPE == "Ring" then
  906. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
  907. elseif TYPE == "Slash" then
  908. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  909. elseif TYPE == "Round Slash" then
  910. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
  911. elseif TYPE == "Swirl" then
  912. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "168892432", "", SIZE, VT(0,0,0))
  913. elseif TYPE == "Skull" then
  914. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
  915. elseif TYPE == "Crystal" then
  916. MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
  917. end
  918. if MSH ~= nil then
  919. local BOOMR1 = 1+BOOMERANG/50
  920. local BOOMR2 = 1+SIZEBOOMERANG/50
  921. local MOVESPEED = nil
  922. if MOVEDIRECTION ~= nil then
  923. if USEBOOMERANGMATH == true then
  924. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)*BOOMR1
  925. else
  926. MOVESPEED = ((CFRAME.p - MOVEDIRECTION).Magnitude/TIME)
  927. end
  928. end
  929. local GROWTH = nil
  930. if USEBOOMERANGMATH == true then
  931. GROWTH = (SIZE - ENDSIZE)*(BOOMR2+1)
  932. else
  933. GROWTH = (SIZE - ENDSIZE)
  934. end
  935. local TRANS = TRANSPARENCY - ENDTRANSPARENCY
  936. if TYPE == "Block" then
  937. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  938. else
  939. EFFECT.CFrame = CFRAME
  940. end
  941. if USEBOOMERANGMATH == true then
  942. for LOOP = 1, TIME+1 do
  943. Swait()
  944. MSH.Scale = MSH.Scale - (VT((GROWTH.X)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Y)*((1 - (LOOP/TIME)*BOOMR2)),(GROWTH.Z)*((1 - (LOOP/TIME)*BOOMR2)))*BOOMR2)/TIME
  945. if TYPE == "Wave" then
  946. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  947. end
  948. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  949. if TYPE == "Block" then
  950. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  951. else
  952. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  953. end
  954. if MOVEDIRECTION ~= nil then
  955. local ORI = EFFECT.Orientation
  956. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-(MOVESPEED)*((1 - (LOOP/TIME)*BOOMR1)))
  957. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  958. end
  959. end
  960. else
  961. for LOOP = 1, TIME+1 do
  962. Swait()
  963. MSH.Scale = MSH.Scale - GROWTH/TIME
  964. if TYPE == "Wave" then
  965. MSH.Offset = VT(0,0,-MSH.Scale.Z/8)
  966. end
  967. EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
  968. if TYPE == "Block" then
  969. EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
  970. else
  971. EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
  972. end
  973. if MOVEDIRECTION ~= nil then
  974. local ORI = EFFECT.Orientation
  975. EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
  976. EFFECT.CFrame = CF(EFFECT.Position)*ANGLES(RAD(ORI.X),RAD(ORI.Y),RAD(ORI.Z))
  977. end
  978. end
  979. end
  980. EFFECT.Transparency = 1
  981. if PLAYSSOUND == false then
  982. EFFECT:remove()
  983. else
  984. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  985. EFFECT:remove()
  986. end
  987. else
  988. if PLAYSSOUND == false then
  989. EFFECT:remove()
  990. else
  991. repeat Swait() until EFFECT:FindFirstChildOfClass("Sound") == nil
  992. EFFECT:remove()
  993. end
  994. end
  995. end))
  996. end
  997.  
  998. yeeyeejuice = 0.5
  999.  
  1000. nuzzle = Instance.new("Attachment",Gun.FiringHole)
  1001. UZI = Gun.FiringHole
  1002. nuzzle.Name = "Nuzzle"
  1003.  
  1004. function AttachmentCFrame(A)
  1005. return A.Parent.CFrame*CF(A.Position)
  1006. end
  1007.  
  1008. for _,c in pairs (char:children()) do
  1009. if c:IsA("Shirt") or c:IsA("Pants") then
  1010. c:Destroy()
  1011. end
  1012. end
  1013.  
  1014. local adds = IT("Model",char)
  1015. adds.Name = "Addables"
  1016. local fakehed = IT("Model",nil)
  1017. fakehed.Name = "FakeNametag"
  1018. local fakehedhum = IT("Humanoid",fakehed)
  1019. local removed = IT("Model",nil)
  1020. removed.Name = "Removed"
  1021. local removed2 = IT("Model",nil)
  1022. removed2.Name = "CharacterRemoved"
  1023. local top = Instance.new("Shirt",char)
  1024. top.ShirtTemplate = "http://www.roblox.com/asset/?id=761190889"
  1025. local bottom = Instance.new("Pants",char)
  1026. bottom.PantsTemplate = "http://www.roblox.com/asset/?id=826771090"
  1027. local shades = Instance.new("Part",adds)
  1028. shades.CanCollide = false
  1029. shades.Size = Vector3.new(1, 1, 1)
  1030. shades.Color = Color3.new(0, 0, 0)
  1031. local meshs = Instance.new("SpecialMesh",shades)
  1032. meshs.MeshId = "http://www.roblox.com/asset/?id=51177557"
  1033. meshs.TextureId = "http://www.roblox.com/asset/?id=51177552"
  1034. meshs.Offset = Vector3.new(0, 0.18, -0.15)
  1035. meshs.Scale = Vector3.new(1, 1, 1)
  1036. local welds = ezweld(char, shades, char.Head, CFrame.new(0, 0, 0))
  1037. local hed2 = Instance.new("Part",fakehed)
  1038. hed2.Size = hed.Size
  1039. hed2.Color = hed.Color
  1040. hed2.CanCollide = false
  1041. hed2.Transparency = 0
  1042. hed2.Name = "Head"
  1043. local face2 = Instance.new("Decal",hed2)
  1044. face2.Name = "face"
  1045. face2.Transparency = 1
  1046. face2.Texture = hed.face.Texture
  1047. local hed2wld = ezweld(char, hed2, hed, CFrame.new())
  1048. if hed:FindFirstChild("Mesh") then
  1049. hed.Mesh:Clone().Parent = hed2
  1050. hed2.Mesh.Scale = hed2.Mesh.Scale - Vector3.new(0.01, 0.01, 0.01)
  1051. end
  1052.  
  1053. local transformed = false
  1054. local face = hed:FindFirstChild("face")
  1055. local facedecal = face.Texture
  1056. local hedcolor = char.Head.Color
  1057. local torscolor = tors.Color
  1058. local racolor = ra.Color
  1059. local lacolor = la.Color
  1060. local rlcolor = rl.Color
  1061. local llcolor = ll.Color
  1062.  
  1063. function grasseffect(amount, size, color, material)
  1064. local sizething = 1
  1065. coroutine.resume(coroutine.create(function()
  1066. repeat
  1067. Swait()
  1068. sizething = sizething + 1
  1069. local Grass = Instance.new("Part",Effects)
  1070. Grass.Size = Vector3.new(size, size, size)
  1071. Grass.BrickColor = BrickColor.new("Bright green")
  1072. if workspace:FindFirstChild("Base") then
  1073. Grass.BrickColor = workspace.Base.BrickColor
  1074. end
  1075. if workspace:FindFirstChild("Baseplate") then
  1076. Grass.BrickColor = workspace.Baseplate.BrickColor
  1077. end
  1078. Grass.Color = color
  1079. Grass.Material = "Grass"
  1080. Grass.CFrame = root.CFrame
  1081. Grass.Material = material
  1082. Grass.Velocity = Vector3.new(math.random(-100, 100), math.random(-100, 100), math.random(-100, 100))
  1083. Debris:AddItem(Grass, 5)
  1084. until sizething > amount - 0.1
  1085. end))
  1086. end
  1087.  
  1088. function transform()
  1089. local target = mouse.Target
  1090. fakehed.Parent = script
  1091. hed.Transparency = 1
  1092. fakehed.Name = target.Parent.Name
  1093. if target then
  1094. transformed = true
  1095. for _,v in pairs (char:children()) do
  1096. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
  1097. v.Parent = removed
  1098. end
  1099. end
  1100. for _,v in pairs (target.Parent:children()) do
  1101. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
  1102. v:Clone().Parent = char
  1103. for _,v in pairs (v:GetDescendants()) do
  1104. if v:IsA("Part") or v:IsA("MeshPart") then
  1105. v.Anchored = false
  1106. end
  1107. end
  1108. end
  1109. if v:IsA("Part") then
  1110. local matching = char:FindFirstChild(v.Name)
  1111. if matching then
  1112. matching.Color = v.Color
  1113. matching.Transparency = v.Transparency
  1114. end
  1115. if v.Name == "Head" then
  1116. local theirface = v:FindFirstChild("face")
  1117. if theirface then
  1118. if face and facedecal and theirface:IsA("Decal") then
  1119. face.Texture = theirface.Texture
  1120. hed2.face.Texture = theirface.Texture
  1121. end
  1122. end
  1123. end
  1124. end
  1125. end
  1126. for _,v in pairs (adds:children()) do
  1127. if v:IsA("Part") then
  1128. v.Parent = removed2
  1129. end
  1130. end
  1131. hed2.Color = hed.Color
  1132. hed2.Transparency = hed.Transparency
  1133. Swait()
  1134. hed.Transparency = 1
  1135. end
  1136. end
  1137.  
  1138. function untransform()
  1139. transformed = false
  1140. fakehed.Parent = nil
  1141. hed2.face.Texture = facedecal
  1142. hed.Transparency = 0
  1143. fakehed.Name = "FakeNametag"
  1144. if face and facedecal then
  1145. if face:IsA("Decal") then
  1146. face.Texture = facedecal
  1147. end
  1148. end
  1149. for _,v in pairs (removed2:children()) do
  1150. if v:IsA("Part") then
  1151. v.Parent = adds
  1152. end
  1153. end
  1154. for _,v in pairs (char:children()) do
  1155. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
  1156. v.Parent = nil
  1157. end
  1158. end
  1159. for _,v in pairs (removed:children()) do
  1160. if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("Hat") or v:IsA("ShirtGraphic") or v:IsA("Accessory") or v:IsA("CharacterMesh") then
  1161. v.Parent = char
  1162. hed.Color = hedcolor
  1163. tors.Color = torscolor
  1164. ra.Color = racolor
  1165. la.Color = lacolor
  1166. rl.Color = rlcolor
  1167. ll.Color = llcolor
  1168. end
  1169. end
  1170. hed.Color = hedcolor
  1171. tors.Color = torscolor
  1172. ra.Color = racolor
  1173. la.Color = lacolor
  1174. rl.Color = rlcolor
  1175. ll.Color = llcolor
  1176. hed2.Color = hed.Color
  1177. end
  1178.  
  1179. function shoot()
  1180. hold = true
  1181. attack = true
  1182. clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0), yeeyeejuice)
  1183. local GYRO = Instance.new("BodyGyro")
  1184. GYRO.D = 20
  1185. GYRO.P = 5000
  1186. GYRO.MaxTorque = VT(0,4000000,0)
  1187. GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1188. GYRO.Parent = root
  1189. repeat
  1190. for i = 1,4 do
  1191. Swait()
  1192. GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1193. clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0), yeeyeejuice)
  1194. clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
  1195. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), yeeyeejuice)
  1196. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), yeeyeejuice)
  1197. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), yeeyeejuice)
  1198. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90)), yeeyeejuice)
  1199. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeeyeejuice)
  1200. end
  1201. local HIT,POS = CastProperRay(AttachmentCFrame(UZI.Nuzzle).p,mouse.Hit.p,1000,char)
  1202. local DISTANCE = (POS - AttachmentCFrame(UZI.Nuzzle).p).Magnitude
  1203. if HIT then
  1204. if HIT.Parent:FindFirstChildOfClass("Humanoid") then
  1205. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = HIT.Parent:FindFirstChildOfClass("Humanoid").Health - 35
  1206. if HIT.Parent:FindFirstChildOfClass("Humanoid").Health < 1 then
  1207. Dismember(HIT.Parent)
  1208. Chatter("Get out of my sight, I've had enough of you!")
  1209. end
  1210. if HIT.Parent:FindFirstChildOfClass("Humanoid").Health == "inf" or HIT.Parent:FindFirstChildOfClass("Humanoid").Health > 5000 then
  1211. Dismember(HIT.Parent)
  1212. HIT.Parent:FindFirstChildOfClass("Humanoid").Health = 0
  1213. HIT.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 0
  1214. local HEAD = HIT.Parent:FindFirstChild("Head")
  1215. if HEAD then
  1216. HEAD.Velocity = Vector3.new(math.random(-10000, 10000),math.random(-10000, 10000),math.random(-10000, 10000))
  1217. Debris:AddItem(HEAD, 6)
  1218. local TORSO = HEAD.Parent:FindFirstChild("Torso")
  1219. if TORSO then
  1220. if TORSO:FindFirstChild("Neck") then
  1221. TORSO.Neck:Destroy()
  1222. Chatter("No, you 'godded' person.")
  1223. end
  1224. end
  1225. end
  1226. end
  1227. end
  1228. end
  1229. WACKYEFFECT({Time = 12, EffectType = "Block", Size = VT(0,0,0), Size2 = VT(0.8,0.8,0.8), Transparency = 0, Transparency2 = 1, CFrame = CF(AttachmentCFrame(UZI.Nuzzle).p), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = 1583819337, SoundPitch = 2, SoundVolume = 0.2})
  1230. WACKYEFFECT({Time = 8, EffectType = "Box", Size = VT(0,0,DISTANCE), Size2 = VT(0.1,0.1,DISTANCE), Transparency = 0, Transparency2 = 1, CFrame = CF(AttachmentCFrame(UZI.Nuzzle).p,POS)*CF(0,0,-DISTANCE/2), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
  1231. for i = 1,4 do
  1232. Swait()
  1233. GYRO.CFrame = CFrame.new(root.Position,mouse.Hit.p)
  1234. clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0), yeeyeejuice)
  1235. clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
  1236. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), yeeyeejuice)
  1237. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), yeeyeejuice)
  1238. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), yeeyeejuice)
  1239. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(0), Rad(90) + Rad(15)), yeeyeejuice)
  1240. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeeyeejuice)
  1241. end
  1242. until hold == false
  1243. GYRO:Remove()
  1244. weldo.C0 = CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), 0, 0)
  1245. attack = false
  1246. hold = false
  1247. end
  1248.  
  1249. grabbed = false
  1250. current = "none"
  1251. crouch = false
  1252. local GRUNTS = {1146556975,1146556706,1278006076}
  1253.  
  1254. remote = Instance.new("RemoteEvent",char)
  1255. remote.Name = "CrouchEvent"
  1256.  
  1257. yeett = 0.25
  1258.  
  1259. function extras(key)
  1260. if key == "ctrldown" then
  1261. crouch = true
  1262. attack = true
  1263. repeat
  1264. Swait()
  1265. clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), Rad(180), 0), yeett)
  1266. clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), yeett)
  1267. clerp(rootj, rootjnor * CFrame.new(0, 0, -1) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), yeett)
  1268. clerp(RH, RHnor * CFrame.new(0.5, 1, 0) * CFrame.Angles(0, Rad(-10), 0), yeett)
  1269. clerp(LH, LHnor * CFrame.new(0, -0.5, 0) * CFrame.Angles(0, 0, Rad(90)), yeett)
  1270. clerp(RS, RSnor * CFrame.new(-0.5, 0.5, 0.15) * CFrame.Angles(Rad(120), Rad(-20), Rad(0) + Rad(0)), yeett)
  1271. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeett)
  1272. until crouch == false
  1273. attack = false
  1274. crouch = false
  1275. end
  1276. if key == "ctrlup" then
  1277. crouch = false
  1278. attack = false
  1279. end
  1280. end
  1281.  
  1282. function grabplr()
  1283. grabbed = false
  1284. current = "cangrab"
  1285. attack = true
  1286. local grabh = ra.Touched:connect(function(hit)
  1287. if hit.Parent:FindFirstChild("Torso") and hit.Parent ~= char and current == "cangrab" then
  1288. root.Anchored = true
  1289. grabbed = true
  1290. current = "none"
  1291. local weld = ezweld(char, hit.Parent.Torso, ra, CFrame.new(0, ra.Size, 0))
  1292. weld.Name = "BACKSNAPWELD"
  1293. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  1294. if human then
  1295. human.PlatformStand = true
  1296. end
  1297. for i = 1,4 do
  1298. Swait()
  1299. clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
  1300. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, Rad(18), Rad(0 + 1 * Cos(sine / 17))), yeeyeejuice)
  1301. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), yeeyeejuice)
  1302. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), yeeyeejuice)
  1303. clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(0), Rad(-18), Rad(90)), yeeyeejuice)
  1304. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), yeeyeejuice)
  1305. end
  1306. elseif hit.Parent:FindFirstChild("UpperTorso") and hit.Parent ~= char and current == "cangrab" then
  1307. root.Anchored = true
  1308. grabbed = true
  1309. current = "none"
  1310. local weld = ezweld(char, hit.Parent.UpperTorso, ra, CFrame.new(0, ra.Size / 2.25, 0))
  1311. weld.Name = "BACKSNAPWELD"
  1312. local human = hit.Parent:FindFirstChildOfClass("Humanoid")
  1313. if human then
  1314. human.PlatformStand = true
  1315. end
  1316. end
  1317. end)
  1318. end
  1319.  
  1320. function backsnap()
  1321. attack = true
  1322. repeat Swait() until grabbed == true
  1323. current = "none"
  1324. Chatter("Hah!")
  1325. NewSound({ID = GRUNTS[MRANDOM(1,#GRUNTS)],PARENT = hed,VOLUME = 2,PITCH = MRANDOM(9,11)/10,LOOP = false,MAXDISTANCE = 225,EMITTERSIZE = 15,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
  1326. local spin = 0
  1327. for i = 1,75 do
  1328. Swait()
  1329. spin = spin + 8
  1330. if attack == true and char:FindFirstChild("BACKSNAPWELD") then
  1331. root.CFrame = root.CFrame*CF(0,(37.5-i)/37.5,i/135)
  1332. clerp2(rootj, rootjnor * CFrame.Angles(Rad(i*80), 0, 0), 0.15)
  1333. end
  1334. end
  1335. local HITFLOOR,POS = Raycast(root.Position, (CF(root.Position, root.Position + VT(0, -1, 0))).lookVector, 5+hum.HipHeight, char)
  1336. if HITFLOOR then
  1337. root.CFrame = root.CFrame*CF(0,1.5,0)
  1338. local BACKWELD = char:FindFirstChild("BACKSNAPWELD")
  1339. if BACKWELD then
  1340. BACKWELD:Destroy()
  1341. local dude = BACKWELD.Part0.Parent
  1342. if dude:IsA("Model") and dude then
  1343. local human = dude:FindFirstChildOfClass("Humanoid")
  1344. if human then
  1345. human.Health = human.Health - 55
  1346. human.PlatformStand = false
  1347. end
  1348. end
  1349. end
  1350. grasseffect(5, 4, HITFLOOR.Color, HITFLOOR.Material)
  1351. WACKYEFFECT({EffectType = "Wave", Size = VT(10,1,10), Size2 = VT(8,25,8), Transparency = 0.7, Transparency2 = 1, CFrame = CF(POS)*ANGLES(0,RAD(MRANDOM(0,359)),0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = 765590102, SoundPitch = MRANDOM(8,12)/10, SoundVolume = 3, UseBoomerangMath = true, Boomerang = 0, SizeBoomerang = 50})
  1352. grabbed = false
  1353. root.Anchored = false
  1354. attack = false
  1355. end
  1356. end
  1357.  
  1358. mouse.KeyDown:connect(function(key)
  1359. key = key:lower()
  1360. if key == "u" and attack == false then
  1361. if transformed == true then
  1362. untransform()
  1363. elseif transformed == false then
  1364. transform()
  1365. end
  1366. end
  1367. if key == "b" and attack == false and grabbed == false and current == "none" then
  1368. grabplr()
  1369. end
  1370. if key == "c" and attack == true and grabbed == true then
  1371. backsnap()
  1372. end
  1373. end)
  1374.  
  1375. mouse.Button1Down:connect(function()
  1376. if attack == false then
  1377. shoot()
  1378. end
  1379. end)
  1380.  
  1381. mouse.Button1Up:connect(function()
  1382. hold = false
  1383. end)
  1384.  
  1385. local ANIM_SPEED = 3
  1386. local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
  1387. local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
  1388. local BGM = 1512630746
  1389. local M = NewSound({ID = BGM,PARENT = root,VOLUME = 1.5,PITCH = 1,LOOP = true,MAXDISTANCE = 300,EMITTERSIZE = 300,PLAYING = true,PLAYONREMOVE = false,DOESDEBRIS = true})
  1390. M.Name = "BGM_MUSIC"
  1391.  
  1392. local ExtraKeys = NLS([[
  1393.  
  1394. plr = owner
  1395. char = plr.Character
  1396. remote = char.CrouchEvent
  1397. mouse = plr:GetMouse()
  1398. isxray = false
  1399.  
  1400. function coolxray(thing)
  1401. isxray = true
  1402. local D = thing:GetDescendants()
  1403. for i = 1,#D do
  1404. ee = D[i]
  1405. if ee:IsA("Part") and ee.Shape ~= "Ball" or ee:IsA("MeshPart") then
  1406. ee.Transparency = 1
  1407. box = Instance.new("SelectionBox",ee)
  1408. box.Adornee = ee
  1409. box.Color3 = ee.Color
  1410. box.Visible = true
  1411. box.SurfaceTransparency = 1
  1412. elseif ee:IsA("Decal") or ee:IsA("Texture") then
  1413. ee.Transparency = 1
  1414. end
  1415. end
  1416. end
  1417.  
  1418. function unxray(thing)
  1419. isxray = false
  1420. local D = thing:GetDescendants()
  1421. for i = 1,#D do
  1422. ee = D[i]
  1423. if ee:IsA("SelectionBox") then
  1424. ee:Destroy()
  1425. elseif ee:IsA("Part") and ee.Name ~= "HumanoidRootPart" or ee:IsA("MeshPart") and ee.Name ~= "HumanoidRootPart" then
  1426. ee.Transparency = 0
  1427. elseif ee:IsA("Decal") or ee:IsA("Texture") then
  1428. ee.Transparency = 0
  1429. end
  1430. end
  1431. end
  1432.  
  1433. mouse.KeyDown:connect(function(key)
  1434. if key == "x" then
  1435. if isxray then
  1436. unxray(workspace)
  1437. else
  1438. coolxray(workspace)
  1439. end
  1440. end
  1441. if string.byte(key) == 50 then
  1442. remote:FireServer("ctrldown")
  1443. end
  1444. end)
  1445.  
  1446. mouse.KeyUp:connect(function(key)
  1447. if string.byte(key) == 50 then
  1448. remote:FireServer("ctrlup")
  1449. end
  1450. end)
  1451.  
  1452. ]],char)
  1453.  
  1454. remote.OnServerEvent:Connect(function(PlayerSendit,Button) extras(Button) end)
  1455.  
  1456. while true do
  1457. Swait()
  1458. sine = sine + 1
  1459. local TORSOVELOCITY = (root.Velocity * VT(1, 0, 1)).magnitude
  1460. local WALKSPEEDVALUE = 6 / (hum.WalkSpeed / 16)
  1461. if TORSOVELOCITY < 1 then
  1462. anim = "Idle"
  1463. if attack == false then
  1464. clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), Rad(180), 0), 0.15)
  1465. clerp(neck, necknor * CFrame.Angles(0 + 0.05 * Cos(sine / 17), 0, 0), 0.15)
  1466. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 17)) * CFrame.Angles(0, 0, Rad(0 + 1 * Cos(sine / 17))), 0.15)
  1467. clerp(RH, RHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(-10), 0), 0.15)
  1468. clerp(LH, LHnor * CFrame.new(0, 0 - 0.1 * Cos(sine / 17), 0) * CFrame.Angles(0, Rad(10), 0), 0.15)
  1469. clerp(RS, RSnor * CFrame.new(-0.5, 0.5, 0.15) * CFrame.Angles(Rad(120), Rad(-20), Rad(0) + Rad(0)), 0.15)
  1470. clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(Rad(-6 - 4 * Cos(sine / 17)), Rad(0), 0), 0.15)
  1471. end
  1472. clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1473. clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.15)
  1474. else
  1475. anim = "Walk"
  1476. if attack == false then
  1477. clerp(weldo, CFrame.new(0, -0.25, 1.15) * CFrame.Angles(Rad(90), Rad(180), 0), 0.15)
  1478. clerp(neck, necknor, 0.15)
  1479. clerp(rootj, rootjnor * CFrame.new(0, 0, 0 + 0.1 * Cos(sine / 4)) * CFrame.Angles(0, 0, 0), 0.15)
  1480. clerp(RH, RHnor * CFrame.new(0.25, 0 - 0.1 * Cos(sine / 4), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  1481. clerp(LH, LHnor * CFrame.new(-0.25, 0 - 0.1 * Cos(sine / 4), 0) * CFrame.Angles(0, Rad(0), 0), 0.15)
  1482. --clerp(RS, RSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
  1483. --clerp(LS, LSnor * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0 - 1.5 * Cos(sine / 8)), 0.15)
  1484. clerp(RS, RSnor * CFrame.new(-0.5, 0.5, 0.15) * CFrame.Angles(Rad(120), Rad(-20), Rad(0) + Rad(0)), 0.15)
  1485. clerp(LS, LSnor * CFrame.new(0, 0.01, 0) * CFrame.Angles(0, 0, 0.925 * Cos(sine / 8)), 0.15)
  1486. end
  1487. clerp3(RH, RHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.4 + 0.875 * Cos(sine / 8)), 0.15)
  1488. clerp3(LH, LHnor2 * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -0.4 + 0.875 * Cos(sine / 8)), 0.15)
  1489. --clerp3(LS, LSnor2 * CFrame.Angles(0, 0, 0 - 1 * Cos(sine / 8)), 0.15)
  1490. end
  1491. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement