I have this script that I made, that is a LocalScript in the player's backpack, but I didn't realize that you can't use them as LocalScripts, and I'm not really sure on how I can fix this.. Any possible way without major change?
wait(0.1)
local Player = game:GetService("Players").LocalPlayer
local Timer = Player:WaitForChild("Time")
local Badge = game:GetService("BadgeService")
if not (Badge:UserHasBadge(Player.userId, 0)) then -- did have a badgeid, just removed it
if (Timer) then
while wait(60) do
Timer.Value = Timer.Value + 1
if (Timer.Value == 1440) then
Badge:AwardBadge(Player.userId, 0) -- did have a badgeid, just removed it
wait(0.1)
Timer.Value = 0
end
end
end
end

2 comments
Server side isn't working, saying line 10 has an error. "Attempt to index local 'badge' (a number value)"
I don't know what's wrong, I didn't index 'badge'