SOS Help, my script just will not work | Roblox Forum
Welcome to the Forums!
Join thousands of other Roblox members with a free account.
Create Forum Account

SOS Help, my script just will not work

  • This website was created by Roblox members to replace the official forums because Roblox shut them down! Join our community if you like to talk about Roblox!

rydeready312

New Member
Reputation: 0 / 0 / 0
Nov 21, 2020
1
0
1
Roblox
Telure22
-- Datastore Service

local DSS = game:GetService("DataStoreService")

local Money = DSS:GetDataStore("Cash")



game.Players.PlayerAdded:Connect(function(plr)

local pCash = Money:GetAsync(plr.UserId)

local leaderstats = Instance.new("Folder",plr)

leaderstats.Name = "leaderstats"

local CashValue = Instance.new("NumberValue",leaderstats)

CashValue.Name = "Cash"

CashValue.Value = pCash

CashValue.Parent = leaderstats

CashValue.Changed:connect(function(v)

Money:SetAsync(plr.UserId,v)

print("Money Saved!")

end)

end)

This is my script as i followed a video and even in studio i cannot get this script to work! as you can tell, it should print "money saved" and it doesnt even print this in output!
 
Private conversations
Rules Help Users
    You haven't joined any rooms.