How do I make an event trigger when only a player touches it?

Hi! I’m new to scripting and I’m starting to learn about events.

I want to know how to make parts change when a player touches them (such as a brick turning bright red when a player touches it)

The main issue is I just can’t figure out how to do this, even though it seems like it should be very simple.

I’ve tried looking at the list of events for parts, searching on the Internet and the Developer Hub, but I can’t find anything that works.

Here’s the code I’ve tried.

game.Workspace.ToucheEventPart.Humanoid.Touched:Connect(function(hit)

game.Workspace.Baseplate.BrickColor = BrickColor.new(“Really red”)

end)

Sorry if I posted in the wrong category or if I formatted this post badly.

Are you looking for something like this:

2 Likes