#Selling Systeme Problem

1 messages · Page 1 of 1 (latest)

idle cloud
#

Hi everyone!
I’m working on a selling system where players can drag items to sell them. I already have the drag part working, but I’m having trouble with the pricing — everything sells for $5, but items should have different values.
I don’t know how to set different prices per item.
Could someone help me or show me an example? Thanks a lot!

uncut folioBOT
#

studio** You are now Level 1! **studio

idle cloud
fleet stag
#

where are the scripts

idle cloud
#

the scripts for selling? or for the drops

#

The scripts for the ore drops and dragging system are in ServerStorage.
The leaderboard and selling parts are in the Workspace.

idle cloud
idle cloud
#

Still stuck on the selling system 😅
All items sell for $5, even though they should have different prices.
Scripts are in ServerStorage, and the sell area is in Workspace.
Would really appreciate any help!

#

Selling Systeme Problem

modern jolt
#

If that's what you want

idle cloud
# modern jolt You can use random numbers in a range from 3 to 8 for example

I actually already gave each item a specific price, but it always sells for the same value.
Do I need to add a new script, or update my existing one to read the item’s price?
Not sure how to connect the price to the selling system.

The main item (in ServerStorage) has an IntValue called "Money" with the correct price.
But when it’s dropped into the world, it always sells for 5.
I think the price isn't being copied correctly.
Do I need to clone the "Money" value too, or connect it in a script?

uncut folioBOT
#

studio** You are now Level 2! **studio

modern jolt
#

and it would be better to use a serverscript for the wole thing better than putting the script in every oredrop mesh

#

its a mess when you copy a mesh/script/model with scripts in it because whenever you want to modify the script you have to copy it again

idle cloud
#

Thanks! I’ll move everything to one ServerScript and use the “Money” value.
If I can’t get it working, I’ll ask again.

idle cloud
modern jolt
#

its always better to manage the whole thing in a servercript

idle cloud
#

Ok, thanks!
I’m not sure how to do it yet, but I’ll give it a try.
Appreciate your advice!

modern jolt
#

anytime!

idle cloud
#

thanks for being open to help!
I’d really appreciate it if you could help me sometimes if I get stuck — I’m still learning and it can be a bit confusing for me. :)

idle cloud
#

You mean the game

wild scroll
#

the system itself

idle cloud
#

No, I didn’t make the system myself.
It’s a free asset I found online because I searched a lot but couldn’t find a working mining system tutorial.
I’m still learning and trying to understand how it works.

wild scroll
#

i recommend starting a playlist of tutorials

#

basic knowledge of how studio works would of fixed this problem and it seems you haven't read a single line of code

#

try brawldev, he has a beginner, gui and advanced scripting tutorial

idle cloud
#

You’re right, I still have a lot to learn and haven’t studied much code yet.
I’ll check out BrawlDev’s tutorials and start from the basics.
Really appreciate the help!