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!
#Selling Systeme Problem
1 messages · Page 1 of 1 (latest)
** You are now Level 1! **
where are the scripts
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.
⬆️
pls help
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
You can use random numbers in a range from 3 to 8 for example
If that's what you want
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?
** You are now Level 2! **
Sorry i dont get it, what you want the price/Price range to be
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
Thanks! I’ll move everything to one ServerScript and use the “Money” value.
If I can’t get it working, I’ll ask again.
Do you mean the entire mining and selling system should be handled in one ServerScript?
So that it manages ore drops, prices, and selling all together?
yes thats right, thats what i would do but that up to you

its always better to manage the whole thing in a servercript
Ok, thanks!
I’m not sure how to do it yet, but I’ll give it a try.
Appreciate your advice!
anytime!
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. :)
did you make this?
You mean the game
the system itself
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.
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
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!
that's the spirit