Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local Player = game.Players.LocalPlayer
- local mouse = Player:GetMouse()
- a = 0
- mouse.KeyDown:connect(function(key)
- if key == "l" then
- for i, v in pairs(game.Workspace:GetChildren()) do
- if v.Name == "loose camera 1" then
- v:remove()
- end
- end
- meh = Instance.new("Part")
- meh.Name = ("loose camera 1")
- meh.Parent = game.Workspace
- meh.CanCollide = false
- meh.Anchored = true
- meh.Transparency = 1
- meh.Size = Vector3.new(1,1,1)
- meh.Position = (game.Players.LocalPlayer.Character.Head.Position + Vector3.new(0,3,0))
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "n" then
- pol = ("loose camera 1")
- game.Workspace.CurrentCamera.CameraSubject = (game.Workspace[pol])
- game.Workspace.CurrentCamera.CameraType = "Custom"
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "m" then
- game.Workspace.CurrentCamera.CameraSubject = game.Players.LocalPlayer.Character.Humanoid
- game.Workspace.CurrentCamera.CameraType = "Custom"
- end
- end)
- mouse.KeyDown:connect(function(key)
- if key == "k" then
- pol = "loose camera 1"
- me = game.Players.LocalPlayer
- me.Character.HumanoidRootPart.CFrame = CFrame.new(game.Workspace[pol].Position + Vector3.new(0,2,0))
- end
- end)
- camera=Instance.new("HopperBin",game.Players.LocalPlayer.Backpack)
- camera.Name = "Teleport Camera"
- function teleportPlayer(pos)
- local player = game.Players.LocalPlayer
- if player == nil or player.Character == nil then return end
- cam = "loose camera 1"
- local char = game.Workspace[cam]
- char.Position = (pos + Vector3.new(0,5,0))
- end
- enabled = true
- function onButton1Down(mouse)
- if not enabled then
- return
- end
- local player = game.Players.LocalPlayer
- if player == nil then return end
- local cf = mouse.Hit
- teleportPlayer(cf.p)
- end
- function onSelected(mouse)
- mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
- mouse.Button1Down:connect(function() onButton1Down(mouse) end)
- end
- camera.Selected:connect(onSelected)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement