Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How would I be able to fix this?

Asked by 10 years ago

Note : "Cash" is not a leaderstat, its a value directly under Player.



function onClicked(player) if player.Cash.Value >= 75 then player.PlayerGui.Teleport.YouSure.Visible = true elseif player.Cash.Value < 75 then player.PlayerGui.Teleport.Nope.Visible = true wait(5) player.PlayerGui.Teleport.Nope.Visible = false end end script.Parent.ClickDetector.MouseClick:connect(Click)

1 answer

Log in to vote
0
Answered by 10 years ago

Is this for a gui? or a brick? because if its for a gui then you would do this

function clicked()

if player.Cash.Value >= 75 then

else if player.Cash.Value < 75 then --(Need more information)
end

--this is lacking information i need to know where the button is located in your GUI


end





script.Parent.MouseButton1Down:connect(clicked)
0
PlayerGui > Teleport > YouSure / Nope Destr0i 0 — 10y
Ad

Answer this question