|
| 25 Jan 2017 10:45 PM |
So, I know this may updated. If there is a fix / a better version then please do tell me.
script.Parent.Touched:connect(function() game.Lighting.Model1:Clone().Parent = game.Workspace end)
( Its a model of 2 blocks ) For some reason, Even in lighting Its still visible, And whenever you touched the brick, It just spammed more of the exact same model.
ITS A JOKE. TAKE IT OR LEAVEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 10:56 PM |
script.Parent.Touched:connect(function() game.Lighting.Model1:Clone() = modelClone modelClone.Parent = game.Workspace
end)
not that good at clones, but try this. |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 10:58 PM |
Doesn't work :(
ITS A JOKE. TAKE IT OR LEAVEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 11:01 PM |
script.Parent.Touched:connect(function() modelClone = game.Lighting.Model1:Clone() modelClone.Parent = game.Workspace
end)
sorry my bad this should work |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 11:03 PM |
| if that doesnt work, is there 2 models inside model1? like 2 bricks or whatever? |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 11:04 PM |
debounce = false script.Parent.Touched:connect(function() if debounce = false then local model = game.Lighting.Model1:Clone() denounce = true model.Parent = workspace wait(10) denounce = false else print("wait for debounce") end
|
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 11:05 PM |
There is 2 bricks
#code if "I cant code" == true then print("Help") elseif print("I can code! Wow!") |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 11:06 PM |
Sorry had a spelling error in the first one, debounce = false script.Parent.Touched:connect(function() if debounce = false then local model = game.Lighting.Model1:Clone() debounce = true model.Parent = workspace wait(10) denounce = false else print("wait for debounce") end |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 11:07 PM |
| oops yeah, didnt read the second part. Thought your script wasn't working to clone them. Yeah, you'd need a debounce. |
|
|
| Report Abuse |
|
|
|
| 25 Jan 2017 11:29 PM |
local buttonPressed = false script.Parent.Color = Color3.fromRGB(0,255,0) script.Parent.Touched:connect(function(touched) script.Parent.Color = Color3.fromRGB(255,0,0) if not buttonPressed then buttonPressed = true modelClone = game.Lighting.Model1:Clone() modelClone.Parent = game.Workspace wait(10) buttonPressed = false script.Parent.Color = Color3.fromRGB(255,0,0) end end)
Try this, it will turn the brick red while waiting for debounce, and it will turn it green after. You can change the colors in the RGB sections, and you can change the debounce time in the wait part. |
|
|
| Report Abuse |
|
|