How do i manage buttons for a tycoon [asking advanced scripters]

I wanted to know what would be the best way to script a tycoon (Modern Tycoon)

what do i mean by modern tycoon? like not droppers just a RatePerSecond

so basically I have everything down i just wanted to know how i should make something build.

In the past i would use an object value but that was very bad since it would cause slower loading times.

the only other way i could think of is a module with a table of what button buys which build.

  • i know that a table is the best way of loading and saving the data
  • Completed the spawning took me way too long
1 Like

I’m confused… :woozy_face: Can you explain a little better? So I can understand at least?

2 Likes

wanted to know how i should handle buying pads/buttons

1 Like

you dont need to create a topic, instead find resources to create a tycoon and decide what type of tycoon you want to make

1 Like

where do i find these resources?

1 Like

just search how to make tycoons

1 Like

my question wasn’t how to make a tycoon though just the best way to do it

1 Like

example

Polarisprog uses a table like this

return {
	{
		ID = "A0001",
		Price = 10,
		Builds = "B0001"
	}
}

alvin blox uses attributes

i used object values

modules can be used as a values

don’t watch tutorials that teach you how to make entire systems man, I’ve never needed tutorials like “how to make a gun system” as long as you read the documentation and learn actual functions to do this you will be fine. Only watch tutorials as a last resort, They spoonfeed alot that’s why I don’t use them.

1 Like

But yes to answer your question, use attributes since they’re slightly fsater than values I believe? But if you don’t want to use attributes that’s your choice. I still use regular debouncing boolean variable values from time to time. If you want to save a player’s data or something, everytime they do something like add a new pad use updateasync/setasync to update or set a new value to their data. If you wanna save certain positions just do something like this:

local x,y,z = cframe:GetComponents()
data:SetAsync("key", x,y,z)

thanks what i did last time was just setting the transparency of the build in workspace :smiley: which was pretty bad since everything was loaded at once lol

Hey we all gotta start somewhere, I’ve made worse mistakes.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.