tomis13lack Posted April 21, 2017 Share Posted April 21, 2017 I have made a script which shows the price of an object. Everything works up to the "timer." It doesnt cause any errors, but it doesnt do what it should. I am trying to make it stop displaying the text. Here is what I have so far: if (xd==7) then context:SetBlendMode(1) context:SetColor(d) context:SetFont(font) context:DrawText("Not enough money, you need "..self.cost,50, 50) Time:GetCurrent() local stop = Time:GetCurrent() + 1 if (Time:GetCurrent()==stop) then xd = 1 end end This is located in a Script:PostRender(context) function. Any ideas? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.