So I need help with this ice script. There is 3 scripts, the ice texture, the sound script, and the script for the ice you fall through
so for the sound of the ice breaking this was the script
function onTouch(hit)
script.Sound:Play()
end
This script had a sound in it btw but the sound didnt play
Then there was this Texture for the ice that was a crack and this was the non working script
function onTouch(hit)
wait(1)
script.Parent.Transparency = 0
end
script.Parent.Touched:connect(onTouch)
The crack texture starts off as invisible and this script should make it visible
This is the script for falling through the ice and it worked but I might as well put it here
function onTouch(hit)
script.Parent.CanCollide = false
script.Parent.Transparency = 1
wait (5)
script.Parent.CanCollide = true
script.Parent.Transparency = 0
end
script.Parent.Touched:connect(onTouch)
