RobloxScripterAI
Discord ↗
Link Copied to Clipboard
×
"Write me a script that turns my character red when I touch a certain part."
-- Put this script inside the part you want your character to touch local part = script.Parent local function onTouched(otherPart) local character = otherPart.Parent local humanoid = character:FindFirstChildWhichIsA("Humanoid") if humanoid then for _, bodyPart in ipairs(character:GetChildren()) do if bodyPart:IsA("BasePart") then bodyPart.BrickColor = BrickColor.new("Bright red") end end end end part.Touched:Connect(onTouched)