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

How do you add a 2x "currency" gamepass for a TYCOON? [closed]

Asked by
ZeeBaine -15
2 years ago

Hello

I've been trying to work out how to Script a 2x Coins gamepass for my TYCOON. I've used a kit for my tycoon called "Zednovs Tycoon Kit" Right now this is all that I've tried has failed. Could someone please help me create this script.

0
umm could you provide a script? sne_123456 439 — 2y
0
This is a request. You can request scripts on the developer forum, but you're welcome to come here anytime you want when you have errors with your code. MarkedTomato 810 — 2y

Closed as Not Constructive by MarkedTomato and Leamir

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by 2 years ago

You could give a player a attribute or a value that indicates how much you need to multiply your cash. Then all you have to do something is this:

player.leaderstats.Cash.Value += (Cash you want to give) * player:GetAttribute(“Your Attribute Name”)

And to create an attribute (if you need it)

player:SetAttribute(“Attribute Name”, Attribute  Value)

Hope this helps:) Tell me if this is not what you are looking for and I will help:)

Ad