Its just when you click the brick it needs to start a fire then activate a dynamic lighting light.
COMMUNITY QUESTION
How do i make a brick when clicked a fire lights up?
2 answers
I had an error with the script above. Place this inside a script which should be a child of the ClickDetector.
script.Parent.MouseClick:connect(function()
f = Instance.new("Fire")
l = Instance.new("PointLight")
f.Parent = script.Parent.Parent
l.Parent = script.Parent.Parent
end)
something like this
game.Workspace.Changethistothingyouwantclicked.OnClicked:connect(function()
c = Instance.new("ClickDetector")
f = Instance.new("Fire")
c.Parent = script.Parent
f.Parent = script.Parent
if f.Parent = script.Parent then
game.Lighting.GlobalShadows = true
end
end
end)
This discussion is preserved as it was. New answers, comments, and votes are closed.
