I try to create a script. That make that, if the player have reveice credit, that activated the function in the LocalScript. how i can do that for this works? -Sorry for my english, i speak french.
ModuleScript:
while wait(.5) do
local CreditsData = {
Credits = script.Parent.Parent.Parent.Parent.Parent.Parent:WaitForChild("Credits").Value
}
return CreditsData
end
Local Script:
Save = require(script.Parent.CreditsSave)
deboulse = false
game.Players.LocalPlayer:WaitForChild("Credits").Changed:connect(function()
if deboulse == false then
if game.Players.LocalPlayer.Credits.Value > Save.Credits then
deboulse = true
--// Code Here
deboulse = false
end
end
