You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I’m currently making a pre run shop for my game, and at this stage I’m attempting to make a folder to store what each player has bought using a server script. -
What is the issue? Include screenshots / videos if possible!
For some reason, when I join the game no folders are made (They are supposed to go in the Folder named “Cart”)
but I also get no errors for that script.
local TemplateCart = script.TemplateCart
local Carts = script.Parent.Cart
game.Players.PlayerAdded:Connect(function(plr)
TemplateCart:Clone()
TemplateCart.Name = plr.Name
TemplateCart.Parent = Carts
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I have looked around on the dev forum, but no-one else is making the same style of game as me, so the code doesn’t work with my setup.
Also, if anyone can help me make this server sided, that would be great