Hello again. I can't test my scripts currently because I am on a mobile device right now. I was just wondering if these scripts would work. Thanks. :)
-- Reason for the script, everytime someone clicks the screen (textButton) then the number (textbox) will go up by 1 (or 3 if you have the gamepass)-- it also will detect if someone is hacking by detecting if someone's per click is not 1 OR 3, it also makes the number go up by 10 if the player joins the game -- if someone can make a save function when the player leaves and enters the game that saves the number then that would be great. Thanks. :)
local pass = 182358984
local number = 0
local upgrade = 1
function Auth(player)
return game:GetService("GamePassService"):PlayerHasPass(player, pass)
end
game.Players.PlayerAdded:connect(function(player)
local number = number + 10
end)
script.Parent.MouseButton1Click:connect(function()
if Auth then
local upgrade = 3
end
number = number + upgrade
script.Parent.Parent.Number.Text = number
end)
if upgrade ~= 1 or 3 then
game.Players.LocalPlayer.Character:Destroy()
end
-- Reason for this script: seeing is someone is speed hacking by checking if there speed is not 16
local player = game.Players.LocalPlayer.Character
if player.Humanoid.WalkSpeed ~= 16 then
player:Destroy()
end

5 comments
My friend said he might get cheat engine for me so he could help. Thanks. I have so would I do a "while loop" around all the if statements?
I have another question to. Can you make a script that saves the number everytime the player leaves or enters the game?
You COULD put the if statements that you wanted to repeat in a while loop, but it would be MUCH BETTER to use an event. In this case, the Changed event should suffice. As for saving, that's very possible. Look up Data Store on the wiki.
I did look up data store on the wiki. It did not explain it very well. Or it all might just be to advanced for me. Either way a script to save the number would be great.
This is not a request site, no one here will make scripts for you.