Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Help with my spectator script?

Asked by 10 years ago

I have this spectator script that I made, but it is not very efficient, and I would like to improve it. How can I make it so instead of me subtracting numbers, it moves down the table as you click?

001repeat wait() until game.Players.LocalPlayer.Character
002 
003local frame = script.Parent:WaitForChild('Frame')
004local sub = frame:WaitForChild('Subtract')
005local add = frame:WaitForChild('Add')
006local name = frame:WaitForChild('Name')
007local spectating = script.Parent:WaitForChild('SpectatingV')
008local specButton = frame:WaitForChild('Spectating')
009local fixSpecB = frame:WaitForChild('FixSpectate')
010local db = false
011local playerNO = 1
012local players = game.Players:GetChildren()
013if spectating.Value then
014    specButton.Text = 'Spectating: Yes'
015elseif not spectating.Value then
View all 108 lines...

Answer this question