i tried using this code , im kind of new to scripting and i am studying .
local fl = game.Workplace.FARMLAND
fl.FARM1.ClickDetector.MouseClick:Connect(function()
if crop.a1.Transparency == 1 then crop.a1.Transparency=0 wait(5) crop2.b1.Transparency=0 else game.StarterGui.ScreenGui.TextLabel.Text = 'hello' end
Can you tell me what am I doing wrong ?
It is because u are changing it in StarterGui which means it won't change until player resets, use this
fl.FARM1.ClickDetector.MouseClick:Connect(function(player) if crop.a1.Transparency == 1 then crop.a1.Transparency = 0 wait(5) crop.b1.Transparency = 0 else player.PlayerGui.ScreenGui.TextLabel.Text = "hello" end end)