Advertisement
TheUnknownDiscord

rocket launcher

Mar 24th, 2023
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 31.60 KB | None | 0 0
  1. -- i have come out of hibernation
  2. Tool0 = Instance.new("Tool")
  3. Part1 = Instance.new("Part")
  4. GuiPart = Instance.new("Part")
  5. local w = Instance.new("Weld",Part1)
  6. w.Part0 = Part1
  7. w.Part1 = GuiPart
  8. w.C0 = CFrame.new(-0.848, 0.985, 0) * CFrame.Angles(math.rad(10),math.rad(-90),0)
  9. Gui = Instance.new("SurfaceGui")
  10. Gui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
  11. Gui.PixelsPerStud = 150
  12. F1 = Instance.new("Frame")
  13. F2 = Instance.new("Frame")
  14. local round = Instance.new("UICorner",F1)
  15. round.CornerRadius = UDim.new(0.1)
  16. local round = Instance.new("UICorner",F2)
  17. round.CornerRadius = UDim.new(0.1)
  18. Text1 = Instance.new("TextBox")
  19. Text2 = Instance.new("TextBox")
  20. GuiPart.Parent = Part1
  21. GuiPart.Transparency = 0.7
  22. GuiPart.Size = Vector3.new(0.7272560596466064, 0.586264431476593, 0.0010000020265579224)
  23. GuiPart.CanCollide = false
  24. GuiPart.Material = Enum.Material.ForceField
  25. Gui.Parent = GuiPart
  26. Gui.LightInfluence = 1
  27. Gui.ClipsDescendants = true
  28. Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  29. F1.Parent = Gui
  30. F1.Position = UDim2.new(0.5, 0, 0.75, 0)
  31. F1.Size = UDim2.new(0.850000024, 0, 0.100000001, 0)
  32. F1.AnchorPoint = Vector2.new(0.5, 0.5)
  33. F1.BackgroundColor = BrickColor.new("Smoky grey")
  34. F1.BackgroundColor3 = Color3.new(0.305882, 0.32549, 0.403922)
  35. F1.ClipsDescendants = true
  36. F2.Parent = F1
  37. F2.Position = UDim2.new(1, 0, 0.5, 0)
  38. F2.Size = UDim2.new(1, 0, 1, 0)
  39. F2.AnchorPoint = Vector2.new(1, 0.5)
  40. F2.BackgroundColor = BrickColor.new("Toothpaste")
  41. F2.BackgroundColor3 = Color3.new(0.282353, 0.894118, 0.988235)
  42. Text1.Parent = Gui
  43. Text1.Position = UDim2.new(0.5, 0, 0.550000012, 0)
  44. Text1.Size = UDim2.new(0.5, 0, 0.25, 0)
  45. Text1.AnchorPoint = Vector2.new(0.5, 0.5)
  46. Text1.BackgroundColor = BrickColor.new("Institutional white")
  47. Text1.BackgroundColor3 = Color3.new(1, 1, 1)
  48. Text1.BackgroundTransparency = 1
  49. Text1.Font = Enum.Font.Gotham
  50. Text1.FontSize = Enum.FontSize.Size60
  51. Text1.Text = "READY"
  52. Text1.TextColor = BrickColor.new("Cyan")
  53. Text1.TextColor3 = Color3.new(0.188235, 0.811765, 1)
  54. Text1.TextScaled = true
  55. Text1.TextSize = 50
  56. Text1.TextEditable = false
  57. Text1.TextStrokeTransparency = 0
  58. Text1.TextWrap = true
  59. Text1.TextWrapped = true
  60. Text1.ClearTextOnFocus = false
  61. Text1.MultiLine = true
  62. Text2.Parent = Gui
  63. Text2.Position = UDim2.new(0.5, 0, 0.300000012, 0)
  64. Text2.Size = UDim2.new(0.850000024, 0, 0.5, 0)
  65. Text2.TextEditable = false
  66. Text2.AnchorPoint = Vector2.new(0.5, 0.5)
  67. Text2.BackgroundColor = BrickColor.new("Institutional white")
  68. Text2.BackgroundColor3 = Color3.new(1, 1, 1)
  69. Text2.BackgroundTransparency = 1
  70. Text2.Font = Enum.Font.Gotham
  71. Text2.FontSize = Enum.FontSize.Size60
  72. Text2.Text = "FRZN"
  73. Text2.TextColor = BrickColor.new("Cyan")
  74. Text2.TextColor3 = Color3.new(0.305882, 0.32549, 0.403922)
  75. Text2.TextScaled = true
  76. Text2.TextSize = 60
  77. Text2.TextStrokeTransparency = 0
  78. Text2.TextWrap = true
  79. Text2.TextWrapped = true
  80. Text2.ClearTextOnFocus = false
  81. Text2.MultiLine = true
  82. local activecolor = Color3.new(0.188235, 0.811765, 1)
  83. local inactivecolor = Color3.new(0.305882, 0.32549, 0.403922)
  84. local freezetime = 10
  85. local s = Instance.new("Sound",Part1)
  86. s.Volume = 2
  87. s.SoundId = "rbxassetid://12823408456"
  88. local freeze = false
  89. local s2 = Instance.new("Sound")
  90. s2.Volume = 2
  91. s2.SoundId = "rbxassetid://12823408456"
  92. s2.PlayOnRemove = true
  93. local object = Instance.new("ObjectValue", owner.PlayerGui)
  94. object.Value = s
  95. object.Name = "thes"
  96. SpecialMesh2 = Instance.new("SpecialMesh")
  97. Weld3 = Instance.new("Weld")
  98. Part4 = Instance.new("Part")
  99. SpecialMesh5 = Instance.new("SpecialMesh")
  100. Part7 = Instance.new("Part")
  101. Part7.CanQuery = false
  102. SpecialMesh8 = Instance.new("SpecialMesh")
  103. Tool0.Name = "Rocket Launcher"
  104. Tool0.Parent = mas
  105. Tool0.Grip = CFrame.new(-0.25, 0, 0, -4.37113883e-08, 0, 1, 0, 1, 0, -1, 0, -4.37113883e-08)
  106. Tool0.GripForward = Vector3.new(-1, -0, 4.371138828673793e-08)
  107. Tool0.GripPos = Vector3.new(-0.25, 0, 0)
  108. Tool0.GripRight = Vector3.new(-4.371138828673793e-08, 0, -1)
  109. Part1.Name = "Handle"
  110. Part1.Parent = Tool0
  111. Part1.CFrame = CFrame.new(-3.24324417, 1.59824371, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  112. Part1.Position = Vector3.new(-3.243244171142578, 1.5982437133789062, 2.5)
  113. Part1.Size = Vector3.new(2.6220510005950928, 1.6931220293045044, 1.6534632444381714)
  114. Part1.BottomSurface = Enum.SurfaceType.Smooth
  115. Part1.TopSurface = Enum.SurfaceType.Smooth
  116. SpecialMesh2.Parent = Part1
  117. SpecialMesh2.MeshId = "rbxassetid://12801788581"
  118. SpecialMesh2.Scale = Vector3.new(1.5253353118896484, 1.5253350734710693, 1.5253350734710693)
  119. SpecialMesh2.TextureId = "rbxassetid://12801788586"
  120. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  121. Weld3.Name = "rweld"
  122. Weld3.Parent = Part1
  123. Weld3.C1 = CFrame.new(2.5, -0.0270000007, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  124. Weld3.Part0 = Part1
  125. Weld3.Part1 = Part4
  126. Weld3.part1 = Part4
  127. Part4.Name = "f"
  128. Part4.Parent = Tool0
  129. Part4.CFrame = CFrame.new(-5.74324417, 1.62524366, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  130. Part4.Position = Vector3.new(-5.743244171142578, 1.6252436637878418, 2.5)
  131. Part4.Size = Vector3.new(3.3417856693267822, 1.3104428052902222, 1.2025424242019653)
  132. Part4.BottomSurface = Enum.SurfaceType.Smooth
  133. Part4.CanCollide = false
  134. Part4.TopSurface = Enum.SurfaceType.Smooth
  135. SpecialMesh5.Parent = Part4
  136. SpecialMesh5.MeshId = "rbxassetid://12801787103"
  137. SpecialMesh5.Scale = Vector3.new(1.5637744665145874, 1.5637743473052979, 1.5637743473052979)
  138. SpecialMesh5.TextureId = "rbxassetid://12801788586"
  139. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  140. Part7.Name = "ExplSph"
  141. Part7.Parent = Script6
  142. Part7.CFrame = CFrame.new(-5.1099987, 2.12441111, 1.38000011, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  143. Part7.Position = Vector3.new(-5.10999870300293, 2.124411106109619, 1.380000114440918)
  144. Part7.Color = Color3.new(0.972549, 0.972549, 0.972549)
  145. Part7.Size = Vector3.new(0.5, 0.5, 0.5)
  146. Part7.Anchored = true
  147. Part7.BottomSurface = Enum.SurfaceType.Smooth
  148. Part7.BrickColor = BrickColor.new("Institutional white")
  149. Part7.CanCollide = false
  150. Part7.Material = Enum.Material.SmoothPlastic
  151. Part7.TopSurface = Enum.SurfaceType.Smooth
  152. Part7.brickColor = BrickColor.new("Institutional white")
  153. Part7.Shape = Enum.PartType.Ball
  154. SpecialMesh8.Parent = Part7
  155. SpecialMesh8.MeshId = "rbxassetid://6247281036"
  156. SpecialMesh8.Scale = Vector3.new(0.009999999776482582, 0.009999999776482582, 0.009999999776482582)
  157. SpecialMesh8.MeshType = Enum.MeshType.FileMesh
  158. Part0 = Instance.new("Part")
  159. ParticleEmitter1 = Instance.new("ParticleEmitter")
  160. Trail2 = Instance.new("Trail")
  161. Weld2 = Instance.new("Weld")
  162. Part42 = Instance.new("Part")
  163. local reloadtime = 0
  164. local at1 = Instance.new("Attachment",Part0)
  165. at1.CFrame = CFrame.new(1.925, -0.689, 0.689)
  166. local at2 = Instance.new("Attachment",Part0)
  167. at2.CFrame = CFrame.new(1.925, 0.689, -0.689)
  168. local at3 = Instance.new("Attachment",Part0)
  169. at3.CFrame = CFrame.new(2.129, -0, -0.011)
  170. Part0.CFrame = CFrame.new(-11.1224995, 1.42500401, -0.612217247, 1, 0, 0, 0, 0.707106769, -0.707106769, 0, 0.707106769, 0.707106769)
  171. Part0.Orientation = Vector3.new(45, 0, 0)
  172. Part0.Anchored = true
  173. Part0.Position = Vector3.new(-11.122499465942383, 1.425004005432129, -0.6122172474861145)
  174. Part0.Rotation = Vector3.new(45, 0, 0)
  175. Part0.Color = Color3.new(1, 0.0117647, 0.0117647)
  176. Part0.Size = Vector3.new(4, 1, 1)
  177. Part0.BackSurface = Enum.SurfaceType.Studs
  178. Part0.BottomSurface = Enum.SurfaceType.Studs
  179. Part0.BrickColor = BrickColor.new("Really red")
  180. Part0.CanCollide = false
  181. Part0.FrontSurface = Enum.SurfaceType.Studs
  182. Part0.LeftSurface = Enum.SurfaceType.Studs
  183. Part0.RightSurface = Enum.SurfaceType.Inlet
  184. Part0.brickColor = BrickColor.new("Really red")
  185. ParticleEmitter1.Parent = at3
  186. ParticleEmitter1.Speed = NumberRange.new(0, 0)
  187. ParticleEmitter1.LightEmission = 0.20000000298023224
  188. ParticleEmitter1.LightInfluence = 1
  189. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=12803112648"
  190. ParticleEmitter1.Transparency = NumberSequence.new(0.800000011920929,0.012499988079071045,0.02499997615814209,0.800000011920929)
  191. ParticleEmitter1.ZOffset = 0.20000000298023224
  192. ParticleEmitter1.Size = NumberSequence.new(0.8125001192092896,1.190000057220459,1.190000057220459)
  193. ParticleEmitter1.EmissionDirection = Enum.NormalId.Back
  194. ParticleEmitter1.Lifetime = NumberRange.new(0.11999999731779099, 0.11999999731779099)
  195. ParticleEmitter1.LockedToPart = true
  196. ParticleEmitter1.Rate = 30
  197. Trail2.Parent = Part0
  198. Trail2.Attachment0 = at1
  199. Trail2.Attachment1 = at2
  200. Trail2.Color = ColorSequence.new(Color3.new(0.784314, 0, 0),Color3.new(0.784314, 0, 0))
  201. Trail2.LightEmission = 0.4000000059604645
  202. Trail2.LightInfluence = 0.30000001192092896
  203. Trail2.Transparency = NumberSequence.new(0.20000000298023224,0.1875,0)
  204. Trail2.MinLength = 0
  205. Trail2.Lifetime = 0.4000000059604645
  206. Weld2.Parent = Part0
  207. Weld2.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.707106769, 0.707106769, 0, -0.707106769, 0.707106769)
  208. Weld2.C1 = CFrame.new(-1.10000002, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  209. Weld2.Part0 = Part0
  210. Weld2.Part1 = Part42
  211. Weld2.part1 = Part42
  212. Part42.Parent = Part0
  213. Part42.CFrame = CFrame.new(-10.0224991, 1.42500401, -0.612217247, 1, 0, 0, 0, 0.99999994, 0, 0, 0, 0.99999994)
  214. Part42.Position = Vector3.new(-10.022499084472656, 1.425004005432129, -0.6122172474861145)
  215. Part42.Color = Color3.new(1, 0.0117647, 0.0117647)
  216. Part42.Size = Vector3.new(1.625, 2, 0.009999999776482582)
  217. Part42.BackSurface = Enum.SurfaceType.Weld
  218. Part42.BottomSurface = Enum.SurfaceType.Weld
  219. Part42.BrickColor = BrickColor.new("Really red")
  220. Part42.CanCollide = false
  221. Part42.FrontSurface = Enum.SurfaceType.Weld
  222. Part42.LeftSurface = Enum.SurfaceType.Weld
  223. Part42.RightSurface = Enum.SurfaceType.Weld
  224. Part42.TopSurface = Enum.SurfaceType.Weld
  225. Part42.brickColor = BrickColor.new("Really red")
  226. local tool = Tool0
  227. model = Part0
  228. model.Parent = nil
  229. db = false
  230. e = Instance.new("RemoteEvent",owner.Character)
  231. e2 = Instance.new("RemoteEvent",e)
  232. e.Name = "a"
  233. local hed = Instance.new("Weld",owner.Character.Torso)
  234. hed.Part0 = owner.Character.Head
  235. hed.Part1 = hed.Parent
  236. hed.C0 = CFrame.new(0,-0.5,0)
  237. hed.C1 = CFrame.new(0,1,0)
  238. hed.Enabled = false
  239. local armw = Instance.new("Weld",owner.Character.Torso)
  240. armw.Part0 = owner.Character["Right Arm"]
  241. armw.Part1 = owner.Character.Torso
  242. armw.C1 = CFrame.new(1.5,0.4,0.25)
  243. armw.Enabled = false
  244. armw.C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)
  245. local equip = Instance.new("Sound")
  246. equip.PlayOnRemove = true
  247. equip.Volume = 1
  248. equip.SoundId = "rbxassetid://6870002623"
  249. local tweenservice = game:GetService("TweenService")
  250. local t1 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{C0 = CFrame.new(1.75,0,0)})
  251. local t2 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{C0 = CFrame.new(1.65,0,0)})
  252. local t3 = tweenservice:Create(Weld3,TweenInfo.new(0.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{C0 = CFrame.new(0,0,0)})
  253. local tweenService = game:GetService("TweenService")
  254. local tweenInfo = TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out)
  255. local goal4 = {}
  256. goal4.C0 = CFrame.new(0,-0.8,-0.1) * CFrame.Angles(math.rad(-110),0,0)
  257. local tween4 = tweenService:Create(armw, tweenInfo, goal4)
  258. local tweenInfo = TweenInfo.new(0.15,Enum.EasingStyle.Back,Enum.EasingDirection.Out)
  259. local goal5 = {}
  260. goal5.C0 = CFrame.new(0,-0.3,-0.05) * CFrame.Angles(math.rad(-85),0,0)
  261. local tween5 = tweenService:Create(armw, tweenInfo, goal5)
  262. local tweenInfo = TweenInfo.new(0.1,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,true)
  263. local goa = {}
  264. goa.C0 = owner.Character.HumanoidRootPart:FindFirstChildWhichIsA("Motor6D").C0 * CFrame.Angles(math.rad(-5),0,0)
  265. local twee = tweenService:Create(owner.Character.HumanoidRootPart:FindFirstChildWhichIsA("Motor6D"), tweenInfo, goa)
  266. local b4 = tweenservice:Create(armw,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,1.4,0) * CFrame.Angles(math.rad(-90),0,0)})
  267. local b5 = tweenservice:Create(armw,TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,0.5,0) * CFrame.Angles(math.rad(-90),0,0)})
  268. tool.Parent = owner.Backpack
  269. function explode(pos,res)
  270. coroutine.wrap(function()
  271. if res:FindFirstAncestorWhichIsA("Model") and res:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") then
  272. local explsph1 = Part7:Clone()
  273. explsph1.Position = pos
  274. explsph1.Size = Vector3.new()
  275. explsph1.Parent = workspace
  276. explsph1.BrickColor = BrickColor.new("Neon orange")
  277. local hitm = {}
  278. local h
  279. h = explsph1.Touched:Connect(function(hit)
  280. if hit:FindFirstAncestorWhichIsA("Model") and hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid") and not table.find(hitm,hit:FindFirstAncestorWhichIsA("Model")) and hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health > 0 then
  281. table.insert(hitm,hit:FindFirstAncestorWhichIsA("Model"))
  282. hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid").Health -= 40
  283. elseif not table.find(hitm,hit) then
  284. table.insert(hitm,hit)
  285. local blastForce = Instance.new('BodyForce', hit)
  286. blastForce.Force = (hit.Position - explsph1.Position).unit * 500 * hit:GetMass()
  287. game:GetService("Debris"):AddItem(blastForce, 0.1)
  288. end
  289. end)
  290. s2.Volume = 4
  291. s2.SoundId = "rbxassetid://12823409310"
  292. s2.Parent = explsph1
  293. s2.Parent = nil
  294. local explsph2 = Part7:Clone()
  295. explsph2.Position = pos
  296. explsph2.Parent = workspace
  297. explsph2.Material = Enum.Material.SmoothPlastic
  298. explsph2.Transparency = 0.7
  299. local explsph1tween = game:GetService("TweenService"):Create(explsph1,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Size = Vector3.new(4.5 * 5,4.5 * 5,4.5 * 5)})
  300. explsph1tween:Play()
  301. local explsph1tween3 = game:GetService("TweenService"):Create(explsph1.Mesh,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Scale = Vector3.new(4.5 * 5,4.5 * 5,4.5 * 5)*0.01})
  302. explsph1tween3:Play()
  303. local explsph2tween = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Size = Vector3.new(4.55 * 5,4.55 * 5,4.55 * 5)})
  304. explsph2tween:Play()
  305. local explsph2tween3 = game:GetService("TweenService"):Create(explsph2.Mesh,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Scale = Vector3.new(4.55 * 5,4.55 * 5,4.55 * 5)*0.01})
  306. explsph2tween3:Play()
  307. wait(0.15)
  308. h:Disconnect()
  309. local explsph1tween2 = game:GetService("TweenService"):Create(explsph1,TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 1})
  310. explsph1tween2:Play()
  311. local explsph2tween2 = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 1})
  312. explsph2tween2:Play()
  313. game:GetService("Debris"):AddItem(explsph1,0.25)
  314. game:GetService("Debris"):AddItem(explsph2,0.25)
  315. else
  316. local explsph2 = Part7:Clone()
  317. explsph2.Position = pos
  318. explsph2.Size = Vector3.new()
  319. explsph2.Parent = workspace
  320. explsph2.Material = Enum.Material.SmoothPlastic
  321. explsph2.Transparency = 0.7
  322. s2.Volume = 2.5
  323. s2.SoundId = "rbxassetid://12823409310"
  324. s2.Parent = explsph2
  325. s2.Parent = nil
  326. local hitm = {}
  327. local h
  328. h = explsph2.Touched:Connect(function(hit)
  329. if not (hit:FindFirstAncestorWhichIsA("Model") and hit:FindFirstAncestorWhichIsA("Model"):FindFirstChildWhichIsA("Humanoid")) and not table.find(hitm,hit) then
  330. table.insert(hitm,hit)
  331. local blastForce = Instance.new('BodyForce', hit)
  332. blastForce.Force = (hit.Position - explsph2.Position).unit * 500 * hit:GetMass()
  333. game:GetService("Debris"):AddItem(blastForce, 0.1)
  334. end
  335. end)
  336. local explsph2tween = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Size = Vector3.new(4 * 7,4 * 7,4 * 7)})
  337. explsph2tween:Play()
  338. local explsph2tween3 = game:GetService("TweenService"):Create(explsph2.Mesh,TweenInfo.new(0.125,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Scale = Vector3.new(4 * 7,4 * 7,4 * 7)*0.01})
  339. explsph2tween3:Play()
  340. wait(0.15)
  341. h:Disconnect()
  342. local explsph2tween2 = game:GetService("TweenService"):Create(explsph2,TweenInfo.new(0.25,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{Transparency = 1})
  343. explsph2tween2:Play()
  344. game:GetService("Debris"):AddItem(explsph2,0.25)
  345. end
  346. end)()
  347. end
  348. e2.OnServerEvent:Connect(function(_,wha,cf)
  349. if wha == "rocket" then
  350. e2:FireClient(owner)
  351. db = true
  352. twee:Play()
  353. s:Play()
  354. coroutine.wrap(function()
  355. reloadtime = 1.1
  356. Text1.Text = tostring(reloadtime)
  357. repeat
  358. reloadtime = math.clamp(reloadtime-0.1,0,1.1)
  359. Text1.Text = tostring(reloadtime)
  360. wait(0.1)
  361. until reloadtime == 0
  362. Text1.Text = "RDY"
  363. end)()
  364. coroutine.wrap(function()
  365. local shootybang
  366. local r = model:Clone()
  367. r.Parent = script
  368. r.CFrame = cf * CFrame.Angles(0,math.rad(-90),0) * CFrame.new(-3.5,0,0)
  369. r.CFrame *= CFrame.Angles(math.rad(45),0,0)
  370. local bullet = r
  371. local params = RaycastParams.new()
  372. params.FilterDescendantsInstances = {r,tool:FindFirstAncestorWhichIsA("Model")}
  373. params.FilterType = Enum.RaycastFilterType.Blacklist
  374. local c = 0
  375. local sped = 150
  376. shootybang = game:GetService("RunService").Stepped:Connect(function(_,b)
  377. if not freeze then
  378. local res
  379. res = workspace:Raycast(bullet.Position, bullet.CFrame.RightVector*(-b*80*4.5)*1.1, params)
  380. if not res then
  381. bullet.CFrame = bullet.CFrame * CFrame.new(-b*80*4,0,0)
  382. sped = sped - (10*b)
  383. if sped < 0 then
  384. r:Destroy()
  385. shootybang:Disconnect()
  386. end
  387. else
  388. r:Destroy()
  389. shootybang:Disconnect()
  390. coroutine.wrap(function()
  391. explode(res.Position,res.Instance)
  392. end)()
  393. end
  394. end
  395. end)
  396. end)()
  397. t1:Play()
  398. coroutine.wrap(function()
  399. delay(0.1,function()
  400. tween4:Play()
  401. tween4.Completed:Wait(0.15)
  402. tween5:Play()
  403. end)
  404. end)()
  405. delay(0.55,function()
  406. t2:Play()
  407. t2.Completed:Wait(0)
  408. b4:Play()
  409. b4.Completed:Wait(0.1)
  410. b5:Play()
  411. t3:Play()
  412. t3.Completed:Wait()
  413. db = false
  414. end)
  415. else
  416. freeze = wha
  417. if freeze == true then
  418. Text2.TextColor3 = inactivecolor
  419. else
  420. Text2.TextColor3 = activecolor
  421. end
  422. end
  423. end)
  424. tool.Equipped:Connect(function()
  425. equip.Parent = tool.Handle
  426. equip.Parent = nil
  427. armw.Enabled = true
  428. hed.Enabled = true
  429. end)
  430. tool.Unequipped:Connect(function()
  431. armw.Enabled = false
  432. hed.Enabled = false
  433. end)
  434. e.OnServerEvent:Connect(function(_,cam,alpha,dt)
  435. local lookvector = owner.Character.HumanoidRootPart.CFrame:toObjectSpace(cam).lookVector.unit
  436. local y = lookvector.y
  437. local x = 0
  438. hed.C0 = hed.C0:Lerp(CFrame.new(0,-0.5,0) * CFrame.Angles(-y,0,0),dt*15)
  439. if y > 0 then
  440. armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles((y),-(x * 0.25),0) * CFrame.new(0,-0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
  441. else
  442. armw.C1 = armw.C1:Lerp(CFrame.new(1.5,0.4,0) * CFrame.Angles((y),-(x * 0.25),0) * CFrame.new(0,0.5 * (y * 0.75),-0.5 * (y * 0.75)),dt*15)
  443. end
  444. end)
  445. coroutine.wrap(function()
  446. while task.wait() do
  447. if freeze == true then
  448. Text2.TextColor3 = activecolor
  449. freezetime = math.clamp(freezetime-0.1,0,10)
  450. F2.Size = UDim2.new(freezetime/10,0,1,0)
  451. if freezetime == 0 then
  452. freeze = false
  453. end
  454. wait(0.1)
  455. else
  456. Text2.TextColor3 = inactivecolor
  457. freezetime = math.clamp(freezetime+0.1,0,10)
  458. F2.Size = UDim2.new(freezetime/10,0,1,0)
  459. wait(0.1)
  460. end
  461. end
  462. end)()
  463. NLS([[
  464. e = script.Parent
  465. local s = owner.PlayerGui.thes.Value
  466. s.Volume = 0
  467. e2 = script.Parent:FindFirstChildWhichIsA("RemoteEvent")
  468. local tool = owner.Backpack:WaitForChild("Rocket Launcher")
  469. for i,v in pairs(tool:GetDescendants()) do
  470. pcall(function()
  471. v.Transparency = 1
  472. v.Active = false
  473. v.TextStrokeTransparency = 1
  474. v.TextTransparency = 1
  475. v.BackgroundTransparency = 1
  476. end)
  477. end
  478. char = owner.Character
  479. Part1 = Instance.new("Part",workspace)
  480. GuiPart = Instance.new("Part")
  481. local w = Instance.new("Weld",Part1)
  482. w.Part0 = Part1
  483. w.Part1 = GuiPart
  484. w.C0 = CFrame.new(-0.848*0.15,0.985*0.15, -0) * CFrame.Angles(math.rad(10), math.rad(-93), 0)
  485. Gui = Instance.new("SurfaceGui")
  486. Gui.SizingMode = Enum.SurfaceGuiSizingMode.PixelsPerStud
  487. Gui.PixelsPerStud = 900
  488. F1 = Instance.new("Frame")
  489. F2 = Instance.new("Frame")
  490. local round = Instance.new("UICorner",F1)
  491. round.CornerRadius = UDim.new(0.1)
  492. local round = Instance.new("UICorner",F2)
  493. round.CornerRadius = UDim.new(0.1)
  494. Text1 = Instance.new("TextBox")
  495. Text2 = Instance.new("TextBox")
  496. GuiPart.Parent = Part1
  497. GuiPart.Transparency = 0.7
  498. GuiPart.Size = Vector3.new(0.7272560596466064, 0.586264431476593, 0.0010000020265579224)*0.15
  499. GuiPart.CanCollide = false
  500. GuiPart.Material = Enum.Material.ForceField
  501. Gui.Parent = GuiPart
  502. Gui.LightInfluence = 1
  503. Gui.ClipsDescendants = true
  504. Gui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  505. F1.Parent = Gui
  506. F1.Position = UDim2.new(0.5, 0, 0.75, 0)
  507. F1.Size = UDim2.new(0.850000024, 0, 0.100000001, 0)
  508. F1.AnchorPoint = Vector2.new(0.5, 0.5)
  509. F1.BackgroundColor = BrickColor.new("Smoky grey")
  510. F1.BackgroundColor3 = Color3.new(0.305882, 0.32549, 0.403922)
  511. F1.ClipsDescendants = true
  512. F2.Parent = F1
  513. F2.Position = UDim2.new(1, 0, 0.5, 0)
  514. F2.Size = UDim2.new(1, 0, 1, 0)
  515. F2.AnchorPoint = Vector2.new(1, 0.5)
  516. F2.BackgroundColor = BrickColor.new("Toothpaste")
  517. F2.BackgroundColor3 = Color3.new(0.282353, 0.894118, 0.988235)
  518. local round = Instance.new("UICorner",F1)
  519. round.CornerRadius = UDim.new(0.1)
  520. local round = Instance.new("UICorner",F2)
  521. round.CornerRadius = UDim.new(0.1)
  522. Text1.Parent = Gui
  523. Text1.Position = UDim2.new(0.5, 0, 0.550000012, 0)
  524. Text1.Size = UDim2.new(0.5, 0, 0.25, 0)
  525. Text1.AnchorPoint = Vector2.new(0.5, 0.5)
  526. Text1.BackgroundColor = BrickColor.new("Institutional white")
  527. Text1.BackgroundColor3 = Color3.new(1, 1, 1)
  528. Text1.BackgroundTransparency = 1
  529. Text1.Font = Enum.Font.Gotham
  530. Text1.FontSize = Enum.FontSize.Size60
  531. Text1.Text = "READY"
  532. Text1.TextColor = BrickColor.new("Cyan")
  533. Text1.TextColor3 = Color3.new(0.188235, 0.811765, 1)
  534. Text1.TextScaled = true
  535. Text1.TextSize = 50
  536. Text1.TextEditable = false
  537. Text1.TextStrokeTransparency = 0
  538. Text1.TextWrap = true
  539. Text1.TextWrapped = true
  540. Text1.ClearTextOnFocus = false
  541. Text1.MultiLine = true
  542. Text2.Parent = Gui
  543. Text2.Position = UDim2.new(0.5, 0, 0.300000012, 0)
  544. Text2.Size = UDim2.new(0.850000024, 0, 0.5, 0)
  545. Text2.TextEditable = false
  546. Text2.AnchorPoint = Vector2.new(0.5, 0.5)
  547. Text2.BackgroundColor = BrickColor.new("Institutional white")
  548. Text2.BackgroundColor3 = Color3.new(1, 1, 1)
  549. Text2.BackgroundTransparency = 1
  550. Text2.Font = Enum.Font.Gotham
  551. Text2.FontSize = Enum.FontSize.Size60
  552. Text2.Text = "FRZN"
  553. Text2.TextColor = BrickColor.new("Cyan")
  554. Text2.TextColor3 = Color3.new(0.305882, 0.32549, 0.403922)
  555. Text2.TextScaled = true
  556. Text2.TextSize = 60
  557. Text2.TextStrokeTransparency = 0
  558. Text2.TextWrap = true
  559. Text2.TextWrapped = true
  560. Text2.ClearTextOnFocus = false
  561. Text2.MultiLine = true
  562. local activecolor = Color3.new(0.188235, 0.811765, 1)
  563. local inactivecolor = Color3.new(0.305882, 0.32549, 0.403922)
  564. local freezetime = 10
  565. SpecialMesh2 = Instance.new("SpecialMesh")
  566. Weld3 = Instance.new("Weld")
  567. Part4 = Instance.new("Part",workspace)
  568. SpecialMesh5 = Instance.new("SpecialMesh")
  569. Part1.CFrame = CFrame.new(-3.24324417, 1.59824371, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  570. Part1.Position = Vector3.new(-3.243244171142578, 1.5982437133789062, 2.5)
  571. Part1.Size = Vector3.new(2.6220510005950928, 1.6931220293045044, 1.6534632444381714)*0.15
  572. Part1.BottomSurface = Enum.SurfaceType.Smooth
  573. Part1.TopSurface = Enum.SurfaceType.Smooth
  574. Part1.CanCollide = false
  575. SpecialMesh2.Parent = Part1
  576. SpecialMesh2.MeshId = "rbxassetid://12801788581"
  577. SpecialMesh2.Scale = Vector3.new(1.5253353118896484, 1.5253350734710693, 1.5253350734710693)*0.15
  578. SpecialMesh2.TextureId = "rbxassetid://12801788586"
  579. SpecialMesh2.MeshType = Enum.MeshType.FileMesh
  580. Weld3.Name = "rweld"
  581. Weld3.Parent = Part1
  582. Weld3.C1 = CFrame.new(2.5*0.15, -0.0270000007*0.15, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  583. Weld3.Part0 = Part1
  584. Weld3.Part1 = Part4
  585. Weld3.part1 = Part4
  586. Part4.CFrame = CFrame.new(-5.74324417, 1.62524366, 2.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  587. Part4.Position = Vector3.new(-5.743244171142578, 1.6252436637878418, 2.5)
  588. Part4.Size = Vector3.new(3.3417856693267822, 1.3104428052902222, 1.2025424242019653)*0.15
  589. Part4.BottomSurface = Enum.SurfaceType.Smooth
  590. Part4.CanCollide = false
  591. Part4.TopSurface = Enum.SurfaceType.Smooth
  592. Part4.CanCollide = false
  593. SpecialMesh5.Parent = Part4
  594. SpecialMesh5.MeshId = "rbxassetid://12801787103"
  595. SpecialMesh5.Scale = Vector3.new(1.5637744665145874, 1.5637743473052979, 1.5637743473052979)*0.15
  596. SpecialMesh5.TextureId = "rbxassetid://12801788586"
  597. SpecialMesh5.MeshType = Enum.MeshType.FileMesh
  598. local eq = false
  599. tool.Equipped:Connect(function()
  600. owner.CameraMode = Enum.CameraMode.LockFirstPerson
  601. Part4.Transparency = 0
  602. Part1.Transparency = 0
  603. GuiPart.Transparency = 0
  604. Gui.Active = true
  605. Text1.Active = true
  606. Text2.TextStrokeTransparency = 0
  607. Text2.TextTransparency = 0
  608. Text1.TextStrokeTransparency = 0
  609. Text1.TextTransparency = 0
  610. F1.BackgroundTransparency = 0
  611. F2.BackgroundTransparency = 0
  612. Text2.Active = true
  613. F1.Active = true
  614. F2.Active = true
  615. workspace.CurrentCamera.FieldOfView = 72
  616. eq = true
  617. end)
  618. tool.Unequipped:Connect(function()
  619. workspace.CurrentCamera.FieldOfView = 70
  620. owner.CameraMode = Enum.CameraMode.Classic
  621. Part4.Transparency = 1
  622. Part1.Transparency = 1
  623. GuiPart.Transparency = 1
  624. Gui.Active = false
  625. Text2.TextStrokeTransparency = 1
  626. Text2.TextTransparency = 1
  627. Text1.TextStrokeTransparency = 1
  628. Text1.TextTransparency = 1
  629. F1.BackgroundTransparency = 1
  630. F2.BackgroundTransparency = 1
  631. Text1.Active = false
  632. Text2.Active = false
  633. F1.Active = false
  634. F2.Active = false
  635. eq = false
  636. end)
  637. local ITERATIONS = 8
  638. local SPRING = {}
  639. function SPRING.create(self, mass, force, damping, speed)
  640. local spring = {
  641. Target = Vector3.new();
  642. Position = Vector3.new();
  643. Velocity = Vector3.new();
  644. Mass = mass or 5;
  645. Force = force or 50;
  646. Damping = damping or 4;
  647. Speed = speed or 4;
  648. }
  649. function spring.shove(self, force)
  650. local x, y, z = force.X, force.Y, force.Z
  651. if x ~= x or x == math.huge or x == -math.huge then
  652. x = 0
  653. end
  654. if y ~= y or y == math.huge or y == -math.huge then
  655. y = 0
  656. end
  657. if z ~= z or z == math.huge or z == -math.huge then
  658. z = 0
  659. end
  660. self.Velocity = self.Velocity + Vector3.new(x, y, z)
  661. end
  662. function spring.update(self, dt)
  663. local scaledDeltaTime = math.min(dt,1) * self.Speed / ITERATIONS
  664. for i = 1, ITERATIONS do
  665. local iterationForce = self.Target - self.Position
  666. local acceleration = (iterationForce * self.Force) / self.Mass
  667. acceleration = acceleration - (self.Velocity * self.Damping)
  668. self.Velocity = self.Velocity + (acceleration * scaledDeltaTime)
  669. self.Position = self.Position + (self.Velocity * scaledDeltaTime)
  670. end
  671. return self.Position
  672. end
  673. return spring
  674. end
  675. local wc = SPRING.create()
  676. local sway = SPRING.create()
  677. local bobspeed = 1
  678. local bobmod = .1
  679. local alpha = .25
  680. local hitcf = CFrame.new()
  681. local function gb(addition, speed, modifier)
  682. return math.sin(tick() * addition * speed) * modifier
  683. end
  684. local mouse = owner:GetMouse()
  685. local part = Instance.new("Part",workspace)
  686. part.Size = Vector3.new()
  687. part.CanCollide = false
  688. part.Transparency = 1
  689. part.Anchored = true
  690. local part2 = Instance.new("Part",workspace)
  691. part2.Size = Vector3.new()
  692. part2.CanCollide = false
  693. part2.Transparency = 1
  694. local s2 = Instance.new("Sound",part)
  695. s2.Volume = 2
  696. s2.SoundId = "rbxassetid://12823408456"
  697. local weld2 = Instance.new("Weld",part)
  698. weld2.Part0 = part
  699. weld2.Part1 = part2
  700. weld2.C1 = CFrame.new(-1.35*0.15,1.35*0.15,-0.6*0.15) * CFrame.Angles(math.rad(-7),0,0)
  701. local tweenservice = game:GetService("TweenService")
  702. local weld = Instance.new("Weld",part2)
  703. weld.Part0 = part2
  704. weld.Part1 = Part1
  705. weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(89),0)
  706. local b1 = tweenservice:Create(weld,TweenInfo.new(0.25,Enum.EasingStyle.Back,Enum.EasingDirection.Out),{C0 = CFrame.new(-0.2*0.15,-0.55*0.15,0.4*0.15) * CFrame.Angles(math.rad(55),math.rad(-5),math.rad(-20))})
  707. local b2 = tweenservice:Create(weld,TweenInfo.new(0.15,Enum.EasingStyle.Sine,Enum.EasingDirection.Out),{C0 = CFrame.new()})
  708. local b4 = tweenservice:Create(weld,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,0,-1.4*0.15)})
  709. local b5 = tweenservice:Create(weld,TweenInfo.new(0.1,Enum.EasingStyle.Quad,Enum.EasingDirection.Out,0,false),{C0 = CFrame.new(0,0,0)})
  710. local t1 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Quint,Enum.EasingDirection.In),{C0 = CFrame.new(1.75*0.15,0,0)})
  711. local t2 = tweenservice:Create(Weld3,TweenInfo.new(0.1,Enum.EasingStyle.Linear,Enum.EasingDirection.Out),{C0 = CFrame.new(1.65*0.15,0,0)})
  712. local t3 = tweenservice:Create(Weld3,TweenInfo.new(0.25,Enum.EasingStyle.Quad,Enum.EasingDirection.Out),{C0 = CFrame.new(0,0,0)})
  713. db = false
  714. local active = false
  715. tool.Activated:Connect(function()
  716. active = true
  717. end)
  718. tool.Deactivated:Connect(function()
  719. active = false
  720. end)
  721. local frozen = false
  722. mouse.Button2Down:Connect(function()
  723. if eq then
  724. frozen = not frozen
  725. e2:FireServer(frozen)
  726. if frozen == true then
  727. Text2.TextColor3 = inactivecolor
  728. else
  729. Text2.TextColor3 = activecolor
  730. end
  731. end
  732. end)
  733. local reloadtime = 0
  734. game:GetService("RunService").RenderStepped:Connect(function()
  735. if not db and active then
  736. e2:FireServer("rocket",workspace.CurrentCamera.CFrame)
  737. e2.OnClientEvent:Wait()
  738. s2:Play()
  739. coroutine.wrap(function()
  740. reloadtime = 1.1
  741. Text1.Text = tostring(reloadtime)
  742. repeat
  743. reloadtime = math.clamp(reloadtime-0.1,0,1.1)
  744. Text1.Text = tostring(reloadtime)
  745. wait(0.1)
  746. until reloadtime == 0
  747. Text1.Text = "RDY"
  748. end)()
  749. db = true
  750. t1:Play()
  751. coroutine.wrap(function()
  752. delay(0.1,function()
  753. b1:Play()
  754. coroutine.wrap(function()
  755. for i = 1, 4 do
  756. local d = math.random(-100,100)/400
  757. local d2 = math.random(-100,100)/400
  758. char:FindFirstChildWhichIsA("Humanoid").CameraOffset = Vector3.new(d,d2,0)
  759. wait(0.01)
  760. char:FindFirstChildWhichIsA("Humanoid").CameraOffset = Vector3.new((d+math.random(-100,100)/1200)*1.5,(d2+math.random(-100,100)/1200)*1.5,0)
  761. wait(0.005)
  762. end
  763. char:FindFirstChildWhichIsA("Humanoid").CameraOffset = Vector3.new(0,0,0)
  764. end)()
  765. b1.Completed:Wait(0.15)
  766. b2:Play()
  767. end)
  768. end)()
  769. delay(0.55,function()
  770. t2:Play()
  771. t2.Completed:Wait()
  772. b4:Play()
  773. b4.Completed:Wait(0.1)
  774. b5:Play()
  775. t3:Play()
  776. t3.Completed:Wait()
  777. db = false
  778. end)
  779. end
  780. end)
  781. game:GetService("RunService").RenderStepped:Connect(function(dt)
  782. part.CFrame = workspace.CurrentCamera.CFrame * CFrame.new(0,0,-1.5*0.15)
  783. local vel = char.HumanoidRootPart.Velocity
  784. local msway = Vector3.new(gb(10, bobspeed, bobmod), gb(5, bobspeed, bobmod), gb(5, bobspeed, bobmod))
  785. local msway2 = Vector3.new(gb(10, bobspeed/5, bobmod), gb(5, bobspeed/5, bobmod), gb(5, bobspeed/5, bobmod))
  786. wc:shove((msway / 25) * dt * 60 * math.clamp(vel.Magnitude,0,30))
  787. sway:shove((msway2 / 25) * dt * 60 * 30)
  788. local wcs = wc:update(dt)
  789. local sws = sway:update(dt)
  790. local relativevel = workspace.CurrentCamera.CFrame:vectorToObjectSpace(vel)
  791. local clampvelx, clampvelz, clampvely = math.clamp(relativevel.x, -50, 50)/200, math.clamp(relativevel.z, -50, 50)/200, math.clamp(relativevel.y, -35, 35)/200
  792. e:FireServer(workspace.CurrentCamera.CFrame,alpha,dt)
  793. if vel.Magnitude > 0.5 then
  794. weld2.C0 = weld2.C0:Lerp(CFrame.new(wcs.y*0.15 / 3, wcs.x*0.15 / 3,0)*CFrame.new(-clampvelx*0.15, -clampvely*0.15, clampvelz*0.15),dt*15)
  795. else
  796. weld2.C0 = weld2.C0:Lerp(CFrame.new(0, sws.x*0.15 / 3,0),dt*15)
  797. end
  798. end)
  799. coroutine.wrap(function()
  800. while task.wait() do
  801. if frozen == true then
  802. Text2.TextColor3 = activecolor
  803. freezetime = math.clamp(freezetime-0.1,0,10)
  804. F2.Size = UDim2.new(freezetime/10,0,1,0)
  805. if freezetime == 0 then
  806. frozen = false
  807. end
  808. wait(0.1)
  809. else
  810. Text2.TextColor3 = inactivecolor
  811. freezetime = math.clamp(freezetime+0.1,0,10)
  812. F2.Size = UDim2.new(freezetime/10,0,1,0)
  813. wait(0.1)
  814. end
  815. end
  816. end)()
  817. ]],e)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement