forked from arsura-brada/SSAF
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRandomFPSCap
More file actions
232 lines (207 loc) · 6.4 KB
/
Copy pathRandomFPSCap
File metadata and controls
232 lines (207 loc) · 6.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
-- idk why i made this
if not setfpscap then
local StarterGui = game:GetService("StarterGui")
StarterGui:SetCore("SendNotification", {
Title = "Incompatible";
Text = "Your exploit does not support setfpscap(), therefore an alternative script has been ran"
})
local gee = 60
getgenv().lol = false
local RHBB = Instance.new("ScreenGui")
local FrameAlpha = Instance.new("Frame")
local TitleL = Instance.new("TextLabel")
local TauntID = Instance.new("TextBox")
local Taunt = Instance.new("TextButton")
--Properties:
RHBB.Name = "RHBB"
RHBB.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
RHBB.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
RHBB.ResetOnSpawn = false
FrameAlpha.Name = "FrameAlpha"
FrameAlpha.Parent = RHBB
FrameAlpha.Active = true
FrameAlpha.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
FrameAlpha.BorderColor3 = Color3.fromRGB(15, 15, 15)
FrameAlpha.Draggable = true
FrameAlpha.Position = UDim2.new(0.792812407, -251, 0.538304329, -100)
FrameAlpha.Size = UDim2.new(0, 187, 0, 66)
TitleL.Name = "TitleL"
TitleL.Parent = FrameAlpha
TitleL.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TitleL.BorderColor3 = Color3.fromRGB(15, 15, 15)
TitleL.Size = UDim2.new(0, 187, 0, 33)
TitleL.Font = Enum.Font.SourceSans
task.spawn(function()
while wait(1) do
local johner = math.random(1,gee)
if lol == true then
local RunService = game:GetService("RunService")
task.spawn(function()
while lol == true do
local t0 = tick()
RunService.Heartbeat:Wait()
repeat until (t0 + 1/johner) < tick()
end
end)
TitleL.Text = "FPS CAP: "..tostring(johner)
end
end
end)
TitleL.TextColor3 = Color3.fromRGB(235, 235, 235)
TitleL.TextScaled = true
TitleL.TextSize = 14.000
TitleL.TextStrokeTransparency = 0.000
TitleL.TextWrapped = true
TauntID.Name = "TauntID"
TauntID.Parent = FrameAlpha
TauntID.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TauntID.BorderColor3 = Color3.fromRGB(15, 15, 15)
TauntID.Position = UDim2.new(0, 0, 0.52608658, 0)
TauntID.Size = UDim2.new(0, 187, 0, 30)
TauntID.Font = Enum.Font.SourceSans
TauntID.PlaceholderColor3 = Color3.fromRGB(76, 76, 76)
TauntID.PlaceholderText = "Max Random FPS"
TauntID.Text = ""
TauntID.TextColor3 = Color3.fromRGB(0, 0, 0)
TauntID.TextScaled = true
TauntID.TextSize = 14.000
TauntID.TextWrapped = true
Taunt.Name = "Taunt"
Taunt.Parent = FrameAlpha
Taunt.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Taunt.BorderColor3 = Color3.fromRGB(15, 15, 15)
Taunt.Position = UDim2.new(0, 0, 1.0125502, 0)
Taunt.Size = UDim2.new(0, 187, 0, 30)
Taunt.Font = Enum.Font.SourceSans
Taunt.Text = "Activate"
Taunt.TextColor3 = Color3.fromRGB(235, 235, 235)
Taunt.TextScaled = true
Taunt.TextSize = 14.000
Taunt.TextStrokeTransparency = 0.000
Taunt.TextWrapped = true
local function GVJGH_fake_script() -- TauntID.LocalScript
local script = Instance.new('LocalScript', TauntID)
script.Parent.FocusLost:Connect(function(enter)
local n = script.Parent.Text
if enter then
gee = n
end
end)
end
coroutine.wrap(GVJGH_fake_script)()
local function QYAGET_fake_script() -- Taunt.LocalScript
local script = Instance.new('LocalScript', Taunt)
local activ = false
script.Parent.MouseButton1Click:Connect(function()
if activ == false then
activ = true
Taunt.Text = "Disable"
lol = true
elseif activ == true then
activ = false
Taunt.Text = "Enable"
lol = false
local t0 = tick()
RunService.Heartbeat:Wait()
repeat until (t0 + 1/240) < tick()
end
end)
end
coroutine.wrap(QYAGET_fake_script)()
elseif setfpscap then
local gee = 60
getgenv().lol = false
local RHBB = Instance.new("ScreenGui")
local FrameAlpha = Instance.new("Frame")
local TitleL = Instance.new("TextLabel")
local TauntID = Instance.new("TextBox")
local Taunt = Instance.new("TextButton")
--Properties:
RHBB.Name = "RHBB"
RHBB.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
RHBB.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
RHBB.ResetOnSpawn = false
FrameAlpha.Name = "FrameAlpha"
FrameAlpha.Parent = RHBB
FrameAlpha.Active = true
FrameAlpha.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
FrameAlpha.BorderColor3 = Color3.fromRGB(15, 15, 15)
FrameAlpha.Draggable = true
FrameAlpha.Position = UDim2.new(0.792812407, -251, 0.538304329, -100)
FrameAlpha.Size = UDim2.new(0, 187, 0, 66)
TitleL.Name = "TitleL"
TitleL.Parent = FrameAlpha
TitleL.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TitleL.BorderColor3 = Color3.fromRGB(15, 15, 15)
TitleL.Size = UDim2.new(0, 187, 0, 33)
TitleL.Font = Enum.Font.SourceSans
task.spawn(function()
while wait(1) do
if lol == true then
local john = math.random(1,gee)
setfpscap(john)
print(john)
TitleL.Text = "FPS CAP: "..tostring(john)
end
end
end)
TitleL.TextColor3 = Color3.fromRGB(235, 235, 235)
TitleL.TextScaled = true
TitleL.TextSize = 14.000
TitleL.TextStrokeTransparency = 0.000
TitleL.TextWrapped = true
TauntID.Name = "TauntID"
TauntID.Parent = FrameAlpha
TauntID.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
TauntID.BorderColor3 = Color3.fromRGB(15, 15, 15)
TauntID.Position = UDim2.new(0, 0, 0.52608658, 0)
TauntID.Size = UDim2.new(0, 187, 0, 30)
TauntID.Font = Enum.Font.SourceSans
TauntID.PlaceholderColor3 = Color3.fromRGB(76, 76, 76)
TauntID.PlaceholderText = "Max Random FPS"
TauntID.Text = ""
TauntID.TextColor3 = Color3.fromRGB(0, 0, 0)
TauntID.TextScaled = true
TauntID.TextSize = 14.000
TauntID.TextWrapped = true
Taunt.Name = "Taunt"
Taunt.Parent = FrameAlpha
Taunt.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
Taunt.BorderColor3 = Color3.fromRGB(15, 15, 15)
Taunt.Position = UDim2.new(0, 0, 1.0125502, 0)
Taunt.Size = UDim2.new(0, 187, 0, 30)
Taunt.Font = Enum.Font.SourceSans
Taunt.Text = "Activate"
Taunt.TextColor3 = Color3.fromRGB(235, 235, 235)
Taunt.TextScaled = true
Taunt.TextSize = 14.000
Taunt.TextStrokeTransparency = 0.000
Taunt.TextWrapped = true
local function GVJGH_fake_script() -- TauntID.LocalScript
local script = Instance.new('LocalScript', TauntID)
script.Parent.FocusLost:Connect(function(enter)
local n = script.Parent.Text
if enter then
gee = n
end
end)
end
coroutine.wrap(GVJGH_fake_script)()
local function QYAGET_fake_script() -- Taunt.LocalScript
local script = Instance.new('LocalScript', Taunt)
local activ = false
script.Parent.MouseButton1Click:Connect(function()
if activ == false then
activ = true
Taunt.Text = "Disable"
lol = true
elseif activ == true then
activ = false
Taunt.Text = "Enable"
lol = false
setfpscap(60)
end
end)
end
coroutine.wrap(QYAGET_fake_script)()
end