I've got this script inside of the part:
local players = game:GetService("Players") local ServerStorage = game:GetService("ServerStorage") players.PlayerAdded:Connect(function(plr) print("g") local money = plr.leaderstats:WaitForChild("Money") plr.CharacterAdded:Wait() if script.Parent.Parent == game.Workspace then print("e") money.Value = money.Value + 75 wait(7) end end)
So what it does basically - the part is in ServerStorage and when player logs in if they have gamepass part is in workspace so if its in workspace i want to give money every 7 seconds but it doesnt work.
also when player joins "g" doesnt get printed so yeah
I thought it's maybe because scripts dont work in ServerStorage perhaps, but idk, pls help