Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- View = Instance.new("Seat", owner.Character)
- gun = Instance.new("Part", owner.Character)
- gun.Size = Vector3.new(1,1,3)
- Bullet = Instance.new("Part", owner.Character)
- Bullet.Position = Vector3.new(1000000,1000000,1000000)
- Bullet.Anchored = true
- Bullet.CanCollide = false
- Bullet2 = Instance.new("Part", owner.Character)
- Bullet2.Position = Vector3.new(1000000,1000000,1000000)
- Bullet2.Anchored = true
- Bullet2.CanCollide = false
- View.Name = "ea"
- local Hit = Instance.new("Sound", gun)
- Hit.SoundId = "rbxassetid://7127178250"
- Hit.Volume = 0
- local Gaming = Instance.new("Sound", gun)
- Gaming.SoundId = "rbxassetid://6544927564"
- Gaming.Volume = 10
- Gaming:Play()
- Hit.Looped = true
- Hit:Play()
- local power = Instance.new("Sound", gun)
- power.SoundId = "rbxassetid://6742297936"
- power.Volume = 1
- local start = Instance.new("Sound", gun)
- start.SoundId = "rbxassetid://7380658325"
- start.Volume = 1
- local endlol = Instance.new("Sound", gun)
- endlol.SoundId = "rbxassetid://7380658184"
- endlol.Volume = 1
- local E2 = Instance.new("RemoteEvent", owner.Character)
- E2.Name = "The"
- local E = Instance.new("RemoteEvent", owner.Character)
- E.Name = "shootlol"
- local Eagain = Instance.new("RemoteEvent", owner.Character)
- Eagain.Name = "shootlol2"
- local Elol = Instance.new("RemoteEvent", owner.Character)
- Elol.Name = "sounds"
- View.Anchored = true
- View.BottomSurface = Enum.SurfaceType.Smooth
- View.TopSurface = Enum.SurfaceType.Smooth
- Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = View
- Mesh.MeshId = "http://www.roblox.com/asset/?id=901143326"
- Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = gun
- Mesh2.MeshId = "http://www.roblox.com/asset/?id=1809269364"
- View.BrickColor = BrickColor.new("Black")
- gun.BrickColor = BrickColor.new("Black")
- Bullet.BrickColor = BrickColor.new("Bright yellow")
- Mesh.Scale = Vector3.new(0.0625, 0.0625, 0.0625)
- Mesh.Offset = Vector3.new(0, 1.9735, 0)
- Weld4 = Instance.new("Weld", View)
- Weld4.Part0 = gun
- Weld4.Part1 = View
- Weld4.C0 = CFrame.new(1.5,0,-5.5) * CFrame.Angles(0,135,0)
- wait(0.5)
- NLS([[
- local view = owner.Character:WaitForChild("ea")
- view.Transparency = 1
- marble = Instance.new("Part", owner.Character)
- marble.Position = Vector3.new(0, 10, 0)
- marble.CanCollide = false
- Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = marble
- Mesh2.MeshId = "http://www.roblox.com/asset/?id=901143326"
- marble.BrickColor = BrickColor.new("Black")
- Mesh2.Scale = Vector3.new(0.0625, 0.0625, 0.0625)
- Mesh2.Offset = Vector3.new(0, 1.9735, 0)
- owner.Character.Humanoid.RequiresNeck = false
- workspace.CurrentCamera.CameraSubject = marble
- marble.BottomSurface = Enum.SurfaceType.Smooth
- marble.TopSurface = Enum.SurfaceType.Smooth
- workspace.CurrentCamera.CameraSubject = marble
- mouse = owner:GetMouse()
- wait(0.125)
- local velocitylol = Instance.new("BodyVelocity", marble)
- local movez = 0
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "w" then
- movez = movez + 32
- elseif key == "s" then
- movez = movez - 32
- end
- end)
- mouse.KeyUp:connect(function(key)
- key = key:lower()
- if key == "w" then
- movez = movez - 32
- elseif key == "s" then
- movez = movez + 32
- end
- end)
- wait(0.5)
- local bg = Instance.new("BodyGyro",marble)
- bg.D = 100
- bg.P = 10000
- bg.MaxTorque = Vector3.new(400000, 400000, 400000)
- coroutine.wrap(function()
- while true do
- task.wait()
- Camera = workspace.CurrentCamera
- velocitylol.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
- velocitylol.Velocity = Camera.CFrame.LookVector * movez
- bg.cframe = CFrame.new(Camera.CFrame.Position, marble.CFrame.Position)
- end
- end)()
- local bp = Instance.new("BodyPosition",marble)
- bp.D = 100
- bp.P = 0
- coroutine.wrap(function()
- while true do
- task.wait()
- if movez == "0" then
- velocitylol.MaxForce = Vector3.new(0,0,0)
- bp.P = 10000
- bp.position = marble.Position
- else
- bp.P = 0
- end
- end
- end)()
- local E2 = owner.Character:WaitForChild("The")
- coroutine.wrap(function()
- while true do
- task.wait()
- local pos = marble.CFrame
- E2:FireServer(pos)
- end
- end)()
- local userInputService = game:GetService("UserInputService")
- local function Jump()
- owner.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping, false)
- end
- userInputService.JumpRequest:Connect(Jump)
- local E = owner.Character:WaitForChild("shootlol")
- local Eagain = owner.Character:WaitForChild("shootlol2")
- local Elol = owner.Character:WaitForChild("sounds")
- cycle = 0
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "q" then
- cycle = cycle - 1
- if cycle == -1 then
- cycle = 1
- end
- end
- end)
- mouse.KeyDown:connect(function(key)
- key = key:lower()
- if key == "e" then
- cycle = cycle + 1
- if cycle == 2 then
- cycle = 0
- end
- end
- end)
- mouse.Button1Down:Connect(function()
- if cycle == 0 then
- Elol:FireServer("down")
- wait(0.87)
- down = true
- elseif cycle == 1 then
- Eagain:FireServer("down")
- wait(1)
- down2 = true
- wait(1.5)
- down2 = false
- Eagain:FireServer("down")
- end
- end)
- mouse.Button1Up:Connect(function()
- down = false
- Elol:FireServer("down")
- end)
- coroutine.wrap(function()
- while true do
- task.wait()
- if down then
- local position = mouse.Hit.Position
- E:FireServer(position)
- end
- end
- end)()
- ]],owner.PlayerGui)
- wait(0.1)
- function Position(player, pos)
- View.CFrame = pos
- end
- E2.OnServerEvent:Connect(Position)
- View:Sit(owner.Character.Humanoid)
- runservice = game:GetService("RunService")
- local billboardgame = Instance.new("BillboardGui", owner.character.Head)
- billboardgame.Adornee = owner.character.Head
- billboardgame.StudsOffset = Vector3.new(-1, 4, 0)
- billboardgame.Size = UDim2.new(2,0,1,0)
- billboardgame.Name = "gaming"
- local textgame = Instance.new("TextBox", billboardgame)
- textgame.BackgroundTransparency = 1
- textgame.TextSize = 40
- textgame.TextStrokeTransparency = 0.5
- textgame.Size = billboardgame.Size
- textgame.Font = "Arcade"
- textgame.TextColor3 = Color3.fromRGB(245, 205, 48)
- textgame.TextStrokeColor3 = Color3.fromRGB(139, 112, 6)
- textgame.Text = "Gaming Chai r"
- local clickSound = Instance.new("Sound", owner.Character.Head)
- clickSound.Volume = 2
- clickSound.SoundId = "rbxassetid://4724430129"
- owner.Chatted:connect(function(butwhathechatted)
- if owner.character.Head:findFirstChild("chat") then
- owner.character.Head:findFirstChild("chat"):destroy()
- end
- local chatopen = Instance.new("Sound", owner.Character.Head)
- chatopen.Volume = 1
- chatopen.SoundId = "rbxassetid://1293432625"
- chatopen:play()
- local chatclose = Instance.new("Sound", owner.Character.Head)
- chatclose.Volume = 1
- chatclose.SoundId = "rbxassetid://1293432192"
- local billboard = Instance.new("BillboardGui", owner.character.Head)
- billboard.Adornee = owner.character.Head
- billboard.StudsOffset = Vector3.new(-1, 2.5, 0)
- billboard.Size = UDim2.new(2,0,1,0)
- billboard.Name = "chat"
- local text = Instance.new("TextBox", billboard)
- text.BackgroundTransparency = 1
- text.TextSize = 25
- text.TextStrokeTransparency = 0.5
- text.Size = billboard.Size
- text.Font = "Arcade"
- text.TextColor3 = Color3.fromRGB(245, 205, 48)
- text.TextStrokeColor3 = Color3.fromRGB(25, 25, 25)
- text.Text = butwhathechatted
- for i = 1, #butwhathechatted do
- text.Text = string.sub(butwhathechatted,1,i)
- clickSound.PlaybackSpeed = math.random(70, 185)/100
- wait(0.125)
- clickSound:Play()
- end
- text.Text = butwhathechatted
- coroutine.wrap(function()
- wait(3)
- for i = 1,50 do
- billboard.StudsOffset = billboard.StudsOffset - Vector3.new(0,-0.01,0)
- text.TextTransparency = text.TextTransparency + 0.02
- text.TextStrokeTransparency = text.TextStrokeTransparency + 0.02
- runservice.Stepped:wait()
- end
- billboard:destroy()
- chatclose:play()
- end)()
- end)
- E.OnServerEvent:Connect(function(player, position)
- local origin = gun.Position
- local direction = (position - origin).Unit*300
- local result = game.Workspace:Raycast(origin, direction)
- local intersection = result and result.Position or origin + direction
- local distance = (origin - intersection).Magnitude
- local bullet_clone = Bullet:Clone()
- bullet_clone.Size = Vector3.new(0.1, 0.1, distance)
- bullet_clone.CFrame = CFrame.new(origin, intersection)*CFrame.new(0, 0, -distance/2)
- bullet_clone.Parent = game.Workspace
- if result then
- local part = result.Instance
- local humanoid = part.Parent:FindFirstChild("Humanoid") or part.Parent.Parent:FindFirstChild("Humanoid")
- if humanoid then
- if humanoid ~= owner.Character.Humanoid then
- humanoid:TakeDamage(10)
- end
- end
- end
- wait(0.25)
- bullet_clone:Destroy()
- end)
- Eagain.OnServerEvent:Connect(function(player, position2)
- local origin2 = gun.Position + Vector3.new(0,0,5.5)
- local direction2 = (position2 - origin2).Unit*300
- local result2 = game.Workspace:Raycast(origin2, direction2)
- local intersection2 = result2 and result2.Position or origin2 + direction2
- local distance2 = (origin2 - intersection2).Magnitude
- local bullet_clone2 = Bullet2:Clone()
- bullet_clone2.Size = Vector3.new(2.5, 2.5, distance2)
- bullet_clone2.CFrame = CFrame.new(origin2, intersection2)*CFrame.new(0, 0, -distance2/2)
- bullet_clone2.Parent = game.Workspace
- if result2 then
- local part2 = result2.Instance
- local humanoid2 = part2.Parent:FindFirstChild("Humanoid") or part2.Parent.Parent:FindFirstChild("Humanoid")
- if humanoid2 then
- if humanoid2 ~= owner.Character.Humanoid then
- humanoid2:Destroy()
- end
- end
- end
- wait(0.25)
- bullet_clone2:Destroy()
- end)
- down = false
- local function soundson()
- if not down then
- start:Play()
- wait(0.87)
- Hit.Volume = 1
- wait()
- start:Stop()
- wait(0.1)
- down = true
- while down do
- task.wait()
- Weld4.C0 = Weld4.C0 * CFrame.Angles(0,0,0.2)
- end
- elseif down then
- Hit.Volume = 0
- endlol:Play()
- wait(0.1)
- down = false
- end
- end
- Elol.OnServerEvent:Connect(soundson)
Add Comment
Please, Sign In to add comment