I am making a tycoon game called Minecraft Tycoon, that uses Zednov's Tycoon Kit. Doesn't anyone know how to make it so you don't need to step on that Cash Collector brick to get the money?
My advice in your position is don't use tycoon kits they aren't as customizable as they seem to appear if you want to get a job done it's better to just do it yourself. It may take you some time but in the long run, I can promise you it's worth the time and effort. Just start by learning basic Lua and move up from there.
If this helps an upvote and solve would be appreciated :)
add a bool value to your tycoon team then rename it AutoCollect then set the value to true then lol its correct change the purchase handler to what looks like this :
001 | --[[ |
002 | All configurations are located in the "Settings" Module script. |
003 | Please don't edit this script unless you know what you're doing. |
004 | --]] |
005 | local Objects = { } |
006 | local TeamColor = script.Parent.TeamColor.Value |
007 | local Settings = require(script.Parent.Parent.Parent.Settings) |
008 | local Money = script.Parent.CurrencyToCollect |
009 | local Debris = game:GetService( 'Debris' ) |
010 | local Stealing = Settings.StealSettings |
011 | local CanSteal = true -- don't change or else you won't be able to steal currency |
012 |
013 | script.Parent.Essentials.Spawn.TeamColor = TeamColor |
014 | script.Parent.Essentials.Spawn.BrickColor = TeamColor |
015 |
Easy,
First you'd need to lay a block down, usually making this block the same size of a user so that when they step onto it it can fit. Then you would need to insert 'Script' inside the block so that this functions and it can add money. Group the part and name the group how much money you would want it to give. For example, "5000 Cash", so that you remember on how much cash you want the script to give. Name the part that is inside the group 'Head' as this is the leading script that it will be giving. Insert a script and ForceField inside of what you named 'Head'.
Insert this script inside of the script:
local ting = 0
function onTouched(hit)
01 | if ting = = 0 then |
02 | ting = 1 |
03 | check = hit.Parent:FindFirstChild( "Humanoid" ) |
04 |
05 | if check ~ = nil then |
06 |
07 | local user = game.Players:GetPlayerFromCharacter(hit.Parent) |
08 | local stats = user:findFirstChild( "leaderstats" ) |
09 |
10 | if stats ~ = nil then |
11 | local cash = stats:findFirstChild( "Cash" ) ---Verander dit naar de naam dat ie moet geven Bijv: Leaderboard die naam is Cash Maak Dat <<<<< Dan Cash !!!! |
12 | cash.Value = cash.Value + 500 -- Verander 1000 in wat je wil |
13 | wait( 5 ) --Verander De 0.1 in wat jij wil hoelang the knop onbruikbaar is |
14 | end |
15 |
16 | end |
17 |
18 | ting = 0 |
19 | end |
end
script.Parent.Touched:connect(onTouched)
Insert 'Humanoid' inside of what is grouped so that the script can detect the users Humanoid and give the amount of money you desire it to give. And your all done! I hope this helped you, as there is not many tutorials on this. I may post a tutorial on Youtube on how this works and how to make it so that you can understand better on how to do this.