Untitled
unknown
plain_text
9 months ago
415 B
3
Indexable
-- This script should be placed inside a Part (object) in the **Workspace** to make it interactive.
local part = script.Parent
part.Size = Vector3.new(5, 5, 5)
part.Position = Vector3.new(0, 5, 10)
part.Color = Color3.fromRGB(255, 0, 0) -- Red color
part.Anchored = true
local function onClick()
part.Color = Color3.fromRGB(0, 255, 0) -- Change color to green when clicked
end
part.Touched:Connect(onClick)
Editor is loading...
Leave a Comment