You can write your topic however you want, but you need to answer these questions:
-
Q: What do you want to achieve? Keep it simple and clear!
A: I have a shop system with a ScreenGui and when you click to the item you want to buy, it checks if you have enough cash and then gives you the tool. -
Q: What is the issue? Include screenshots / videos if possible!
A: It gives the tool but it gives tools at more amount every time you buy (Like i showed below). But I don’t want that.First Time . … … … … 1 Tool
Second Time … … … 2 Tools
Third Time … … … … 3 Tools
n Time … … … … … … n Tools -
Q: What solutions have you tried so far? Did you look for solutions on the Developer Hub?
A: I don’t know if there is any solutions because I don’t even know how can I describe my problem in one sentence. Also I couldn’t try any solutions myself because there is no any errors, I don’t know why it gives more and more…
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
All my scripts are below:
- GUIReplicator
- Stored in StarterGui
- Has 3 childs:
- TemplateShopGUI (The Main Gui’s Template: There are no items)
- TemplateCell (Used to add items to the Gui and includes a ViewportFrame to display item)
- Items (The folder used to store items and it’s data like: CFrame, Size, SpinSpeed, SpinAxis and Price)
- GitHub / GUIReplicator
- PurchaseScript
- Stored in ServerScriptService
- GitHub / PurchaseScript
- TriggerScript
- Used to fire GenerateGUI() function in GUIReplicator
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Part = script.Parent local ProximityPrompt = Part.ProximityPrompt local InteractShop = ReplicatedStorage:WaitForChild("InteractShop") ProximityPrompt.Triggered:Connect(function(Player) InteractShop:FireClient(Player) end)
I have no more scripts included guys. I hope you guys can find out where is the problem. Because I couldn’t. Good luck.
Best Regards,
taavZSub