Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- wait()
- player = owner
- name=nil
- oldpos = nil
- NAme=player.Name
- local lerp=.3
- function stuff()
- NLS([[
- player = game:GetService("Players").LocalPlayer
- mouse = player:GetMouse()
- camstuff = false
- forward=false
- backward=false
- left=false
- right=false
- up=false
- down=false
- shooting=false
- Speed=3
- rem_1 = player.Backpack:waitForChild("1")
- camrem = player.Backpack:waitForChild("fgds")
- rem_2 = player.Backpack:waitForChild("2")
- rem_3 = player.Backpack:waitForChild("3")
- rem_4 = player.Backpack:waitForChild("4")
- rem_5 = player.Backpack:waitForChild("5")
- rem_6 = player.Backpack:waitForChild("6")
- rem_7 = player.Backpack:waitForChild("7")
- rem_8 = player.Backpack:waitForChild("8")
- rem_9 = player.Backpack:waitForChild("9")
- rem_10 = player.Backpack:waitForChild("10")
- rem_11 = player.Backpack:waitForChild("11")
- rem_12 = player.Backpack:waitForChild("12")
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="k" then
- rem_10:FireServer('reset')
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="w" then
- camstuff=false
- forward=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="w" then
- forward=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="s" then
- camstuff=false
- backward=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="s" then
- backward=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="a" then
- camstuff=false
- left=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="a" then
- left=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="d" then
- camstuff=false
- right=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="d" then
- right=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="p" then
- camstuff=false
- rem_5:FireServer("reset")
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="z" then
- camstuff=false
- rem_6:FireServer(mouse.Hit)
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="e" then
- camstuff=false
- up=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="e" then
- up=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="q" then
- camstuff=false
- down=true
- end
- end)
- mouse.KeyUp:Connect(function(kk)
- kk:lower()
- if kk=="q" then
- down=false
- end
- end)
- mouse.KeyDown:Connect(function(kk)
- kk:lower()
- if kk=="l" then
- if camstuff==false then
- camstuff=true
- else
- camstuff=false
- end
- end
- end)
- mouse.Button1Down:Connect(function(kk)
- shooting=true
- end)
- mouse.Button1Up:Connect(function(kk)
- shooting=false
- end)
- run = game:GetService("RunService")
- sec=2
- run.Heartbeat:Connect(function(ok)
- local WHAT=sec * ok
- local part = workspace.Terrain:FindFirstChild(player.Name)
- if part then
- local cam = workspace.CurrentCamera
- local camOrientation = cam.CFrame-cam.CFrame.Position
- cam.CameraSubject=part
- cam.HeadLocked=true
- if camstuff==true then --CoordinateFrame
- camrem:FireServer(CFrame.new(part.Position)*camOrientation)
- end
- if forward==true then
- rem_1:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,0,-Speed))
- end
- if backward==true then
- rem_2:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,0,Speed))
- end
- if left==true then
- rem_3:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(-Speed,0,0))
- end
- if right==true then
- rem_4:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(Speed,0,0))
- end
- if up==true then
- rem_7:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,Speed,0))
- end
- if down==true then
- rem_8:FireServer(CFrame.new(part.Position)*camOrientation*CFrame.new(0,-Speed,0))
- end
- if shooting==true then
- camstuff=true
- rem_11:FireServer(mouse.Hit)
- rem_12:FireServer(mouse.Target)
- end
- end
- end)
- ]],player.Backpack)
- end
- function Kill(die)
- die:BreakJoints()
- for i,g in pairs(die:GetDescendants()) do
- if g:IsA("BasePart") then
- local dies = Instance.new("Sound",g) dies.SoundId="rbxassetid://340722848" dies.PlayOnRemove=true dies.Volume=10
- local dead= Instance.new("Part",workspace) dead.CFrame = g.CFrame dead.Size=g.Size dead.Color=Color3.new(0.666667, 0, 0) dead.Material=Enum.Material.Glass dead.Transparency=.3 dead.CanCollide=false dead.Name = math.random()..g.Name
- local effect = Instance.new("Explosion",workspace) effect.Position=dead.Position effect.Visible=false
- local mesh = g:FindFirstChildOfClass("SpecialMesh")
- if mesh then
- mesh.Parent=dead
- end
- g:Destroy()
- end
- end
- end
- local run = game:GetService("RunService")
- see=2
- run.Heartbeat:Connect(function(ok)
- local haha = see * ok
- local pla = game.Players:FindFirstChild(player.Name)
- if pla then
- local cha = workspace:FindFirstChild(player.Name)
- if cha then
- char()
- end
- local rem = player.Backpack:FindFirstChild('fgds')
- if rem then
- else
- char()
- end
- local rem1 = player.Backpack:FindFirstChild('1')
- if rem1 then
- else
- char()
- end
- local rem2 = player.Backpack:FindFirstChild('2')
- if rem2 then
- else
- char()
- end
- local rem3 = player.Backpack:FindFirstChild('3')
- if rem3 then
- else
- char()
- end
- local rem4 = player.Backpack:FindFirstChild('4')
- if rem4 then
- else
- char()
- end
- local rem5 = player.Backpack:FindFirstChild('5')
- if rem5 then
- else
- char()
- end
- local rem6 = player.Backpack:FindFirstChild('6')
- if rem6 then
- else
- char()
- end
- local rem7 = player.Backpack:FindFirstChild('7')
- if rem7 then
- else
- char()
- end
- local rem8 = player.Backpack:FindFirstChild('8')
- if rem8 then
- else
- char()
- end
- local rem9 = player.Backpack:FindFirstChild('9')
- if rem9 then
- else
- char()
- end
- local rem10 = player.Backpack:FindFirstChild('10')
- if rem10 then
- else
- char()
- end
- end
- end)
- function remotes()
- local rem_1 = Instance.new("RemoteEvent",player.Backpack) rem_1.Name="1"
- local camrem = Instance.new("RemoteEvent",player.Backpack) camrem.Name="fgds"
- local rem_2 = Instance.new("RemoteEvent",player.Backpack) rem_2.Name="2"
- local rem_3 = Instance.new("RemoteEvent",player.Backpack) rem_3.Name="3"
- local rem_4 = Instance.new("RemoteEvent",player.Backpack) rem_4.Name="4"
- local rem_5 = Instance.new("RemoteEvent",player.Backpack) rem_5.Name="5"
- local rem_6 = Instance.new("RemoteEvent",player.Backpack) rem_6.Name="6"
- local rem_7 = Instance.new("RemoteEvent",player.Backpack) rem_7.Name="7"
- local rem_8 = Instance.new("RemoteEvent",player.Backpack) rem_8.Name="8"
- local rem_9 = Instance.new("RemoteEvent",player.Backpack) rem_9.Name="9"
- local rem_10 = Instance.new("RemoteEvent",player.Backpack) rem_10.Name="10"
- local rem_11 = Instance.new("RemoteEvent",player.Backpack) rem_11.Name="11"
- local rem_12 = Instance.new("RemoteEvent",player.Backpack) rem_12.Name="12"
- camrem.OnServerEvent:Connect(function(pl, Position)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=Position
- end
- end)
- rem_1.OnServerEvent:Connect(function(plr, FORWARD)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(FORWARD,lerp)
- end
- end)
- rem_2.OnServerEvent:Connect(function(plr, BACKWARD)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(BACKWARD,lerp)
- end
- end)
- rem_3.OnServerEvent:Connect(function(plr, LEFT)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(LEFT,lerp)
- end
- end)
- rem_4.OnServerEvent:Connect(function(plr, RIGHT)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(RIGHT,lerp)
- end
- end)
- rem_5.OnServerEvent:Connect(function(plr, YES)
- local pla = workspace.Terrain:FindFirstChild(player.Name)
- if pla then
- pla:Destroy()
- else
- refit()
- end
- end)
- rem_6.OnServerEvent:Connect(function(plr, pos)
- local HHH = workspace.Terrain:FindFirstChild(NAme)
- if HHH then
- HHH.CFrame=pos + Vector3.new(0,3,0)
- end
- end)
- rem_7.OnServerEvent:Connect(function(plr, UP)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(UP,lerp)
- end
- end)
- rem_8.OnServerEvent:Connect(function(plr, DOWN)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(DOWN,lerp)
- end
- end)
- rem_9.OnServerEvent:Connect(function(plr, lookvector)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=HHa.CFrame:Lerp(lookvector,lerp)
- end
- end)
- rem_10.OnServerEvent:Connect(function(plr, newpos)
- player:LoadCharacter() local hum = player.Character:FindFirstChild("HumanoidRootPart")
- if hum then
- oldpos=hum.CFrame
- end
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- HHa.CFrame=oldpos
- end
- end)
- rem_11.OnServerEvent:Connect(function(plr, target)
- local HHa = workspace.Terrain:FindFirstChild(NAme)
- if HHa then
- local coll = ColorSequence.new(Color3.new(0.666667, 0, 0))
- local sound = HHa:FindFirstChildOfClass("Sound")
- if sound then
- sound:Play()
- else
- local shot = Instance.new("Sound",HHa) shot.SoundId="rbxassetid://904440937" shot.Volume=9
- end
- local att = Instance.new("Attachment",workspace.Terrain) att.Position = HHa.Position
- local att2 = Instance.new("Attachment",workspace.Terrain) att2.Position = target.Position
- local beam = Instance.new("Beam",workspace.Terrain) beam.Enabled=true beam.Color = coll
- beam.FaceCamera=true beam.Attachment0 = att beam.Attachment1=att2
- wait(.1)
- beam:Destroy() att2:Destroy() att:Destroy()
- end
- end)
- rem_12.OnServerEvent:Connect(function(plr, target)
- if target.Parent.ClassName == "Model" then
- Kill(target.Parent)
- elseif target.Parent.Parent.ClassName == "Model" then
- Kill(target.Parent.Parent)
- end
- end)
- end
- function char()
- local pla = game.Players:FindFirstChild(player.Name)
- if pla then
- name=string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))..string.char(math.random(1,150))
- local mod = Instance.new("Model") mod.Name=name mod.Parent=nil
- player.Character=mod
- stuff()
- remotes()
- end
- end
- function refit()
- local part = Instance.new("Part",workspace.Terrain) part.Name=NAme part.Anchored=true part.CanCollide=true part.CFrame=oldpos part.Size=Vector3.new(2,1,1)
- local selected = Instance.new("SelectionBox",part) selected.Adornee=part selected.LineThickness=0.015 selected.Color=BrickColor.new("Cyan") selected.Name="lines"
- local rotate = Instance.new("ArcHandles",part) rotate.Adornee=part rotate.Name="selected"
- local face = Instance.new("Decal",part) face.Name='face' face.Texture='rbxasset://textures/face.png'
- end
- game.Players.PlayerAdded:Connect(function(plr)
- if plr.Name==player.Name then
- player=plr
- wait(.2)
- char()
- end
- end)
- if player.Character then
- local hum = player.Character:FindFirstChild("HumanoidRootPart")
- if hum then
- oldpos=hum.CFrame
- char()
- else
- print("too bad")
- end
- end
- second = 1
- run.Heartbeat:Connect(function(HM)
- local what = second * HM
- local HH = workspace.Terrain:FindFirstChild(NAme)
- if HH then
- local selecte = HH:FindFirstChildOfClass('SelectionBox')
- if selecte then
- else
- local selected = Instance.new("SelectionBox",HH) selected.Adornee=HH selected.LineThickness=0.015 selected.Color=BrickColor.new("Cyan") selected.Name="lines"
- end
- local rot = HH:FindFirstChildOfClass("ArcHandles")
- if rot then
- else
- local rotate = Instance.new("ArcHandles",HH) rotate.Adornee=HH rotate.Name="selected"
- end
- local fac = HH:FindFirstChildOfClass("Decal")
- if fac then
- else
- local face = Instance.new("Decal",HH) face.Name='face' face.Texture='rbxasset://textures/face.png'
- end
- HH.Anchored=true
- oldpos=HH.CFrame
- else
- refit()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement