Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how can i use part.color?

Asked by
322ita 15
4 years ago

how can i use Part.color?

local Sound = script.Parent.button

script.Parent.ClickDetector.MouseClick:Connect(function(click)
    Sound:Play()
    game.Workspace.cazzo.Canco.CanCollide = true
    game.Workspace.cazzo.Canco.Transparency = 0
    game.Workspace.Touch01.Material = 288
    game.Workspace.Touch01.Color = 
    wait(3) 
        game.Workspace.cazzo.Canco.CanCollide = false
        game.Workspace.cazzo.Canco.Transparency = 0.5
        game.Workspace.Touch01.Material = 256
        game.Workspace.Touch01.Color = 
end)


1 answer

Log in to vote
1
Answered by 4 years ago
local Sound = script.Parent.button

script.Parent.ClickDetector.MouseClick:Connect(function(click)
    Sound:Play()
    game.Workspace.cazzo.Canco.CanCollide = true
    game.Workspace.cazzo.Canco.Transparency = 0
    game.Workspace.Touch01.Material = 288
    game.Workspace.Touch01.BrickColor = BrickColor.new("your color")
    wait(3) 
        game.Workspace.cazzo.Canco.CanCollide = false
        game.Workspace.cazzo.Canco.Transparency = 0.5
        game.Workspace.Touch01.Material = 256
        game.Workspace.Touch01.BrickColor = BrickColor.new("your color")
end)


0
thanks 322ita 15 — 4y
Ad

Answer this question