local block = game.Workspace.Part
local function touched(hit)
if block.Touched then
print("Touched")
else
print("Didnt work")
end
end
1 Like
updated but still not work
local block = game.Workspace.Part
if block.touched then
block.BrickColor = BrickColor.new("Pastel orange")
else
block.BrickColor = BrickColor.new("Bright orange")
end
1 Like
Is this what you try to achieve?
block.Touched:Connect(function()
block.BrickColor = BrickColor.new("Pastel orange")
end)
block.TouchEnded:Connect(function()
block.BrickColor = BrickColor.new("Bright orange")
end)
1 Like
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.