I'm a beginner scripter, i'm using Zeds tycoon kit because I don't know how to make my own yet, this script is mine though as are many in my game, small simple ones as yet again I'm a beginner so help would be greatly appreciated. As stated above i'm using Zed's Tycoon kit and i'm trying to make a script to give people 10,000 cash when they join, i've been studying wiki.roblox but I just can't seem to make it work. Help would be greatly appreciated.
Script
id = 540679791
for i,v in pairs (game.Players:GetPlayers()) do
if v then
if game:GetService("MarketplaceService"):PlayerOwnsAsset(v,id) then
local cashmoney = game.ServerStorage.PlayerMoney:FindFirstChild(v.Name)
if cashmoney then
cashmoney.Value = cashmoney.Value + 10000
end
end
end
end
Thanks for your time
--Species

1 comment
I recommend you trying to script or get some friends before making a game.