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

Tycoon Cash To Collect - Surface Gui?

Asked by 9 years ago

Please provide more explanation in your question. If you explain exactly what you are trying to accomplish, it will be much easier to answer your question correctly.

Okay I am editing berezaa's tycoon kit and I would like the cash to collect to be a surface gui something like

and you can click the surface gui and it will collect your cash?

berezaas cash to collect script how to edit to surface gui?

script.Parent.Parent.Parent.Cash.Changed:connect(function()
    script.Parent.Name="Cash to collect: $"..script.Parent.Parent.Parent.Cash.Value
end)

URGENT!

1 answer

Log in to vote
0
Answered by
iNicklas 215 Moderation Voter
9 years ago
local button= script.Parent

function onClick()

 script.Parent.Name="Cash to collect: $"..script.Parent.Parent.Parent.Cash.Value

end)

button.MouseButton1Click:connect(onClick)
Ad

Answer this question