AALTTz

FE mouse fling

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