I'm new to messing with scripts and I can't understand this script I need help
script.Parent.MouseButton1Click:connect(function() if game.Players.LocalPlayer.Name == "Username" then if game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.Text == "kill" then game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.CommandGranted.Value = "true" game.Players.LocalPlayer.Character:FindFirstChild("Humanoid").Health = 0 game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.Text = "Command Granted" wait(1) game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.Text = "Command" game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.CommandGranted.Value = "false" else wait(0.5) if game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.CommandGranted.Value == "false" then game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.Text = "Not a Command" wait(2) game.Players.LocalPlayer.PlayerGui.Command.CommandBar.CommandBox.Text = "Command" end end end end)

1 comment
What type of things do you want in this command bar and also you should try to do it yourself before asking here :)