How do you put this script in a Localscript which is inside a part?
local part = game:GetService("Workspace").Part
part.Touched:Connect(function(hit)
if hit.Parent.Name == game.Players.LocalPlayer.Name then --Checks if the local player touched!
part.BrickColor = BrickColor.new("Bright red")
end
end)

1 comment
Not possible. LocalScripts don't run in the Workspace.