of     1   

TechExtraction
#221704843Tuesday, July 18, 2017 6:39 PM GMT

I'm trying to make a script that changes the value of IntValue in LocalPlayer. Here is the script I'm trying to make print("Money Giver Script Loaded") local Player = game.Players.LocalPlayer local Money = Player.Robux -- IntValue while true do wait(5) Money.Value = Money.Value + 100 end
TechExtraction
#221704936Tuesday, July 18, 2017 6:40 PM GMT

What is wrong with it? It's not working
Beekeeper928
#221705466Tuesday, July 18, 2017 6:47 PM GMT

Is it in a server script? Are you getting any errors?
kylerzong
#221705596Tuesday, July 18, 2017 6:49 PM GMT

local Player = game.Players.LocalPlayer if Player then print("PlayerFound") local Money = Player.Robux -- IntValue else print(":C") end if Money then print("Money Found") else print(":C2") end while true do wait(5) Money.Value = Money.Value + 100 print("Money Given") end
kylerzong
#221705621Tuesday, July 18, 2017 6:49 PM GMT

Run This And Tell Me What It Says
TechExtraction
#221705969Tuesday, July 18, 2017 6:53 PM GMT

No errors in Output but where do I put the script. It's in workspace right now
kylerzong
#221706099Tuesday, July 18, 2017 6:55 PM GMT

Bro put it in StarterPlayer>StarterPlayerScripts...................
TechExtraction
#221706269Tuesday, July 18, 2017 6:57 PM GMT

Not Working..
IvanL2
#221706316Tuesday, July 18, 2017 6:57 PM GMT

It's a local script. If not, it should be, as game.Players.LocalPlayer only applies to local scripts. If it is, make sure it is stored inside the player's scripts, instance, or character, for it to run.
TechExtraction
#221706699Tuesday, July 18, 2017 7:01 PM GMT

It is in a LocalScript and it's in StarterPlayerScripts
ExplodeLikeAVolcano
#221707455Tuesday, July 18, 2017 7:11 PM GMT

Place this script in ServerScriptService. amount = AMOUNTGOESHERE currencyname = "CURRENCYGOESHERE" while true do wait(TIMEGOESHERE) for i,v in pairs(game.Players:GetPlayers()) do if v:FindFirstChild("leaderstats") and v then v.leaderstats[currencyname].Value = v.leaderstats[currencyname].Value + amount end end end
TechExtraction
#221707695Tuesday, July 18, 2017 7:14 PM GMT

It's not a leaderstat though It's just a IntValue in LocalPlayer
ExplodeLikeAVolcano
#221710233Tuesday, July 18, 2017 7:45 PM GMT

Guess you didn't want my help.
XxheemoxX
#221711006Tuesday, July 18, 2017 7:54 PM GMT

Hmm.. Can you tell me where the script and the value is exactly placed?.. Giving such information can make finding a solution for you easier
QuickThisWay
#221711720Tuesday, July 18, 2017 8:02 PM GMT

Just use a normal script: game.Players.PlayerAdded:connect(function(player) Money = player.Robux while true do wait(5) Money.Value = Money.Value + 100 end end) At least I tried to help.
XxheemoxX
#221712046Tuesday, July 18, 2017 8:06 PM GMT

Try making the script without variables So it would be like: while true do wait(5) game.Players.LocalPlayer.Robux.Value = game.Players.LocalPlayer.Robux.Value + 100 end if that didnt manage to work then try changing the script and the value places Steps: 1- Change your script place inside the StarterPlayer inside the StarterPlayerScripts 2- Delete the int value since you will make on e via script 3- In your script write this: local Robux = Instance.new("IntValue", script) -- Make a new IntValue and set its parent ########## = "Robux" -- Set the Name of your value while true do Robux.Value = Robux.Value + 100 wait(5) end Tell me if that works and if you need any more help
TimeTicks
#221712619Tuesday, July 18, 2017 8:12 PM GMT

--server script game.Players.PlayerAdded:connect(function(player) local stats = player:WaitForChild('leaderstats') local money = stats:WaitForChild('Money') spawn(function() while wait(5) do money.Value = money.Value + 100 end end) end)
FlametheName24698729
#227703126Sunday, November 19, 2017 5:18 AM GMT

i dont understand why you are doing this
decla123
#227708423Sunday, November 19, 2017 9:43 AM GMT

--Local Script inside StarterPlayer local plr = game.Players.LocalPlayer local stats = plr:WaitForChild("leaderstats") local money = stats:WaitForChild("Money") while true do money.Value = money.Value + 100 wait(5) end

    of     1