TheUnknownDiscord

Untitled

Sep 13th, 2021 (edited)
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. View = Instance.new("Seat", owner.Character)
  2. gun = Instance.new("Part", owner.Character)
  3. gun.Size = Vector3.new(1,1,3)
  4. Bullet = Instance.new("Part", owner.Character)
  5. Bullet.Position = Vector3.new(1000000,1000000,1000000)
  6. Bullet.Anchored = true
  7. Bullet.CanCollide = false
  8. Bullet2 = Instance.new("Part", owner.Character)
  9. Bullet2.Position = Vector3.new(1000000,1000000,1000000)
  10. Bullet2.Anchored = true
  11. Bullet2.CanCollide = false
  12. View.Name = "ea"
  13. local Hit = Instance.new("Sound", gun)
  14. Hit.SoundId = "rbxassetid://7127178250"
  15. Hit.Volume = 0
  16. local Gaming = Instance.new("Sound", gun)
  17. Gaming.SoundId = "rbxassetid://6544927564"
  18. Gaming.Volume = 10
  19. Gaming:Play()
  20. Hit.Looped = true
  21. Hit:Play()
  22. local power = Instance.new("Sound", gun)
  23. power.SoundId = "rbxassetid://6742297936"
  24. power.Volume = 1
  25. local start = Instance.new("Sound", gun)
  26. start.SoundId = "rbxassetid://7380658325"
  27. start.Volume = 1
  28. local endlol = Instance.new("Sound", gun)
  29. endlol.SoundId = "rbxassetid://7380658184"
  30. endlol.Volume = 1
  31. local E2 = Instance.new("RemoteEvent", owner.Character)
  32. E2.Name = "The"
  33. local E = Instance.new("RemoteEvent", owner.Character)
  34. E.Name = "shootlol"
  35. local Eagain = Instance.new("RemoteEvent", owner.Character)
  36. Eagain.Name = "shootlol2"
  37. local Elol = Instance.new("RemoteEvent", owner.Character)
  38. Elol.Name = "sounds"
  39. View.Anchored = true
  40. View.BottomSurface = Enum.SurfaceType.Smooth
  41. View.TopSurface = Enum.SurfaceType.Smooth
  42. Mesh = Instance.new("SpecialMesh")
  43. Mesh.Parent = View
  44. Mesh.MeshId = "http://www.roblox.com/asset/?id=901143326"
  45. Mesh2 = Instance.new("SpecialMesh")
  46. Mesh2.Parent = gun
  47. Mesh2.MeshId = "http://www.roblox.com/asset/?id=1809269364"
  48. View.BrickColor = BrickColor.new("Black")
  49. gun.BrickColor = BrickColor.new("Black")
  50. Bullet.BrickColor = BrickColor.new("Bright yellow")
  51. Mesh.Scale = Vector3.new(0.0625, 0.0625, 0.0625)
  52. Mesh.Offset = Vector3.new(0, 1.9735, 0)
  53. Weld4 = Instance.new("Weld", View)
  54. Weld4.Part0 = gun
  55. Weld4.Part1 = View
  56. Weld4.C0 = CFrame.new(1.5,0,-5.5) * CFrame.Angles(0,135,0)
  57. wait(0.5)
  58. NLS([[
  59. local view = owner.Character:WaitForChild("ea")
  60. view.Transparency = 1
  61. marble = Instance.new("Part", owner.Character)
  62. marble.Position = Vector3.new(0, 10, 0)
  63. marble.CanCollide = false
  64. Mesh2 = Instance.new("SpecialMesh")
  65. Mesh2.Parent = marble
  66. Mesh2.MeshId = "http://www.roblox.com/asset/?id=901143326"
  67. marble.BrickColor = BrickColor.new("Black")
  68. Mesh2.Scale = Vector3.new(0.0625, 0.0625, 0.0625)
  69. Mesh2.Offset = Vector3.new(0, 1.9735, 0)
  70. owner.Character.Humanoid.RequiresNeck = false
  71. workspace.CurrentCamera.CameraSubject = marble
  72. marble.BottomSurface = Enum.SurfaceType.Smooth
  73. marble.TopSurface = Enum.SurfaceType.Smooth
  74. workspace.CurrentCamera.CameraSubject = marble
  75. mouse = owner:GetMouse()
  76. wait(0.125)
  77. local velocitylol = Instance.new("BodyVelocity", marble)
  78.  
  79. local movez = 0
  80.  
  81. mouse.KeyDown:connect(function(key)
  82. key = key:lower()
  83. if key == "w" then
  84. movez = movez + 32
  85. elseif key == "s" then
  86. movez = movez - 32
  87. end
  88. end)
  89.  
  90. mouse.KeyUp:connect(function(key)
  91. key = key:lower()
  92. if key == "w" then
  93. movez = movez - 32
  94. elseif key == "s" then
  95. movez = movez + 32
  96. end
  97. end)
  98. wait(0.5)
  99. local bg = Instance.new("BodyGyro",marble)
  100. bg.D = 100
  101. bg.P = 10000
  102. bg.MaxTorque = Vector3.new(400000, 400000, 400000)
  103. coroutine.wrap(function()
  104. while true do
  105. task.wait()
  106. Camera = workspace.CurrentCamera
  107. velocitylol.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  108. velocitylol.Velocity = Camera.CFrame.LookVector * movez
  109. bg.cframe = CFrame.new(Camera.CFrame.Position, marble.CFrame.Position)
  110. end
  111. end)()
  112. local bp = Instance.new("BodyPosition",marble)
  113. bp.D = 100
  114. bp.P = 0
  115. coroutine.wrap(function()
  116. while true do
  117. task.wait()
  118. if movez == "0" then
  119. velocitylol.MaxForce = Vector3.new(0,0,0)
  120. bp.P = 10000
  121. bp.position = marble.Position
  122. else
  123. bp.P = 0
  124. end
  125. end
  126. end)()
  127. local E2 = owner.Character:WaitForChild("The")
  128.  
  129. coroutine.wrap(function()
  130. while true do
  131. task.wait()
  132. local pos = marble.CFrame
  133. E2:FireServer(pos)
  134. end
  135. end)()
  136. local userInputService = game:GetService("UserInputService")
  137. local function Jump()
  138. owner.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
  139. end
  140.  
  141. userInputService.JumpRequest:Connect(Jump)
  142. local E = owner.Character:WaitForChild("shootlol")
  143. local Eagain = owner.Character:WaitForChild("shootlol2")
  144. local Elol = owner.Character:WaitForChild("sounds")
  145. cycle = 0
  146. mouse.KeyDown:connect(function(key)
  147. key = key:lower()
  148. if key == "q" then
  149. cycle = cycle - 1
  150. if cycle == -1 then
  151. cycle = 1
  152. end
  153. end
  154. end)
  155.  
  156. mouse.KeyDown:connect(function(key)
  157. key = key:lower()
  158. if key == "e" then
  159. cycle = cycle + 1
  160. if cycle == 2 then
  161. cycle = 0
  162. end
  163. end
  164. end)
  165.  
  166. mouse.Button1Down:Connect(function()
  167. if cycle == 0 then
  168. Elol:FireServer("down")
  169. wait(0.87)
  170. down = true
  171. elseif cycle == 1 then
  172. Eagain:FireServer("down")
  173. wait(1)
  174. down2 = true
  175. wait(1.5)
  176. down2 = false
  177. Eagain:FireServer("down")
  178. end
  179. end)
  180. mouse.Button1Up:Connect(function()
  181. down = false
  182. Elol:FireServer("down")
  183. end)
  184. coroutine.wrap(function()
  185. while true do
  186. task.wait()
  187. if down then
  188. local position = mouse.Hit.Position
  189. E:FireServer(position)
  190. end
  191. end
  192. end)()
  193. ]],owner.PlayerGui)
  194. wait(0.1)
  195. function Position(player, pos)
  196. View.CFrame = pos
  197. end
  198. E2.OnServerEvent:Connect(Position)
  199. View:Sit(owner.Character.Humanoid)
  200. runservice = game:GetService("RunService")
  201. local billboardgame = Instance.new("BillboardGui", owner.character.Head)
  202. billboardgame.Adornee = owner.character.Head
  203. billboardgame.StudsOffset = Vector3.new(-1, 4, 0)
  204. billboardgame.Size = UDim2.new(2,0,1,0)
  205. billboardgame.Name = "gaming"
  206. local textgame = Instance.new("TextBox", billboardgame)
  207. textgame.BackgroundTransparency = 1
  208. textgame.TextSize = 40
  209. textgame.TextStrokeTransparency = 0.5
  210. textgame.Size = billboardgame.Size
  211. textgame.Font = "Arcade"
  212. textgame.TextColor3 = Color3.fromRGB(245, 205, 48)
  213. textgame.TextStrokeColor3 = Color3.fromRGB(139, 112, 6)
  214. textgame.Text = "Gaming Chai r"
  215. local clickSound = Instance.new("Sound", owner.Character.Head)
  216. clickSound.Volume = 2
  217. clickSound.SoundId = "rbxassetid://4724430129"
  218. owner.Chatted:connect(function(butwhathechatted)
  219. if owner.character.Head:findFirstChild("chat") then
  220. owner.character.Head:findFirstChild("chat"):destroy()
  221. end
  222. local chatopen = Instance.new("Sound", owner.Character.Head)
  223. chatopen.Volume = 1
  224. chatopen.SoundId = "rbxassetid://1293432625"
  225. chatopen:play()
  226. local chatclose = Instance.new("Sound", owner.Character.Head)
  227. chatclose.Volume = 1
  228. chatclose.SoundId = "rbxassetid://1293432192"
  229. local billboard = Instance.new("BillboardGui", owner.character.Head)
  230. billboard.Adornee = owner.character.Head
  231. billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
  232. billboard.Size = UDim2.new(2,0,1,0)
  233. billboard.Name = "chat"
  234. local text = Instance.new("TextBox", billboard)
  235. text.BackgroundTransparency = 1
  236. text.TextSize = 25
  237. text.TextStrokeTransparency = 0.5
  238. text.Size = billboard.Size
  239. text.Font = "Arcade"
  240. text.TextColor3 = Color3.fromRGB(245, 205, 48)
  241. text.TextStrokeColor3 = Color3.fromRGB(25, 25, 25)
  242. text.Text = butwhathechatted
  243. for i = 1, #butwhathechatted do
  244. text.Text = string.sub(butwhathechatted,1,i)
  245. clickSound.PlaybackSpeed = math.random(70, 185)/100
  246. wait(0.125)
  247. clickSound:Play()
  248. end
  249. text.Text = butwhathechatted
  250. coroutine.wrap(function()
  251. wait(3)
  252. for i = 1,50 do
  253. billboard.StudsOffset = billboard.StudsOffset - Vector3.new(0,-0.01,0)
  254. text.TextTransparency = text.TextTransparency + 0.02
  255. text.TextStrokeTransparency = text.TextStrokeTransparency + 0.02
  256. runservice.Stepped:wait()
  257. end
  258. billboard:destroy()
  259. chatclose:play()
  260. end)()
  261. end)
  262. E.OnServerEvent:Connect(function(player, position)
  263. local origin = gun.Position
  264. local direction = (position - origin).Unit*300
  265. local result = game.Workspace:Raycast(origin, direction)
  266.  
  267. local intersection = result and result.Position or origin + direction
  268. local distance = (origin - intersection).Magnitude
  269.  
  270. local bullet_clone = Bullet:Clone()
  271. bullet_clone.Size = Vector3.new(0.1, 0.1, distance)
  272. bullet_clone.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance/2)
  273. bullet_clone.Parent = game.Workspace
  274.  
  275. if result then
  276. local part = result.Instance
  277. local humanoid = part.Parent:FindFirstChild("Humanoid") or part.Parent.Parent:FindFirstChild("Humanoid")
  278.  
  279. if humanoid then
  280. if humanoid ~= owner.Character.Humanoid then
  281. humanoid:TakeDamage(10)
  282. end
  283. end
  284. end
  285. wait(0.25)
  286. bullet_clone:Destroy()
  287. end)
  288. Eagain.OnServerEvent:Connect(function(player, position2)
  289. local origin2 = gun.Position + Vector3.new(0,0,5.5)
  290. local direction2 = (position2 - origin2).Unit*300
  291. local result2 = game.Workspace:Raycast(origin2, direction2)
  292.  
  293. local intersection2 = result2 and result2.Position or origin2 + direction2
  294. local distance2 = (origin2 - intersection2).Magnitude
  295.  
  296. local bullet_clone2 = Bullet2:Clone()
  297. bullet_clone2.Size = Vector3.new(2.5, 2.5, distance2)
  298. bullet_clone2.CFrame = CFrame.new(origin2, intersection2)*CFrame.new(0, 0, -distance2/2)
  299. bullet_clone2.Parent = game.Workspace
  300.  
  301. if result2 then
  302. local part2 = result2.Instance
  303. local humanoid2 = part2.Parent:FindFirstChild("Humanoid") or part2.Parent.Parent:FindFirstChild("Humanoid")
  304.  
  305. if humanoid2 then
  306. if humanoid2 ~= owner.Character.Humanoid then
  307. humanoid2:Destroy()
  308. end
  309. end
  310. end
  311. wait(0.25)
  312. bullet_clone2:Destroy()
  313. end)
  314. down = false
  315. local function soundson()
  316. if not down then
  317. start:Play()
  318. wait(0.87)
  319. Hit.Volume = 1
  320. wait()
  321. start:Stop()
  322. wait(0.1)
  323. down = true
  324. while down do
  325. task.wait()
  326. Weld4.C0 = Weld4.C0 * CFrame.Angles(0,0,0.2)
  327. end
  328. elseif down then
  329. Hit.Volume = 0
  330. endlol:Play()
  331. wait(0.1)
  332. down = false
  333. end
  334. end
  335. Elol.OnServerEvent:Connect(soundson)
Add Comment
Please, Sign In to add comment