Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --local f = Instance.new("Part", workspace)
- --f.Name = "Foxy"
- lightoff = true
- foxyenabled = false
- --Doesn't need any configuration. Go wild.
- local numberValue = Instance.new("NumberValue", game.ReplicatedStorage)
- numberValue.Name = 'Foxy\'s Patience'
- numberValue.Value = 150
- spawn(function(addtime)
- while wait() do
- if not lightoff and foxyenabled then
- numberValue.Value = numberValue.Value+3
- end
- end
- end)
- spawn(function(foxyparameters)
- while wait(2) do
- if lightoff and foxyenabled then
- numberValue.Value = numberValue.Value-15
- end
- end
- end)
- game:GetService('RunService').RenderStepped:connect(function(repeatedfunctions)
- if numberValue.Value > 150 then
- numberValue.Value = 150
- elseif numberValue.Value < 0 then
- numberValue.Value = 0
- end
- game.Players.LocalPlayer.Character:FindFirstChildOfClass("Humanoid").Name = tostring(math.random(1, 100000))
- end)
- game:GetService('UserInputService').InputBegan:connect(function(turnonlight)
- if turnonlight.KeyCode == Enum.KeyCode.LeftControl then
- lightoff = false
- wait(0.04)
- lightoff = true
- end
- end)
- game:GetService('UserInputService').InputEnded:connect(function(turnofflight)
- if turnofflight.KeyCode == Enum.KeyCode.LeftControl then
- lightoff = true
- end
- end)
- spawn(function(s)
- while wait(2) do
- local returnvalues = {"20", "7", "15"}
- local variable = tostring(math.random(1, 20))
- if returnvalues[variable] then
- foxyenabled = not foxyenabled
- end
- print("Foxy Status: ".. tostring(foxyenabled)..". ("..variable..")")
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment