local tl = script.Parent.Parent.Parent:FindFirstChild("body").frame1.Money_Holder_back.TextLabel
script.Parent.Parent:FindFirstChild("Events").Loader.OnClientEvent:Connect(function(player, money)
local s, e = pcall(function()
tl.Text = tostring(money)
end)
if s then
print("Money: Loaded")
else
tl.Text = "(Could Not Load Money)"
error(e)
end
end)
Server
local statsModule = require(script.Parent.Stats)
local remoteEvent = script.Parent:WaitForChild("Events"):FindFirstChild("Loader")
game.StarterPlayer.CharacterWalkSpeed = 0
game.StarterPlayer.CharacterJumpHeight = 0
-- // Stats
local startMoney = statsModule.StartMoney
print(startMoney)
local plr = game.Players.PlayerAdded:Wait()
remoteEvent:FireClient(plr, startMoney)