Run it
Copy the script and paste it into your executor.
Players = :()
LocalPlayer = Players.LocalPlayer
UserInputService = :()
TweenService = :()
RunService = :()
toggleKey = .KeyCode.RightShift
ScreenGui = .()
ScreenGui.Name =
ScreenGui.Parent = (gethui ()) .CoreGui
MainFrame = .()
MainFrame.Name =
MainFrame.Size = .(, , , )
MainFrame.Position = .(, -, , -)
MainFrame.BackgroundColor3 = .(, , )
MainFrame.Active =
MainFrame.Visible =
MainFrame.Parent = ScreenGui
UICorner = .(, MainFrame)
UICorner.CornerRadius = .(, )
TopBar = .()
TopBar.Name =
TopBar.Size = .(, , , )
TopBar.BackgroundColor3 = .(, , )
TopBar.Parent = MainFrame
TopBarCorner = .(, TopBar)
TopBarCorner.CornerRadius = .(, )
Title = .()
Title.Size = .(, -, , )
Title.Position = .(, , , )
Title.Text =
Title.TextColor3 = .(, , )
Title.TextSize =
Title.BackgroundTransparency =
Title.Font = .Font.GothamBold
Title.TextXAlignment = .TextXAlignment.Left
Title.Parent = TopBar
Minimize = .()
Minimize.Size = .(, , , )
Minimize.Position = .(, -, , )
Minimize.Text =
Minimize.TextColor3 = .(, , )
Minimize.TextSize =
Minimize.BackgroundTransparency =
Minimize.Parent = TopBar
dragging, dragStart, startPos
TopBar.InputBegan:((input)
input.UserInputType == .UserInputType.MouseButton1
dragging =
dragStart = input.Position
startPos = MainFrame.Position
input.Changed:(()
input.UserInputState == .UserInputState.End
dragging =
)
)
TopBar.InputChanged:((input)
input.UserInputType == .UserInputType.MouseMovement
dragging dragStart startPos
delta = input.Position - dragStart
MainFrame.Position = .(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
)
PlayerBox = .()
PlayerBox.Size = .(, , , )
PlayerBox.Position = .(, , , )
PlayerBox.PlaceholderText =
PlayerBox.Text =
PlayerBox.TextSize =
PlayerBox.TextColor3 = .(, , )
PlayerBox.BackgroundColor3 = .(, , )
PlayerBox.Font = .Font.Gotham
PlayerBox.ClearTextOnFocus =
PlayerBox.Parent = MainFrame
.(, PlayerBox).CornerRadius = .(, )
SpectateButton = .()
SpectateButton.Size = .(, , , )
SpectateButton.Position = .(, , , )
SpectateButton.Text =
SpectateButton.TextColor3 = .(, , )
SpectateButton.BackgroundColor3 = .(, , )
SpectateButton.Font = .Font.Gotham
SpectateButton.TextSize =
SpectateButton.Parent = MainFrame
.(, SpectateButton).CornerRadius = .(, )
StopButton = .()
StopButton.Size = .(, , , )
StopButton.Position = .(, , , )
StopButton.Text =
StopButton.TextColor3 = .(, , )
StopButton.BackgroundColor3 = .(, , )
StopButton.Font = .Font.Gotham
StopButton.TextSize =
StopButton.Parent = MainFrame
.(, StopButton).CornerRadius = .(, )
KeybindButton = .()
KeybindButton.Size = .(, , , )
KeybindButton.Position = .(, , , )
KeybindButton.Text =
KeybindButton.TextColor3 = .(, , )
KeybindButton.BackgroundColor3 = .(, , )
KeybindButton.Font = .Font.Gotham
KeybindButton.TextSize =
KeybindButton.Parent = MainFrame
.(, KeybindButton).CornerRadius = .(, )
Camera = .CurrentCamera
spectating =
targetPlayer =
(query)
query query ==
query = query:()
_, plr (Players:())
plr.Character
name = plr.Name:()
dname = (plr.DisplayName ):()
name:(query, , ) dname:(query, , )
plr
SpectateButton.MouseButton1Click:(()
q = PlayerBox.Text
plr = (q)
plr plr.Character
targetPlayer = plr
spectating =
hum = plr.Character:()
hum Camera.CameraSubject = hum
KeybindButton.Text =
(, ()
KeybindButton.Text = ():(toggleKey toggleKey.Name )
)
)
StopButton.MouseButton1Click:(()
spectating =
targetPlayer =
hum = LocalPlayer.Character LocalPlayer.Character:()
hum Camera.CameraSubject = hum
)
RunService.RenderStepped:(()
spectating targetPlayer targetPlayer.Character
hum = targetPlayer.Character:()
hum Camera.CameraSubject = hum
)
children = {PlayerBox, SpectateButton, StopButton, KeybindButton}
originalProps = {}
_, v (children)
originalProps[v] = {
Visible = v.Visible,
BackgroundTransparency = (v.BackgroundTransparency ),
TextTransparency = (v.TextTransparency ),
Position = v.Position,
Size = v.Size
}
minimized =
tweenTime =
()
_, v (children)
v v.Parent
v.Active =
props = {}
v:() v:() v:()
props.TextTransparency =
props.BackgroundTransparency =
props.BackgroundTransparency =
TweenService:(v, TweenInfo.(tweenTime, .EasingStyle.Quad, .EasingDirection.Out), props):()
(tweenTime + , ()
v v.Parent v.Visible =
)
()
_, v (children)
v v.Parent
v.Visible =
props = {}
props.TextTransparency = originalProps[v].TextTransparency
props.BackgroundTransparency = originalProps[v].BackgroundTransparency
TweenService:(v, TweenInfo.(tweenTime, .EasingStyle.Quad, .EasingDirection.Out), props):()
(tweenTime + , ()
v v.Parent v.Active =
)
Minimize.MouseButton1Click:(()
minimized = minimized
Minimize.Text = minimized
minimized
TweenService:(MainFrame, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {Size = .(, , , )}):()
()
TweenService:(MainFrame, TweenInfo.(, .EasingStyle.Quad, .EasingDirection.Out), {Size = .(, , , )}):()
()
)
bindingConnection
()
text = toggleKey toggleKey.Name
KeybindButton.Text = ():(text)
()
KeybindButton.MouseButton1Click:(()
KeybindButton.Text =
bindingConnection bindingConnection:()
bindingConnection = UserInputService.InputBegan:((input, gpe)
gpe
newKey =
input.UserInputType == .UserInputType.Keyboard
newKey = input.KeyCode
input.UserInputType == .UserInputType.MouseButton1
newKey = .KeyCode.MouseButton1
input.UserInputType == .UserInputType.MouseButton2
newKey = .KeyCode.MouseButton2
input.UserInputType == .UserInputType.MouseButton3
newKey = .KeyCode.MouseButton3
input.UserInputType == .UserInputType.Gamepad1 input.UserInputType.Name:()
newKey = input.KeyCode ~= .KeyCode.Unknown input.KeyCode
newKey
toggleKey = newKey
()
KeybindButton.Text = .. (toggleKey.Name)
bindingConnection bindingConnection:() bindingConnection =
)
)
UserInputService.InputBegan:((input, gpe)
gpe
input.KeyCode == toggleKey (input.UserInputType == .UserInputType.MouseButton1 toggleKey == .KeyCode.MouseButton1)
(input.UserInputType == .UserInputType.MouseButton2 toggleKey == .KeyCode.MouseButton2)
(input.UserInputType == .UserInputType.MouseButton3 toggleKey == .KeyCode.MouseButton3)
MainFrame.Visible = MainFrame.Visible
MainFrame.Visible minimized
()
)
--// Universal Spectate GUI Made by Tyrone_darealest -- Partial/abbreviated name detection (any substring in Name or DisplayName) -- Open Sourced Gui

Universal