Answers for "lua event"

Lua
0

lua event

--note : a event is going to active something when is done. the event is gonna fire.
--this time we will do the simplest event. touched

local brick = script.parent

brick.Touched:Connect(function() --when touched the funtion will fire
    brick.Transparency = 0.5 --for now we do transparency.
    --you delete it and do anything you want.
    --wanna learn more? on youtube there is more. use alvinblox for a example
Posted by: Guest on February-22-2022

Browse Popular Code Answers by Language