Advertisement
Rumanthan

🐱spectator

May 18th, 2025
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.89 KB | None | 0 0
  1. --meow spectator | v 1.0
  2. print("🐱")
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.  
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144.  
  145.  
  146.  
  147.  
  148.  
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166. --🐱 meow
  167.  
  168. local Players = game:GetService("Players") local LocalPlayer = Players.LocalPlayer local Camera = workspace.CurrentCamera
  169.  
  170. local playerGui = LocalPlayer:WaitForChild("PlayerGui") local char = LocalPlayer.Character or LocalPlayer.CharacterAdded:Wait()
  171.  
  172. local oldGui = playerGui:FindFirstChild("CatSpectatorGUI") if oldGui then oldGui:Destroy() end
  173.  
  174. local gui = Instance.new("ScreenGui", playerGui) gui.Name = "CatSpectatorGUI" gui.ResetOnSpawn = false
  175.  
  176. local function makeCorner(parent, r) local u = Instance.new("UICorner") u.CornerRadius = r or UDim.new(0, 10) u.Parent = parent end
  177.  
  178. local spectateBar = Instance.new("Frame", gui) spectateBar.Size = UDim2.new(0, 250, 0, 40) spectateBar.Position = UDim2.new(0.5, -125, 0, 10) spectateBar.BackgroundColor3 = Color3.fromRGB(255, 105, 180) spectateBar.Visible = false makeCorner(spectateBar)
  179.  
  180. local spectateLabel = Instance.new("TextLabel", spectateBar) spectateLabel.Size = UDim2.new(1, -40, 1, 0) spectateLabel.Position = UDim2.new(0, 0, 0, 0) spectateLabel.BackgroundTransparency = 1 spectateLabel.TextColor3 = Color3.new(1, 1, 1) spectateLabel.TextSize = 18 spectateLabel.FontFace = Font.new("rbxassetid://12187375716", Enum.FontWeight.Bold, Enum.FontStyle.Normal) spectateLabel.Text = "[PlayerName]"
  181.  
  182. local closeBtn = Instance.new("TextButton", spectateBar) closeBtn.Size = UDim2.new(0, 40, 1, 0) closeBtn.Position = UDim2.new(1, -40, 0, 0) closeBtn.BackgroundTransparency = 1 closeBtn.TextColor3 = Color3.new(1, 1, 1) closeBtn.Text = "X" closeBtn.TextSize = 20 closeBtn.FontFace = spectateLabel.FontFace
  183.  
  184. local frame = Instance.new("Frame", gui) frame.Size = UDim2.new(0, 320, 0, 270) frame.Position = UDim2.new(0.5, -160, 0.5, -135) frame.BackgroundColor3 = Color3.fromRGB(255, 182, 193) frame.BorderSizePixel = 0 frame.Active = true frame.Draggable = true makeCorner(frame)
  185.  
  186. local title = Instance.new("TextLabel", frame) title.Size = UDim2.new(1, 0, 0, 40) title.Position = UDim2.new(0, 0, 0, 0) title.BackgroundColor3 = Color3.fromRGB(255, 105, 180) title.BorderSizePixel = 0 title.Text = "Cat Spectator" title.TextColor3 = Color3.new(1, 1, 1) title.FontFace = spectateLabel.FontFace title.TextSize = 24 makeCorner(title)
  187.  
  188. local dropdown = Instance.new("TextButton", frame) dropdown.Size = UDim2.new(1, -20, 0, 35) dropdown.Position = UDim2.new(0, 10, 0, 50) dropdown.BackgroundColor3 = Color3.fromRGB(255, 105, 180) dropdown.TextColor3 = Color3.new(1, 1, 1) dropdown.Text = "Select a player" dropdown.FontFace = title.FontFace dropdown.TextSize = 20 makeCorner(dropdown)
  189.  
  190. local scroll = Instance.new("ScrollingFrame", frame) scroll.Size = UDim2.new(1, -20, 0, 90) scroll.Position = UDim2.new(0, 10, 0, 90) scroll.BackgroundColor3 = Color3.fromRGB(255, 182, 193) scroll.BorderSizePixel = 0 scroll.ScrollBarThickness = 6 scroll.Visible = false makeCorner(scroll)
  191.  
  192. local layout = Instance.new("UIListLayout", scroll) layout.Padding = UDim.new(0, 5)
  193.  
  194. local padding = Instance.new("UIPadding", scroll) padding.PaddingTop = UDim.new(0, 5) padding.PaddingBottom = UDim.new(0, 5) padding.PaddingLeft = UDim.new(0, 5) padding.PaddingRight = UDim.new(0, 5)
  195.  
  196. local unspec = Instance.new("TextButton", frame) unspec.Size = UDim2.new(0.5, -15, 0, 30) unspec.Position = UDim2.new(0, 10, 1, -40) unspec.BackgroundColor3 = Color3.fromRGB(255, 105, 180) unspec.TextColor3 = Color3.new(1, 1, 1) unspec.Text = "Stop Spectating" unspec.FontFace = title.FontFace unspec.TextSize = 18 makeCorner(unspec)
  197.  
  198. local tp = Instance.new("TextButton", frame) tp.Size = UDim2.new(0.5, -15, 0, 30) tp.Position = UDim2.new(0.5, 5, 1, -40) tp.BackgroundColor3 = Color3.fromRGB(255, 105, 180) tp.TextColor3 = Color3.new(1, 1, 1) tp.Text = "Teleport" tp.FontFace = title.FontFace tp.TextSize = 18 makeCorner(tp)
  199.  
  200. local function resetCam() Camera.CameraSubject = LocalPlayer.Character:FindFirstChild("Humanoid") Camera.CameraType = Enum.CameraType.Custom dropdown.Text = "Select a player" spectateBar.Visible = false end
  201.  
  202. unspec.MouseButton1Click:Connect(resetCam) closeBtn.MouseButton1Click:Connect(resetCam)
  203.  
  204. dropdown.MouseButton1Click:Connect(function() scroll.Visible = not scroll.Visible end)
  205.  
  206. local function update() for _, b in pairs(scroll:GetChildren()) do if b:IsA("TextButton") then b:Destroy() end end
  207.  
  208. for _, plr in ipairs(Players:GetPlayers()) do
  209. if plr ~= LocalPlayer then
  210. local btn = Instance.new("TextButton", scroll)
  211. btn.Size = UDim2.new(1, 0, 0, 30)
  212. btn.BackgroundColor3 = Color3.fromRGB(255, 105, 180)
  213. btn.TextColor3 = Color3.new(1, 1, 1)
  214. btn.Text = plr.Name
  215. btn.FontFace = title.FontFace
  216. btn.TextSize = 18
  217. makeCorner(btn, UDim.new(0, 6))
  218.  
  219. btn.MouseButton1Click:Connect(function()
  220. dropdown.Text = plr.Name
  221. scroll.Visible = false
  222. if plr.Character and plr.Character:FindFirstChild("Humanoid") then
  223. Camera.CameraSubject = plr.Character:FindFirstChild("Humanoid")
  224. Camera.CameraType = Enum.CameraType.Custom
  225. spectateLabel.Text = "["..plr.Name.."]"
  226. spectateBar.Visible = true
  227. else
  228. resetCam()
  229. end
  230. end)
  231. end
  232. end
  233.  
  234. scroll.CanvasSize = UDim2.new(0, 0, 0, layout.AbsoluteContentSize.Y + 10)
  235.  
  236. end
  237.  
  238. tp.MouseButton1Click:Connect(function() local name = dropdown.Text local target = Players:FindFirstChild(name) if target and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then local hrp = target.Character.HumanoidRootPart char:PivotTo(hrp.CFrame + Vector3.new(0, 5, 0)) end end)
  239.  
  240. Players.PlayerAdded:Connect(update) Players.PlayerRemoving:Connect(function(p) if dropdown.Text == p.Name then resetCam() end update() end)
  241.  
  242. gui.Destroying:Connect(resetCam) update()
  243.  
  244.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement