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

Help with a paintbrush?!

Asked by 10 years ago

I want the paintbrush to paint Output says Players.Player1.Backpack.Paintbrush.LocalScript:18: attempt to index global 'Painbrush' (a nil value).In don't know what that means so also if you can help can you tell me what that means?

Colors = Red
Colors1 = Green
Colors2 = Blue
Colors3 = Purple
Colors4 = Black 
Player = game.Players.LocalPlayer
Paintbrush = script.Parent
mouse = Player:GetMouse()
function Paint()
if Colors == Red and Colors1 == Green and Colors3 == Purple and Colors4 == Black then
P = Instance.new("Part", Workspace)
P.FormFactor = "Plate"
P.BrickColor = BrickColor.new(math.random(math.random(math.random(math.random(math.random())))))
print("Activated Colors")
end 
end

Painbrush.Activated:connect(Paint)


1 answer

Log in to vote
2
Answered by 10 years ago

Just look at line 18

Painbrush.Activated:connect(Paint)

Painbrush

0
Ooops XD Spelt paintbrush wrong LOL iluvmaths1123 198 — 10y
0
Lollllll Grenaderade 525 — 10y
0
lol painbrush XD PyccknnXakep 1225 — 10y
0
LOL like a brush so when you click it will paint and then if a player touches the paint it will die XD iluvmaths1123 198 — 10y
Ad

Answer this question