Here's what I have
workspace.Part.playerWhoClicked = script.Parent.Parent.BrickColor.BrickColor.new("Bright red")
and also it comes up with no error, please help I would appreciate it.
Not sure what your script suppose to do, the syntax for your script is wrong, i think you should go back to basic
But this is what you need if you want to detect clicks on a brick https://developer.roblox.com/en-us/api-reference/class/ClickDetector
This could be a simple fix.
game.Workspace.Part.ClickDetector.MouseClick:Connect(function() game.Workspace.Part.BrickColor = BrickColor.new("Bright red) end)
go ahead and copy paste it.
I don't really know what the code is that you posted, but let's walk through this as if you were new to coding. If you wanted to detect a click on a model/part, then you need to use a "ClickDetector", so if you do not have it, then you insert one into the part.
*Steps: *
1) Insert a Script and ClickDetector into the Part 2) Edit the code to execute your goal
local ClickDetector = script.Parent:WaitForChild("ClickDetector") -- Index the ClickDetector ClickDetector.MouseClick:Connect(function() -- Listen for a click script.Parent.BrickColor = BrickColor.random() -- Make the part a random color end)
Roblox has a nice guide on this already. Here. https://developer.roblox.com/en-us/articles/introduction-to-input Just change the variables, etc. and the brick color at the bottom, and it should work.