I want to check if the player's color is the same color as the script's parent when the player touches the brick, then change the jump power/velocity of player if it is?
--non working script below-- --i suck at scripting--
wait()
local character = player.Character
color = character.Torso
if script.Parent.BrickColor == "Really Red" then
if color.BrickColor == "Really Black" then
function onTouch(part)
local human = part.Parent:findFirstChild("Humanoid")
if (human == nil) then return end
Character.Humanoid.JumpPower = 100
end
end)
end)
end
end
script.Parent.Touched:connect(onTouch)
Im pretty sure it's the fact that idk how to check the player's color, and the part to change the jumppower of the player.

1 comment
what is wrong with your current code. Please give more info.