I've never seen this many errors in somebody's code in a long long time.
But anyways the first error is on line 2 you typed MouseButton1Click with a lowercase b.
It should be like this:
script.Parent.MouseButton1Click:Connect(function()
The second error is that on line 3 you messed up on BrickColor.new. You used a single apostrophe instead of two. You also added an additional dot after .new.
It should be like this:
plr.TeamColor = BrickColor.new("Rust")
The third error is on line 5. There is not a health property inside of the player class on Roblox. Although, there is a health property inside of the players Humanoid. To fix this you would simply replace it with the following:
plr.Character.Humanoid.Health = 0
The FOURTH error is that you are not defining what the variable plr is calling. You are going to want to insert a new line of code at the very top of the script and make it the following:
plr = game.Players.LocalPlayer
Anyways, hopefully this helped.
1 comment
This is so confusing because you didn't format your code. I'm litteraly about to open notepad and format it myself.