Advertisement
AALTTz

fling

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