Advertisement
oatmeal2009

Untitled

Apr 1st, 2022
17
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 27.78 KB | None | 0 0
  1.  
  2.  
  3. for i,v in next, game:GetService("Players").LocalPlayer.Character:GetDescendants() do
  4. if v:IsA("BasePart") and v.Name ~="HumanoidRootPart" then
  5. game:GetService("RunService").Heartbeat:connect(function()
  6. v.Velocity = Vector3.new(0,-30,0)
  7. wait(0.5)
  8. end)
  9. end
  10. end
  11.  
  12. function rmesh(HatName)
  13. for _,mesh in next, workspace[game.Players.LocalPlayer.Name][HatName]:GetDescendants() do
  14. if mesh:IsA("Mesh") or mesh:IsA("SpecialMesh") then
  15. mesh:Remove()
  16. end
  17. end
  18. end
  19.  
  20. function create(part, parent, position, rotation)
  21. part.AccessoryWeld:Remove()
  22. Instance.new("Attachment",part)
  23. Instance.new("AlignPosition",part)
  24. Instance.new("AlignOrientation",part)
  25. Instance.new("Attachment",parent)
  26. part.AlignPosition.Attachment0 = part.Attachment
  27. part.AlignOrientation.Attachment0 = part.Attachment
  28. part.AlignPosition.Attachment1 = parent.Attachment
  29. part.AlignOrientation.Attachment1 = parent.Attachment
  30. part.Attachment.Position = position
  31. part.Attachment.Orientation = rotation
  32. part.AlignPosition.Responsiveness = 200
  33. part.AlignOrientation.Responsiveness = 200
  34. part.AlignPosition.MaxForce = 9999999
  35. part.AlignPosition.RigidityEnabled = false
  36. part.AlignOrientation.MaxTorque = 9999999
  37. end
  38.  
  39. local LocalPlayer = game.Players.LocalPlayer
  40.  
  41. function eswait(num)
  42. if num == 0 or num == nil then
  43. game:service("RunService").Stepped:wait(0)
  44. else
  45. for i = 0, num do
  46. game:service("RunService").Stepped:wait(0)
  47. end
  48. end
  49. end
  50.  
  51. function makepart(hat,part)
  52. Instance.new('Part',workspace[LocalPlayer.Name])
  53. workspace[LocalPlayer.Name].Part.Name = 'lerp'..hat
  54. workspace[LocalPlayer.Name]['lerp'..hat].CanCollide = false
  55. workspace[LocalPlayer.Name]['lerp'..hat].Size = workspace[LocalPlayer.Name][hat].Handle.Size
  56. workspace[LocalPlayer.Name]['lerp'..hat].Transparency = 1
  57. Instance.new('Weld',workspace[LocalPlayer.Name]['lerp'..hat])
  58. create(workspace[LocalPlayer.Name][hat].Handle,workspace[LocalPlayer.Name]['lerp'..hat],Vector3.new(),Vector3.new())
  59. workspace[LocalPlayer.Name]['lerp'..hat].Weld.Part0 = workspace[LocalPlayer.Name]['lerp'..hat]
  60. workspace[LocalPlayer.Name]['lerp'..hat].Weld.Part1 = workspace[LocalPlayer.Name][part]
  61. workspace[LocalPlayer.Name]['lerp'..hat].Weld.C0 = workspace[LocalPlayer.Name]['lerp'..hat].CFrame:inverse() * workspace[LocalPlayer.Name][part].CFrame * CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),0)
  62. end
  63.  
  64. local hatsine = 0
  65.  
  66. local hatchange = 1
  67.  
  68. function clerp(hat,ppx,ppy,pppz,rrrx,rrry,rrz,lppx,lppy,lpppz,lrrrx,lrrry,lrrz,speed)
  69. coroutine.wrap(function()
  70. while true do
  71. hatsine = hatsine + speed
  72. workspace[game.Players.LocalPlayer.Name]['lerp'..hat].Weld.C0 = workspace[game.Players.LocalPlayer.Name]['lerp'..hat].Weld.C0:lerp(CFrame.new(ppx + lppx * math.sin(hatsine/11), ppy + lppy * math.sin(hatsine/11), pppz + lpppz * math.sin(hatsine/11)) * CFrame.Angles(math.rad(rrrx + lrrrx * math.sin(hatsine/11)), math.rad(rrry + lrrry * math.sin(hatsine/11)), math.rad(rrz + lrrz * math.sin(hatsine/11))),0.1)
  73. eswait()
  74. end
  75. end)()
  76. end
  77.  
  78. local player = game.Players.LocalPlayer
  79. local character1 = player.Character
  80. local mouse = player:GetMouse()
  81.  
  82. local fakebody = Instance.new("Part", character1)
  83. fakebody.Transparency = 1
  84. fakebody.Anchored = true
  85. fakebody.CanCollide = false
  86. fakebody.Position = character1.Head.Position
  87. fakebody.Name = "FPart"
  88. wait()
  89. _G.ReanimationType = "PDeath" --PDeath, Fling, Simple
  90. _G.Velocity = Vector3.new(36,0,0)
  91. _G.FlingBlock = true
  92. _G.FlingBlockTransparency = 1
  93. _G.HighlightFlingBlock = true
  94. _G.FlingBlockPosition = "FPart"
  95. _G.HighlightFlingBlockColor = Color3.fromRGB(255,0,0)
  96.  
  97. loadstring(game:HttpGet("https://raw.githubusercontent.com/GelatekWasTaken/Reanimation.lua/main/Main/Main.lua"))()
  98. wait(1)
  99.  
  100. mouse.KeyDown:connect(function(key)
  101. if key == "e" then
  102. character1.Reanimate.FPart.Position = mouse.Hit.p
  103. end
  104. end)
  105.  
  106. rmesh('Pink Hair')
  107. rmesh('Kate Hair')
  108.  
  109. makepart('Kate Hair','Right Arm')
  110. clerp('Kate Hair',0,1,0,0,0,0,0,0,0,0,0,0,1)
  111.  
  112. makepart('Pink Hair','Right Arm')
  113. clerp('Pink Hair',0,0.5,-2,-90,0,0,0,0,0,0,0,0,1)
  114.  
  115. local Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
  116. local Speed = 20*Scale
  117. local Gravity = 0.1
  118.  
  119. local Player = game.Players.LocalPlayer
  120. local Character = Player.Character.Reanimate
  121. local Humanoid = Character.Humanoid
  122. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  123. local Torso = Character.HumanoidRootPart
  124. local Mouse = game.Players.LocalPlayer:GetMouse()
  125. local RenderStepped = game:GetService("RunService").RenderStepped
  126. local Camera = Workspace.CurrentCamera
  127. Camera:ClearAllChildren()
  128. local Model = Instance.new("Model",Character)
  129. local IgnoreList = {Character,Workspace.Terrain}
  130.  
  131. local Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  132. local Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  133. local RotationOffset = CFrame.Angles(math.rad(90),math.rad(0),0)
  134. local Gangster = false
  135.  
  136. local Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  137. local Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  138. local RotationOffsetHead = CFrame.Angles(0,0,0)
  139.  
  140. local Handle = Instance.new("Part",Model)
  141. Handle.CanCollide = false
  142. Handle.Name = "Handle"
  143. Handle.Position = Vector3.new(0,100,0)
  144. Handle:BreakJoints()
  145. Handle.FormFactor = "Custom"
  146. Handle.Size = Vector3.new(0.2,0.2,0.2)
  147. Handle.TopSurface = "SmoothNoOutlines"
  148. Handle.BottomSurface = "SmoothNoOutlines"
  149. Handle.FrontSurface = "SmoothNoOutlines"
  150. Handle.BackSurface = "SmoothNoOutlines"
  151. Handle.RightSurface = "SmoothNoOutlines"
  152. Handle.LeftSurface = "SmoothNoOutlines"
  153. Handle.BrickColor = BrickColor.new("Black")
  154. local Mesh = Instance.new("BlockMesh",Handle)
  155. Mesh.Scale = Vector3.new(0.25,1,0.4) / 0.2 * Scale
  156. local HandleWeld = Instance.new("Motor6D")
  157. HandleWeld.Part0 = Character["Right Arm"]
  158. HandleWeld.Part1 = Handle
  159. HandleWeld.C0 = CFrame.new(Vector3.new(0,-1,0)*Scale) * CFrame.Angles(math.rad(-105),0,0)
  160. HandleWeld.Parent = Handle
  161.  
  162. local Part = Instance.new("Part",Model)
  163. Part.CanCollide = false
  164. Part.Position = Vector3.new(0,100,0)
  165. Part:BreakJoints()
  166. Part.FormFactor = "Custom"
  167. Part.Size = Vector3.new(0.2,0.2,0.2)
  168. Part.TopSurface = "SmoothNoOutlines"
  169. Part.BottomSurface = "SmoothNoOutlines"
  170. Part.FrontSurface = "SmoothNoOutlines"
  171. Part.BackSurface = "SmoothNoOutlines"
  172. Part.RightSurface = "SmoothNoOutlines"
  173. Part.LeftSurface = "SmoothNoOutlines"
  174. Part.BrickColor = BrickColor.new("Black")
  175. local Mesh = Instance.new("CylinderMesh",Part)
  176. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  177. local PartWeld = Instance.new("Motor6D")
  178. PartWeld.Part0 = Handle
  179. PartWeld.Part1 = Part
  180. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  181. PartWeld.Parent = Part
  182.  
  183. local Part = Instance.new("Part",Model)
  184. Part.CanCollide = false
  185. Part.Position = Vector3.new(0,100,0)
  186. Part:BreakJoints()
  187. Part.FormFactor = "Custom"
  188. Part.Size = Vector3.new(0.2,0.2,0.2)
  189. Part.TopSurface = "SmoothNoOutlines"
  190. Part.BottomSurface = "SmoothNoOutlines"
  191. Part.FrontSurface = "SmoothNoOutlines"
  192. Part.BackSurface = "SmoothNoOutlines"
  193. Part.RightSurface = "SmoothNoOutlines"
  194. Part.LeftSurface = "SmoothNoOutlines"
  195. Part.BrickColor = BrickColor.new("Black")
  196. local Mesh = Instance.new("CylinderMesh",Part)
  197. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  198. local PartWeld = Instance.new("Motor6D")
  199. PartWeld.Part0 = Handle
  200. PartWeld.Part1 = Part
  201. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  202. PartWeld.Parent = Part
  203.  
  204. local Part = Instance.new("Part",Model)
  205. Part.CanCollide = false
  206. Part.Position = Vector3.new(0,100,0)
  207. Part:BreakJoints()
  208. Part.FormFactor = "Custom"
  209. Part.Size = Vector3.new(0.2,0.2,0.2)
  210. Part.TopSurface = "SmoothNoOutlines"
  211. Part.BottomSurface = "SmoothNoOutlines"
  212. Part.FrontSurface = "SmoothNoOutlines"
  213. Part.BackSurface = "SmoothNoOutlines"
  214. Part.RightSurface = "SmoothNoOutlines"
  215. Part.LeftSurface = "SmoothNoOutlines"
  216. Part.BrickColor = BrickColor.new("Black")
  217. local Mesh = Instance.new("CylinderMesh",Part)
  218. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  219. local PartWeld = Instance.new("Motor6D")
  220. PartWeld.Part0 = Handle
  221. PartWeld.Part1 = Part
  222. PartWeld.C0 = CFrame.new(Vector3.new(-0.115,-0.475,0.190)*Scale) * CFrame.Angles(0,0,0)
  223. PartWeld.Parent = Part
  224.  
  225. local Part = Instance.new("Part",Model)
  226. Part.CanCollide = false
  227. Part.Position = Vector3.new(0,100,0)
  228. Part:BreakJoints()
  229. Part.FormFactor = "Custom"
  230. Part.Size = Vector3.new(0.2,0.2,0.2)
  231. Part.TopSurface = "SmoothNoOutlines"
  232. Part.BottomSurface = "SmoothNoOutlines"
  233. Part.FrontSurface = "SmoothNoOutlines"
  234. Part.BackSurface = "SmoothNoOutlines"
  235. Part.RightSurface = "SmoothNoOutlines"
  236. Part.LeftSurface = "SmoothNoOutlines"
  237. Part.BrickColor = BrickColor.new("Black")
  238. local Mesh = Instance.new("CylinderMesh",Part)
  239. Mesh.Scale = Vector3.new(0.07,0.2,0.07) / 0.2 * Scale
  240. local PartWeld = Instance.new("Motor6D")
  241. PartWeld.Part0 = Handle
  242. PartWeld.Part1 = Part
  243. PartWeld.C0 = CFrame.new(Vector3.new(0.115,-0.475,-0.190)*Scale) * CFrame.Angles(0,0,0)
  244. PartWeld.Parent = Part
  245.  
  246. local Part = Instance.new("Part",Model)
  247. Part.CanCollide = false
  248. Part.Position = Vector3.new(0,100,0)
  249. Part:BreakJoints()
  250. Part.FormFactor = "Custom"
  251. Part.Size = Vector3.new(0.2,0.2,0.2)
  252. Part.TopSurface = "SmoothNoOutlines"
  253. Part.BottomSurface = "SmoothNoOutlines"
  254. Part.FrontSurface = "SmoothNoOutlines"
  255. Part.BackSurface = "SmoothNoOutlines"
  256. Part.RightSurface = "SmoothNoOutlines"
  257. Part.LeftSurface = "SmoothNoOutlines"
  258. Part.BrickColor = BrickColor.new("Black")
  259. local Mesh = Instance.new("BlockMesh",Part)
  260. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  261. local PartWeld = Instance.new("Motor6D")
  262. PartWeld.Part0 = Handle
  263. PartWeld.Part1 = Part
  264. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,-0.175)*Scale) * CFrame.Angles(0,0,0)
  265. PartWeld.Parent = Part
  266.  
  267. local Part = Instance.new("Part",Model)
  268. Part.CanCollide = false
  269. Part.Position = Vector3.new(0,100,0)
  270. Part:BreakJoints()
  271. Part.FormFactor = "Custom"
  272. Part.Size = Vector3.new(0.2,0.2,0.2)
  273. Part.TopSurface = "SmoothNoOutlines"
  274. Part.BottomSurface = "SmoothNoOutlines"
  275. Part.FrontSurface = "SmoothNoOutlines"
  276. Part.BackSurface = "SmoothNoOutlines"
  277. Part.RightSurface = "SmoothNoOutlines"
  278. Part.LeftSurface = "SmoothNoOutlines"
  279. Part.BrickColor = BrickColor.new("Black")
  280. local Mesh = Instance.new("BlockMesh",Part)
  281. Mesh.Scale = Vector3.new(0.23,0.2,0.1) / 0.2 * Scale
  282. local PartWeld = Instance.new("Motor6D")
  283. PartWeld.Part0 = Handle
  284. PartWeld.Part1 = Part
  285. PartWeld.C0 = CFrame.new(Vector3.new(0,-0.475,0.175)*Scale) * CFrame.Angles(0,0,0)
  286. PartWeld.Parent = Part
  287.  
  288. local Part = Instance.new("Part",Model)
  289. Part.CanCollide = false
  290. Part.Position = Vector3.new(0,100,0)
  291. Part:BreakJoints()
  292. Part.FormFactor = "Custom"
  293. Part.Size = Vector3.new(0.2,0.2,0.2)
  294. Part.TopSurface = "SmoothNoOutlines"
  295. Part.BottomSurface = "SmoothNoOutlines"
  296. Part.FrontSurface = "SmoothNoOutlines"
  297. Part.BackSurface = "SmoothNoOutlines"
  298. Part.RightSurface = "SmoothNoOutlines"
  299. Part.LeftSurface = "SmoothNoOutlines"
  300. Part.BrickColor = BrickColor.new("Black")
  301. local Mesh = Instance.new("BlockMesh",Part)
  302. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  303. local PartWeld = Instance.new("Motor6D")
  304. PartWeld.Part0 = Handle
  305. PartWeld.Part1 = Part
  306. PartWeld.C0 = CFrame.new(Vector3.new(-0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  307. PartWeld.Parent = Part
  308.  
  309. local Part = Instance.new("Part",Model)
  310. Part.CanCollide = false
  311. Part.Position = Vector3.new(0,100,0)
  312. Part:BreakJoints()
  313. Part.FormFactor = "Custom"
  314. Part.Size = Vector3.new(0.2,0.2,0.2)
  315. Part.TopSurface = "SmoothNoOutlines"
  316. Part.BottomSurface = "SmoothNoOutlines"
  317. Part.FrontSurface = "SmoothNoOutlines"
  318. Part.BackSurface = "SmoothNoOutlines"
  319. Part.RightSurface = "SmoothNoOutlines"
  320. Part.LeftSurface = "SmoothNoOutlines"
  321. Part.BrickColor = BrickColor.new("Black")
  322. local Mesh = Instance.new("BlockMesh",Part)
  323. Mesh.Scale = Vector3.new(0.1,0.2,0.38) / 0.2 * Scale
  324. local PartWeld = Instance.new("Motor6D")
  325. PartWeld.Part0 = Handle
  326. PartWeld.Part1 = Part
  327. PartWeld.C0 = CFrame.new(Vector3.new(0.1,-0.475,0)*Scale) * CFrame.Angles(0,0,0)
  328. PartWeld.Parent = Part
  329.  
  330. local Part = Instance.new("Part",Model)
  331. Part.CanCollide = false
  332. Part.Position = Vector3.new(0,100,0)
  333. Part:BreakJoints()
  334. Part.FormFactor = "Custom"
  335. Part.Size = Vector3.new(0.2,0.2,0.2)
  336. Part.TopSurface = "SmoothNoOutlines"
  337. Part.BottomSurface = "SmoothNoOutlines"
  338. Part.FrontSurface = "SmoothNoOutlines"
  339. Part.BackSurface = "SmoothNoOutlines"
  340. Part.RightSurface = "SmoothNoOutlines"
  341. Part.LeftSurface = "SmoothNoOutlines"
  342. Part.BrickColor = BrickColor.new("Black")
  343. local Mesh = Instance.new("BlockMesh",Part)
  344. Mesh.Scale = Vector3.new(0.1,0.3,0.05) / 0.2 * Scale
  345. local PartWeld = Instance.new("Motor6D")
  346. PartWeld.Part0 = Handle
  347. PartWeld.Part1 = Part
  348. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.25,-0.75)*Scale) * CFrame.Angles(math.rad(-10),0,0)
  349. PartWeld.Parent = Part
  350.  
  351. local Part = Instance.new("Part",Model)
  352. Part.CanCollide = false
  353. Part.Position = Vector3.new(0,100,0)
  354. Part:BreakJoints()
  355. Part.FormFactor = "Custom"
  356. Part.Size = Vector3.new(0.2,0.2,0.2)
  357. Part.TopSurface = "SmoothNoOutlines"
  358. Part.BottomSurface = "SmoothNoOutlines"
  359. Part.FrontSurface = "SmoothNoOutlines"
  360. Part.BackSurface = "SmoothNoOutlines"
  361. Part.RightSurface = "SmoothNoOutlines"
  362. Part.LeftSurface = "SmoothNoOutlines"
  363. Part.BrickColor = BrickColor.new("Black")
  364. local Mesh = Instance.new("BlockMesh",Part)
  365. Mesh.Scale = Vector3.new(0.1,0.05,0.625) / 0.2 * Scale
  366. local PartWeld = Instance.new("Motor6D")
  367. PartWeld.Part0 = Handle
  368. PartWeld.Part1 = Part
  369. PartWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.1,-0.435)*Scale)
  370. PartWeld.Parent = Part
  371.  
  372. for i = 0,80,10 do
  373. local Part = Instance.new("Part",Model)
  374. Part.CanCollide = false
  375. Part.Position = Vector3.new(0,100,0)
  376. Part:BreakJoints()
  377. Part.FormFactor = "Custom"
  378. Part.Size = Vector3.new(0.2,0.2,0.2)
  379. Part.TopSurface = "SmoothNoOutlines"
  380. Part.BottomSurface = "SmoothNoOutlines"
  381. Part.FrontSurface = "SmoothNoOutlines"
  382. Part.BackSurface = "SmoothNoOutlines"
  383. Part.RightSurface = "SmoothNoOutlines"
  384. Part.LeftSurface = "SmoothNoOutlines"
  385. Part.BrickColor = BrickColor.new("Black")
  386. local Mesh = Instance.new("BlockMesh",Part)
  387. Mesh.Scale = Vector3.new(0.25,0.15,0.03555*2) / 0.2 * Scale
  388. local PartWeld = Instance.new("Motor6D")
  389. PartWeld.Part0 = Handle
  390. PartWeld.Part1 = Part
  391. PartWeld.C0 = CFrame.new(Vector3.new(0,0.15,0.315)*Scale) * CFrame.Angles(math.rad(i-65),0,0) * CFrame.new(Vector3.new(0,0.2,0)*Scale)
  392. PartWeld.Parent = Part
  393. end
  394.  
  395. local Barrel = Instance.new("Part",Model)
  396. Barrel.CanCollide = false
  397. Barrel.Position = Vector3.new(0,100,0)
  398. Barrel:BreakJoints()
  399. Barrel.FormFactor = "Custom"
  400. Barrel.Size = Vector3.new(0.2,0.2,0.2)
  401. Barrel.TopSurface = "SmoothNoOutlines"
  402. Barrel.BottomSurface = "SmoothNoOutlines"
  403. Barrel.FrontSurface = "SmoothNoOutlines"
  404. Barrel.BackSurface = "SmoothNoOutlines"
  405. Barrel.RightSurface = "SmoothNoOutlines"
  406. Barrel.LeftSurface = "SmoothNoOutlines"
  407. Barrel.BrickColor = BrickColor.new("Black")
  408. local Mesh = Instance.new("BlockMesh",Barrel)
  409. Mesh.Scale = Vector3.new(0.25,0.2,2) / 0.2 * Scale
  410. local BarrelWeld = Instance.new("Motor6D")
  411. BarrelWeld.Part0 = Handle
  412. BarrelWeld.Part1 = Barrel
  413. BarrelWeld.C0 = CFrame.Angles(math.rad(15),0,0) * CFrame.new(Vector3.new(0,0.5,-0.7)*Scale)
  414. BarrelWeld.Parent = Barrel
  415.  
  416. local Barrel1 = Barrel
  417.  
  418. local Barrel2 = Instance.new("Part",Model)
  419. Barrel2.CanCollide = false
  420. Barrel2.Position = Vector3.new(0,100,0)
  421. Barrel2:BreakJoints()
  422. Barrel2.FormFactor = "Custom"
  423. Barrel2.Size = Vector3.new(0.2,0.2,0.2)
  424. Barrel2.TopSurface = "SmoothNoOutlines"
  425. Barrel2.BottomSurface = "SmoothNoOutlines"
  426. Barrel2.FrontSurface = "SmoothNoOutlines"
  427. Barrel2.BackSurface = "SmoothNoOutlines"
  428. Barrel2.RightSurface = "SmoothNoOutlines"
  429. Barrel2.LeftSurface = "SmoothNoOutlines"
  430. Barrel2.BrickColor = BrickColor.new("Really black")
  431. local Mesh = Instance.new("BlockMesh",Barrel2)
  432. Mesh.Scale = Vector3.new(0.25,0.25,2) / 0.2 * Scale
  433. local Barrel2Weld = Instance.new("Motor6D")
  434. Barrel2Weld.Part0 = Barrel
  435. Barrel2Weld.Part1 = Barrel2
  436. Barrel2Weld.C0 = CFrame.new(Vector3.new(0,0.225,0)*Scale)
  437. Barrel2Weld.Parent = Barrel2
  438.  
  439. local RealBarrel = Instance.new("Part",Model)
  440. RealBarrel.CanCollide = false
  441. RealBarrel.Position = Vector3.new(0,100,0)
  442. RealBarrel:BreakJoints()
  443. RealBarrel.FormFactor = "Custom"
  444. RealBarrel.Size = Vector3.new(0.2,0.2,0.2)
  445. RealBarrel.TopSurface = "SmoothNoOutlines"
  446. RealBarrel.BottomSurface = "SmoothNoOutlines"
  447. RealBarrel.FrontSurface = "SmoothNoOutlines"
  448. RealBarrel.BackSurface = "SmoothNoOutlines"
  449. RealBarrel.RightSurface = "SmoothNoOutlines"
  450. RealBarrel.LeftSurface = "SmoothNoOutlines"
  451. RealBarrel.BrickColor = BrickColor.new("Dark grey metallic")
  452. local Mesh = Instance.new("CylinderMesh",RealBarrel)
  453. Mesh.Scale = Vector3.new(0.2,2,0.2) / 0.2 * Scale
  454. local RealBarrelWeld = Instance.new("Motor6D")
  455. RealBarrelWeld.Part0 = Barrel
  456. RealBarrelWeld.Part1 = RealBarrel
  457. RealBarrelWeld.C0 = CFrame.new(Vector3.new(0,0.1,-0.01)*Scale) * CFrame.Angles(math.rad(-90),0,0)
  458. RealBarrelWeld.Parent = RealBarrel
  459.  
  460. for i = 1,75,15 do
  461. local Part = Instance.new("Part",Model)
  462. Part.CanCollide = false
  463. Part.Position = Vector3.new(0,100,0)
  464. Part:BreakJoints()
  465. Part.FormFactor = "Custom"
  466. Part.Size = Vector3.new(0.2,0.2,0.2)
  467. Part.TopSurface = "SmoothNoOutlines"
  468. Part.BottomSurface = "SmoothNoOutlines"
  469. Part.FrontSurface = "SmoothNoOutlines"
  470. Part.BackSurface = "SmoothNoOutlines"
  471. Part.RightSurface = "SmoothNoOutlines"
  472. Part.LeftSurface = "SmoothNoOutlines"
  473. Part.BrickColor = BrickColor.new("Black")
  474. local Mesh = Instance.new("BlockMesh",Part)
  475. Mesh.Scale = Vector3.new(0.05,0.065,0.05) / 0.2 * Scale
  476. local PartWeld = Instance.new("Motor6D")
  477. PartWeld.Part0 = Handle
  478. PartWeld.Part1 = Part
  479. PartWeld.C0 = CFrame.new(Vector3.new(0,0.525,-0.515)*Scale) * CFrame.Angles(math.rad(i),0,0) * CFrame.new(Vector3.new(0,0,0.2)*Scale)
  480. PartWeld.Parent = Part
  481. end
  482.  
  483. local Part = Instance.new("Part",Model)
  484. Part.CanCollide = false
  485. Part.Position = Vector3.new(0,100,0)
  486. Part:BreakJoints()
  487. Part.FormFactor = "Custom"
  488. Part.Size = Vector3.new(0.2,0.2,0.2)
  489. Part.TopSurface = "SmoothNoOutlines"
  490. Part.BottomSurface = "SmoothNoOutlines"
  491. Part.FrontSurface = "SmoothNoOutlines"
  492. Part.BackSurface = "SmoothNoOutlines"
  493. Part.RightSurface = "SmoothNoOutlines"
  494. Part.LeftSurface = "SmoothNoOutlines"
  495. Part.BrickColor = BrickColor.new("Really black")
  496. local Mesh = Instance.new("BlockMesh",Part)
  497. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  498. local PartWeld = Instance.new("Motor6D")
  499. PartWeld.Part0 = Barrel2
  500. PartWeld.Part1 = Part
  501. PartWeld.C0 = CFrame.new(Vector3.new(0.06,0.135,0.925)*Scale)
  502. PartWeld.Parent = Part
  503.  
  504. local Part = Instance.new("Part",Model)
  505. Part.CanCollide = false
  506. Part.Position = Vector3.new(0,100,0)
  507. Part:BreakJoints()
  508. Part.FormFactor = "Custom"
  509. Part.Size = Vector3.new(0.2,0.2,0.2)
  510. Part.TopSurface = "SmoothNoOutlines"
  511. Part.BottomSurface = "SmoothNoOutlines"
  512. Part.FrontSurface = "SmoothNoOutlines"
  513. Part.BackSurface = "SmoothNoOutlines"
  514. Part.RightSurface = "SmoothNoOutlines"
  515. Part.LeftSurface = "SmoothNoOutlines"
  516. Part.BrickColor = BrickColor.new("Really black")
  517. local Mesh = Instance.new("BlockMesh",Part)
  518. Mesh.Scale = Vector3.new(0.05,0.11,0.1) / 0.2 * Scale
  519. local PartWeld = Instance.new("Motor6D")
  520. PartWeld.Part0 = Barrel2
  521. PartWeld.Part1 = Part
  522. PartWeld.C0 = CFrame.new(Vector3.new(-0.06,0.135,0.925)*Scale)
  523. PartWeld.Parent = Part
  524.  
  525. local Part = Instance.new("Part",Model)
  526. Part.CanCollide = false
  527. Part.Position = Vector3.new(0,100,0)
  528. Part:BreakJoints()
  529. Part.FormFactor = "Custom"
  530. Part.Size = Vector3.new(0.2,0.2,0.2)
  531. Part.TopSurface = "SmoothNoOutlines"
  532. Part.BottomSurface = "SmoothNoOutlines"
  533. Part.FrontSurface = "SmoothNoOutlines"
  534. Part.BackSurface = "SmoothNoOutlines"
  535. Part.RightSurface = "SmoothNoOutlines"
  536. Part.LeftSurface = "SmoothNoOutlines"
  537. Part.BrickColor = BrickColor.new("Really black")
  538. local Mesh = Instance.new("BlockMesh",Part)
  539. Mesh.Scale = Vector3.new(0.025,0.1,0.1) / 0.2 * Scale
  540. local PartWeld = Instance.new("Motor6D")
  541. PartWeld.Part0 = Barrel2
  542. PartWeld.Part1 = Part
  543. PartWeld.C0 = CFrame.new(Vector3.new(0,0.135,-0.925)*Scale)
  544. PartWeld.Parent = Part
  545.  
  546. local Part = Instance.new("Part",Model)
  547. Part.CanCollide = false
  548. Part.Position = Vector3.new(0,100,0)
  549. Part:BreakJoints()
  550. Part.FormFactor = "Custom"
  551. Part.Size = Vector3.new(0.2,0.2,0.2)
  552. Part.Transparency = 1
  553. Part.TopSurface = "SmoothNoOutlines"
  554. Part.BottomSurface = "SmoothNoOutlines"
  555. Part.FrontSurface = "SmoothNoOutlines"
  556. Part.BackSurface = "SmoothNoOutlines"
  557. Part.RightSurface = "SmoothNoOutlines"
  558. Part.LeftSurface = "SmoothNoOutlines"
  559. Part.BrickColor = BrickColor.new("Really black")
  560. local Mesh = Instance.new("BlockMesh",Part)
  561. Mesh.Scale = Vector3.new(0.1,0.1,0.1) / 0.2 * Scale
  562. local PartWeld = Instance.new("Motor6D")
  563. PartWeld.Part0 = Barrel
  564. PartWeld.Part1 = Part
  565. PartWeld.C0 = CFrame.new(Vector3.new(0,0,-5)*Scale)
  566. PartWeld.Parent = Part
  567.  
  568. local Light = Instance.new("PointLight",Part)
  569. Light.Color = BrickColor.new("Gold").Color
  570. Light.Enabled = true
  571. Light.Shadows = true
  572. Light.Brightness = 0
  573. Light.Range = 6
  574.  
  575. local Part = Instance.new("Part",Model)
  576. Part.Material = "Neon"
  577. Part.CanCollide = false
  578. Part.Position = Vector3.new(0,100,0)
  579. Part:BreakJoints()
  580. Part.FormFactor = "Custom"
  581. Part.Size = Vector3.new(0.2,0.2,0.2)
  582. Part.TopSurface = "SmoothNoOutlines"
  583. Part.BottomSurface = "SmoothNoOutlines"
  584. Part.FrontSurface = "SmoothNoOutlines"
  585. Part.BackSurface = "SmoothNoOutlines"
  586. Part.RightSurface = "SmoothNoOutlines"
  587. Part.LeftSurface = "SmoothNoOutlines"
  588. Part.BrickColor = BrickColor.new("Bright yellow")
  589. Part.Transparency = 0.25
  590. local RecoilMesh = Instance.new("SpecialMesh",Part)
  591. RecoilMesh.MeshType = "FileMesh"
  592. RecoilMesh.MeshId = "http://www.roblox.com/Asset/?id=1323306"
  593. RecoilMesh.TextureId = "http://www.roblox.com/Asset/?id=98896228"
  594. RecoilMesh.Scale = Vector3.new(0.175,0,0.175) * Scale
  595. local PartWeld = Instance.new("Motor6D")
  596. PartWeld.Part0 = RealBarrel
  597. PartWeld.Part1 = Part
  598. PartWeld.C0 = CFrame.new(Vector3.new(0,0.95,0)*Scale)
  599. PartWeld.Parent = Part
  600.  
  601. function ShootBullet(Target,barrel)
  602. local barrel = barrel or Barrel
  603. local Bullet = Instance.new("Part",Workspace)
  604. Barrel.CanCollide = false
  605. Bullet.FormFactor = "Custom"
  606. Bullet.Size = Vector3.new(0.2,0.2,5)*Scale
  607. Bullet.TopSurface = "Smooth"
  608. Bullet.BottomSurface = "Smooth"
  609. Bullet.Anchored = true
  610. Bullet.CanCollide = false
  611. Bullet.CFrame = CFrame.new((barrel.CFrame*CFrame.new(0,0,-barrel.Size.Z*barrel.Mesh.Scale.Z/2)).p,Target)*CFrame.new(0,0,-Bullet.Size.Z/2)
  612. Bullet.Transparency = 0.1
  613. Bullet.BrickColor = BrickColor.new("Gold")
  614. --[[local Mesh = Instance.new("SpecialMesh",Bullet)
  615. Mesh.MeshType = "FileMesh"
  616. Mesh.Scale = Vector3.new(0.5,0.5,0.2)
  617. Mesh.MeshId = "http://www.roblox.com/asset/?id=2697549"
  618. --Mesh.TextureId = "http://www.roblox.com/asset/?id=2697544"]]
  619. local Mesh = Instance.new("BlockMesh",Bullet)
  620. Mesh.Scale = Vector3.new(0.2,0.2,5)*Scale/Bullet.Size
  621. IgnoreList[#IgnoreList+1] = Bullet
  622. RenderStepped:wait()
  623. for i = Speed,1000,Speed do -- Loop to do the bullet movement and stuff.
  624. local ray,Hit,Pos,SurfaceNormal;
  625. ray = Ray.new(Bullet.Position,((Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)).p-Bullet.Position).unit*Speed)
  626. Hit,Pos,SurfaceNormal = Workspace:FindPartOnRayWithIgnoreList(ray,IgnoreList)
  627. Bullet.CFrame = Bullet.CFrame*CFrame.Angles(math.rad(-Gravity),0,0)*CFrame.new(0,0,-Speed)
  628. if Hit ~= nil then
  629. local Hum = Hit.Parent:FindFirstChild("Humanoid") or Hit.Parent.Parent:FindFirstChild("Humanoid") or (Hit.Parent.Parent.Parent ~= nil and Hit.Parent.Parent.Parent:FindFirstChild("Humanoid"))
  630. if Hum ~= nil then
  631. Hum:TakeDamage((((Gangster and math.random(0,0) or math.random(0,0))*Scale)/100)*Hum.MaxHealth)
  632. end
  633. break
  634. end
  635. RenderStepped:wait()
  636. end
  637. Bullet:Destroy()
  638. end
  639.  
  640. Mouse.Button1Down:connect(function()
  641. if not Down and not DB then
  642. Down = true
  643. while Down do
  644. if Humanoid.Health == 0 then break end
  645. if not DB then
  646. DB = true
  647. local Sound = Instance.new("Sound",Barrel)
  648. Sound.SoundId = "http://www.roblox.com/Asset/?id=165946426" -- 132373574
  649. Sound.Volume = 5*Scale
  650. Sound.Pitch = (math.random(70,110)/100)/((Scale < 0.25 and 0.25) or (Scale > 4 and 4) or Scale)
  651. Sound:Play()
  652. Spawn(function()
  653. ShootBullet(Mouse.Hit.p,Barrel1)
  654. end)
  655. RecoilMesh.VertexColor = Vector3.new(1,math.random(160,245)/255,20/255)
  656. PartWeld.C0 = PartWeld.C0 * CFrame.Angles(0,math.rad(math.random(-40,40)),0)
  657. local Shell = Instance.new("Part",Workspace)
  658. Shell.FormFactor = "Custom"
  659. Shell.BrickColor = BrickColor.new("Bright yellow")
  660. Shell.Size = Vector3.new(0.2,0.5,0.2)*Scale
  661. Shell.CFrame = Barrel.CFrame*CFrame.new(0.5,0.5,0)*CFrame.Angles(math.rad(-90),0,0)
  662. Shell.Velocity = ((Barrel.CFrame*CFrame.new(5,0,math.random(-2,2))).p-Barrel.CFrame.p)*5*Scale
  663. local Mesh = Instance.new("CylinderMesh",Shell)
  664. Mesh.Scale = Vector3.new(0.2,0.5,0.2)*Scale/Shell.Size
  665. Spawn(function()
  666. wait(5)
  667. Shell:Destroy()
  668. end)
  669. for i = 1,20,7.5 do
  670. character1.Reanimate.FPart.Position = mouse.Hit.p
  671. RotationOffset = RotationOffset*CFrame.Angles(math.rad(7.5),0,0)
  672. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,-0.15,0)*Scale)
  673. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,0.15)*Scale)
  674. Light.Brightness = Light.Brightness+38
  675. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,0.375,0)*Scale)
  676. RenderStepped:wait()
  677. end
  678. wait(0.02)
  679. for i = 1,20,3.75 do
  680. character1.Reanimate.FPart.Position = mouse.Hit.p
  681. RotationOffset = RotationOffset*CFrame.Angles(math.rad(-3.75),0,0)
  682. Part1Joint = Part1Joint*CFrame.new(Vector3.new(0,0.075,0)*Scale)
  683. Barrel2Weld.C0 = Barrel2Weld.C0*CFrame.new(Vector3.new(0,0,-0.075)*Scale)
  684. Light.Brightness = Light.Brightness-19
  685. RecoilMesh.Scale = RecoilMesh.Scale+(Vector3.new(0,-0.1875,0)*Scale)
  686. RenderStepped:wait()
  687. end
  688. wait(0.02)
  689. DB = false
  690. end
  691. end
  692. end
  693. end)
  694.  
  695. Mouse.Button1Up:connect(function()
  696. Down = false
  697. end)
  698.  
  699. Mouse.KeyDown:connect(function(Key)
  700. if Key:lower() == "g" and not DB then
  701. DB = true
  702. if Gangster == true then
  703. for i = 1,70,5 do
  704. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(-5),0)
  705. RenderStepped:wait()
  706. end
  707. Gangster = false
  708. else
  709. for i = 1,70,5 do
  710. RotationOffset = RotationOffset*CFrame.Angles(0,math.rad(5),0)
  711. RenderStepped:wait()
  712. end
  713. Gangster = true
  714. end
  715. DB = false
  716. end
  717. end)
  718.  
  719. local Weld = Instance.new("Weld")
  720. Weld.Part0 = Torso
  721. Weld.Part1 = Character["Right Arm"]
  722. Weld.Parent = Torso
  723.  
  724. local Weld2 = Instance.new("Weld")
  725. Weld2.Part0 = Torso
  726. Weld2.Part1 = Character.Head
  727. Weld2.Parent = Torso
  728.  
  729. local RA = Character["Right Arm"]
  730.  
  731. game:GetService("RunService"):BindToRenderStep("Pistol",Enum.RenderPriority.Character.Value,function()
  732. local Point = Torso.CFrame:vectorToObjectSpace(Mouse.Hit.p-Torso.CFrame.p)
  733. if Point.Z > 0 then
  734. if Point.X > 0 then
  735. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(90),0)
  736. elseif Point.X < 0 then
  737. Torso.CFrame = CFrame.new(Torso.Position,Vector3.new(Mouse.Hit.X,Torso.Position.Y,Mouse.Hit.Z))*CFrame.Angles(0,math.rad(-90),0)
  738. end
  739. end
  740.  
  741. local CFr = (Torso.CFrame*Part0Joint):toObjectSpace(CFrame.new((Torso.CFrame*Part0Joint).p,Mouse.Hit.p))--RayEnd))
  742. Weld.C0 = Part0Joint * (CFr-CFr.p) * RotationOffset
  743. Weld.C1 = Part1Joint
  744. Weld.Part0 = Torso
  745. Weld.Part1 = RA
  746. local CFr = (Torso.CFrame*Part0JointHead):toObjectSpace(CFrame.new((Torso.CFrame*Part0JointHead).p,Mouse.Hit.p))--RayEnd))
  747. Weld2.C0 = Part0JointHead * (CFr-CFr.p) * RotationOffsetHead
  748. Weld2.C1 = Part1JointHead
  749. Weld2.Part0 = Torso
  750. Weld2.Part1 = Character.Head
  751. local Last = Scale
  752. Scale = game.Players.LocalPlayer.Character.Torso.Size.X/2*(game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted") ~= nil and game.Players.LocalPlayer.Character.Torso:FindFirstChild("ScaleInserted").Scale.Z or 1)*0.8
  753. Speed = 20*Scale
  754. if Scale ~= Last then
  755. Part0Joint = CFrame.new(Vector3.new(1,0.75,0)*Scale*1.25)
  756. Part1Joint = CFrame.new(Vector3.new(-0.5,0.75,0)*Scale*1.25)
  757. Part0JointHead = CFrame.new(Vector3.new(0,1,0)*Scale*1.25)
  758. Part1JointHead = CFrame.new(Vector3.new(0,-0.5,0)*Scale*1.25)
  759. end
  760. end)
  761.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement