Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local nl=NLS([[
- task.wait()
- script.Parent=nil
- local c=game:GetService("Chat"):WaitForChild('#'..game.Players.LocalPlayer.Name)
- local p=game:GetService("Players")['LocalPlayer']:GetMouse()
- local rt=Instance.new("Part")
- local cm=Instance.new("Part")
- rt.CFrame=CFrame.new(0,3,0)
- local spd=.2
- local W,A,S,D
- p.KeyDown:Connect(function(k)
- if k=='w'then
- W=true
- repeat task.wait()
- rt.CFrame=rt.CFrame*CFrame.new(0,0,-spd)
- until W~=true
- end
- if k=='a'then
- A=true
- repeat task.wait()
- rt.CFrame=rt.CFrame*CFrame.new(-spd,0,0)
- until A~=true
- end
- if k=='s'then
- S=true
- repeat task.wait()
- rt.CFrame=rt.CFrame*CFrame.new(0,0,spd)
- until S~=true
- end
- if k=='d'then
- D=true
- repeat task.wait()
- rt.CFrame=rt.CFrame*CFrame.new(spd,0,0)
- until D~=true
- end
- end)
- p.KeyUp:Connect(function(k)
- if k=='w'then W=nil end
- if k=='a'then A=nil end
- if k=='s'then S=nil end
- if k=='d'then D=nil end
- end)
- game:GetService("RunService")['RenderStepped']:Connect(function()
- cm.CFrame=workspace.CurrentCamera.CFrame
- rt.Orientation=Vector3.new(0,cm.Orientation.Y,0)
- workspace['CurrentCamera']['CameraSubject']=rt
- if W or A or S or D then
- c:FireServer(rt.CFrame)
- end
- end)
- ]],owner['Backpack'])
- for i,x in pairs(game:GetService("Chat"):children())do
- if x.Name=='#'..owner.Name then x:Destroy()end
- end
- local r=Instance.new("RemoteEvent")
- r.Name="#"..owner.Name
- r.Parent=game['Chat']
- local rt=Instance.new("Part")
- rt.Anchored=true
- rt.Parent=workspace
- rt.Size=Vector3.new(2,2,2)
- local sn=0
- local cf=CFrame.new()
- r.OnServerEvent:Connect(function(p,v)
- sn+=1
- if p.Name==owner.Name then else return end
- cf=v
- end)
- local x,y,z=0,0,0
- game:GetService("RunService")['Heartbeat']:Connect(function()
- sn+=1
- x+=1
- y+=2
- z+=4
- local cf2=CFrame.new(0,math.sin(sn/35)/3,0)*CFrame.Angles(math.rad(x),math.rad(y),math.rad(z))
- rt.CFrame=rt.CFrame:Lerp(cf*cf2,.2)
- end)
- owner.Character:Destroy()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement