Ok so basically i made a gui on the top of my screen and put it in starter gui and made the text transparency 1 then made a script in starter pack and the script goes like this
local player = game.Players.LocalPlayer local character = player.Character local hum = character.Humanoid local gui = game.StarterGui.DesertCrap.DesertThings
if hum.FloorMaterial == "Sand" then gui.TextTransparency = 0 wait(5) gui.TextTransparency = 1 end
i didn't get an error but it didn't work when i tested the game