1 | --[[Fling GUI]]-- |
2 | --[[by RRixh aka lulaslollipop]]-- |
3 | --added smooth dragging |
4 | --removed unused variables |
5 | |
6 | --[[4/19/2021]]-- |
7 | --klose button |
8 | |
9 | |
10 | |
11 | --[[variables:]]-- |
12 | local PlayerService = game:GetService("Players")--:GetPlayers() |
13 | local TweenService = game:GetService("TweenService") |
14 | local RunService = game:GetService("RunService") |
15 | local UserInputService = game:GetService("UserInputService") |
16 | |
17 | local plr = PlayerService.LocalPlayer |
18 | local mouse = plr:GetMouse() |
19 | local BodyThrust = nil |
20 | local Dragging = {} |
21 | |
22 | local Suggestions = { |
23 | 2298830673, 300, 365, --gamier (test game) |
24 | 1537690962, 250, 350, --bee swarm sim |
25 | 5580097107, 300, 400, --frappe |
26 | 2202352383, 275, 350, --super power training sim |
27 | 142823291, 350, 425, --murder mystery 2 |
28 | 155615604, 273, 462, --prison life |
29 | 1990228024, 200, 235, --bloxton hotels |
30 | 189707, 250, 325, --natural disaster survival |
31 | 230362888, 265, 415, --the normal elevator (may not work) |
32 | 5293755937, 335, 435, --speedrun sim |
33 | 537413528, 300, 350, --build a boat (may not work) |
34 | 18540115, 300, 425, --survive the disasters |
35 | 2041312716, 350, 465 --Ragdoll engine |
36 | } |
37 | |
38 | |
39 | local version = "v1.0.1" |
40 | local font = Enum.Font.FredokaOne |
41 | |
42 | local AxisPositionX = { |
43 | 0.05, |
44 | 0.35, |
45 | 0.65 |
46 | } |
47 | |
48 | local AxisPositionY = { |
49 | 40, --edit fling speed |
50 | 90, --toggle fling types (normal, qfling, serverkek) |
51 | 140, --extra (respawn) |
52 | 190, --edit gui settings (hotkey, theme) |
53 | 240 |
54 | } |
55 | |
56 | local Fling = { |
57 | false, --toggle |
58 | "", --hotkey |
59 | 300, --speed |
60 | false, --server |
61 | false --stop vertfling |
62 | } |
63 | |
64 | |
65 | --[[themes:]]-- |
66 | |
67 | local Theme_JeffStandard = { |
68 | Color3.fromRGB(15, 25, 35), |
69 | Color3.fromRGB(10, 20, 30), |
70 | Color3.fromRGB(27, 42, 53), |
71 | Color3.fromRGB(25, 35, 45), |
72 | Color3.fromRGB(20, 30, 40), |
73 | Color3.fromRGB(25, 65, 45), |
74 | Color3.fromRGB(255, 255, 255), |
75 | Color3.fromRGB(245, 245, 255), |
76 | Color3.fromRGB(155, 155, 255) |
77 | } |
78 | local Theme_Dark = { |
79 | Color3.fromRGB(25, 25, 25), --Top bar |
80 | Color3.fromRGB(10, 10, 10), --Background |
81 | Color3.fromRGB(40, 40, 40), --Border color |
82 | Color3.fromRGB(35, 35, 35), --Button background |
83 | Color3.fromRGB(20, 20, 20), --Unused |
84 | Color3.fromRGB(25, 100, 45), --Button highlight |
85 | Color3.fromRGB(255, 255, 255),--Text title |
86 | Color3.fromRGB(245, 245, 255),--Text generic |
87 | Color3.fromRGB(155, 155, 255) --Text highlight |
88 | } |
89 | local Theme_Steel = { |
90 | Color3.fromRGB(25, 25, 35), --Top bar |
91 | Color3.fromRGB(10, 10, 20), --Background |
92 | Color3.fromRGB(40, 40, 50), --Border color |
93 | Color3.fromRGB(35, 35, 45), --Button background |
94 | Color3.fromRGB(20, 20, 25), --Unused |
95 | Color3.fromRGB(25, 100, 55), --Button highlight |
96 | Color3.fromRGB(255, 255, 255),--Text title |
97 | Color3.fromRGB(245, 245, 255),--Text generic |
98 | Color3.fromRGB(155, 155, 255) --Text highlight |
99 | } |
100 | local Theme_Rust = { |
101 | Color3.fromRGB(45, 25, 25), |
102 | Color3.fromRGB(30, 10, 10), |
103 | Color3.fromRGB(60, 40, 40), |
104 | Color3.fromRGB(55, 35, 35), |
105 | Color3.fromRGB(40, 20, 20), |
106 | Color3.fromRGB(45, 100, 45), |
107 | Color3.fromRGB(255, 255, 255), |
108 | Color3.fromRGB(255, 245, 255), |
109 | Color3.fromRGB(175, 155, 255) |
110 | } |
111 | local Theme_Violet = { |
112 | Color3.fromRGB(35, 25, 45), --Top bar |
113 | Color3.fromRGB(20, 10, 30), --Background |
114 | Color3.fromRGB(50, 40, 60), --Border color |
115 | Color3.fromRGB(45, 35, 55), --Button background |
116 | Color3.fromRGB(30, 20, 40), --Unused |
117 | Color3.fromRGB(35, 100, 65), --Button highlight |
118 | Color3.fromRGB(255, 255, 255),--Text title |
119 | Color3.fromRGB(245, 245, 255),--Text generic |
120 | Color3.fromRGB(155, 155, 255) --Text highlight |
121 | } |
122 | local Theme_Space = { |
123 | Color3.fromRGB(10, 10, 10), --Top bar |
124 | Color3.fromRGB(0, 0, 0), --Background |
125 | Color3.fromRGB(20, 20, 20), --Border color |
126 | Color3.fromRGB(15, 15, 15), --Button background |
127 | Color3.fromRGB(5, 5, 5), --Unused |
128 | Color3.fromRGB(20, 25, 50), --Button highlight |
129 | Color3.fromRGB(255, 255, 255),--Text title |
130 | Color3.fromRGB(245, 245, 255),--Text generic |
131 | Color3.fromRGB(155, 155, 255) --Text highlight |
132 | } |
133 | local Theme_SynX = { |
134 | Color3.fromRGB(75, 75, 75), --Top bar |
135 | Color3.fromRGB(45, 45, 45), --Background |
136 | Color3.fromRGB(45, 45, 45), --Border color |
137 | Color3.fromRGB(75, 75, 75), --Button background |
138 | Color3.fromRGB(0, 0, 5), --Unused |
139 | Color3.fromRGB(150, 75, 20), --Button highlight |
140 | Color3.fromRGB(255, 255, 255),--Text title |
141 | Color3.fromRGB(245, 245, 255),--Text generic |
142 | Color3.fromRGB(155, 155, 255) --Text highlight |
143 | } |
144 | |
145 | |
146 | local selekted = math.random(1,6) |
147 | if selekted == 1 then |
148 | selekted = Theme_Steel |
149 | elseif selekted == 2 then |
150 | selekted = Theme_Dark |
151 | elseif selekted == 3 then |
152 | selekted = Theme_Rust |
153 | elseif selekted == 4 then |
154 | selekted = Theme_Violet |
155 | elseif selekted == 5 then |
156 | selekted = Theme_Space |
157 | elseif selekted == 6 then |
158 | if syn then |
159 | selekted = Theme_SynX |
160 | else |
161 | selekted = Theme_JeffStandard |
162 | end |
163 | end |
164 | |
165 | |
166 | --[[i]]-- |
167 | local ScreenGui = Instance.new("ScreenGui") |
168 | local TitleBar = Instance.new("Frame") |
169 | local Shadow = Instance.new("Frame") |
170 | local Menu = Instance.new("ScrollingFrame") |
171 | |
172 | local TitleText = Instance.new("TextLabel") |
173 | local TitleTextShadow = Instance.new("TextLabel") |
174 | local CreditText = Instance.new("TextLabel") |
175 | local SuggestionText = Instance.new("TextLabel") |
176 | |
177 | local SpeedBox = Instance.new("TextBox") |
178 | local Hotkey = Instance.new("TextBox") |
179 | |
180 | local SpeedUp = Instance.new("TextButton") |
181 | local SpeedDown = Instance.new("TextButton") |
182 | local ToggleFling = Instance.new("TextButton") |
183 | local ToggleServerKill = Instance.new("TextButton") |
184 | local NoVertGain = Instance.new("TextButton") |
185 | local Respawn = Instance.new("TextButton") |
186 | local CloseButton = Instance.new("TextButton") |
187 | |
188 | --local BodyThrust = Instance.new("BodyThrust") |
189 | |
190 | ScreenGui.Name = "JeffFling" |
191 | ScreenGui.Parent = game.CoreGui |
192 | ScreenGui.Enabled = true |
193 | |
194 | TitleBar.Name = "Title Bar" |
195 | TitleBar.Parent = ScreenGui |
196 | TitleBar.BackgroundColor3 = SelectedTheme[1] |
197 | TitleBar.BorderColor3 = SelectedTheme[3] |
198 | TitleBar.Position = UDim2.new(-0.3, 0, 0.7, 0) |
199 | TitleBar.Size = UDim2.new(0, 400, 0, 250) |
200 | TitleBar.Draggable = true |
201 | TitleBar.Active = true |
202 | TitleBar.Selectable = true |
203 | TitleBar.ZIndex = 100 |
204 | |
205 | Shadow.Name = "Shadow" |
206 | Shadow.Parent = TitleBar |
207 | Shadow.BackgroundColor3 = Color3.fromRGB(0, 0, 0) |
208 | Shadow.BackgroundTransparency = 0.5 |
209 | Shadow.BorderSizePixel = 0 |
210 | Shadow.Position = UDim2.new(0, 5, 0, 5) |
211 | Shadow.Size = TitleBar.Size |
212 | Shadow.ZIndex = 50 |
213 | |
214 | Menu.Name = "Menu" |
215 | Menu.Parent = TitleBar |
216 | Menu.BackgroundColor3 = SelectedTheme[2] |
217 | Menu.BorderColor3 = SelectedTheme[3] |
218 | Menu.AnchorPoint = Vector2.new(0,0) |
219 | Menu.Position = UDim2.new(0, 0, 0, 50) |
220 | Menu.Size = UDim2.new(0, 400, 0, 200) |
221 | Menu.CanvasSize = UDim2.new(0, TitleBar.Size.X, 0, 325) |
222 | Menu.ScrollBarImageTransparency = 0.5 |
223 | Menu.ZIndex = 200 |
224 | |
225 | TitleText.Name = "Title Text" |
226 | TitleText.Parent = TitleBar |
227 | TitleText.AnchorPoint = Vector2.new(0, 0) |
228 | TitleText.Position = UDim2.new(0, 100, 0, 25) |
229 | TitleText.Font = font |
230 | TitleText.Text = "fling gui "..version |
231 | TitleText.TextColor3 = SelectedTheme[8] |
232 | TitleText.TextSize = 28 |
233 | TitleText.ZIndex = 300 |
234 | TitleText.BackgroundTransparency = 1 |
235 | |
236 | TitleTextShadow.Name = "Shadow" |
237 | TitleTextShadow.Parent = TitleText |
238 | TitleTextShadow.Font = font |
239 | TitleTextShadow.Text = "fling gui "..version |
240 | TitleTextShadow.TextSize = 28 |
241 | TitleTextShadow.TextColor3 = Color3.fromRGB(0, 0, 0) |
242 | TitleTextShadow.TextTransparency = 0.5 |
243 | TitleTextShadow.Position = UDim2.new(0, 5, 0, 5) |
244 | TitleTextShadow.ZIndex = 250 |
245 | TitleTextShadow.BackgroundTransparency = 1 |
246 | |
247 | SuggestionText.Name = "Suggestion Text" |
248 | SuggestionText.Parent = Menu |
249 | SuggestionText.Position = UDim2.new(0, 20, 0, 250) |
250 | SuggestionText.Font = font |
251 | SuggestionText.Text = "e" |
252 | SuggestionText.TextColor3 = SelectedTheme[7] |
253 | SuggestionText.TextSize = 24 |
254 | SuggestionText.TextXAlignment = Enum.TextXAlignment.Left |
255 | SuggestionText.ZIndex = 300 |
256 | SuggestionText.BackgroundTransparency = 1 |
257 | |
258 | CreditText.Name = "Kredit Text" |
259 | CreditText.Parent = Menu |
260 | CreditText.Position = UDim2.new(0, 20, 0, 300) |
261 | CreditText.Font = font |
262 | CreditText.Text = "made by lulaslollipop🍭" |
263 | CreditText.TextColor3 = SelectedTheme[7] |
264 | CreditText.TextSize = 20 |
265 | CreditText.TextXAlignment = Enum.TextXAlignment.Left |
266 | CreditText.ZIndex = 300 |
267 | CreditText.BackgroundTransparency = 1 |
268 | |
269 | SpeedBox.Name = "Speed setting" |
270 | SpeedBox.Parent = Menu |
271 | SpeedBox.BackgroundColor3 = SelectedTheme[4] |
272 | SpeedBox.BorderColor3 = SelectedTheme[3] |
273 | SpeedBox.TextColor3 = SelectedTheme[7] |
274 | SpeedBox.Position = UDim2.new(AxisPositionX[1], 0, 0, AxisPositionY[1]) |
275 | SpeedBox.Size = UDim2.new(0, 100, 0, 25) |
276 | SpeedBox.Font = Enum.Font.FredokaOne |
277 | SpeedBox.Text = "speed: "..Fling[3] |
278 | SpeedBox.PlaceholderText = "Enter custom speed" |
279 | SpeedBox.TextScaled = true |
280 | SpeedBox.ZIndex = 300 |
281 | |
282 | Hotkey.Name = "Custom Hotkey" |
283 | Hotkey.Parent = Menu |
284 | Hotkey.BackgroundColor3 = SelectedTheme[4] |
285 | Hotkey.BorderColor3 = SelectedTheme[3] |
286 | Hotkey.TextColor3 = SelectedTheme[7] |
287 | Hotkey.Position = UDim2.new(AxisPositionX[2], 0, 0, AxisPositionY[3]) |
288 | Hotkey.Size = UDim2.new(0, 100, 0, 25) |
289 | Hotkey.Font = Enum.Font.FredokaOne |
290 | Hotkey.Text = "enter new hotkey" |
291 | Hotkey.PlaceholderText = "fag" |
292 | Hotkey.TextScaled = true |
293 | Hotkey.ZIndex = 300 |
294 | |
295 | SpeedUp.Name = "Speed Up" |
296 | SpeedUp.Parent = Menu |
297 | SpeedUp.BackgroundColor3 = SelectedTheme[4] |
298 | SpeedUp.BorderColor3 = SelectedTheme[3] |
299 | SpeedUp.TextColor3 = SelectedTheme[7] |
300 | SpeedUp.Position = UDim2.new((AxisPositionX[2]), 0, 0, (AxisPositionY[1])) |
301 | SpeedUp.Size = UDim2.new(0, 100, 0, 25) |
302 | SpeedUp.Font = Enum.Font.FredokaOne |
303 | SpeedUp.Text = "↑" |
304 | SpeedUp.TextScaled = true |
305 | SpeedUp.ZIndex = 300 |
306 | |
307 | SpeedDown.Name = "Speed Down" |
308 | SpeedDown.Parent = Menu |
309 | SpeedDown.BackgroundColor3 = SelectedTheme[4] |
310 | SpeedDown.BorderColor3 = SelectedTheme[3] |
311 | SpeedDown.TextColor3 = SelectedTheme[7] |
312 | SpeedDown.Position = UDim2.new((AxisPositionX[3]), 0, 0, (AxisPositionY[1])) |
313 | SpeedDown.Size = UDim2.new(0, 100, 0, 25) |
314 | SpeedDown.Font = Enum.Font.FredokaOne |
315 | SpeedDown.Text = "↓" |
316 | SpeedDown.TextScaled = true |
317 | SpeedDown.ZIndex = 300 |
318 | |
319 | ToggleFling.Name = "Fling toggle" |
320 | ToggleFling.Parent = Menu |
321 | ToggleFling.BackgroundColor3 = SelectedTheme[4] |
322 | ToggleFling.BorderColor3 = SelectedTheme[3] |
323 | ToggleFling.TextColor3 = SelectedTheme[7] |
324 | ToggleFling.Position = UDim2.new((AxisPositionX[1]), 0, 0, (AxisPositionY[2])) |
325 | ToggleFling.Size = UDim2.new(0, 100, 0, 25) |
326 | ToggleFling.Font = Enum.Font.FredokaOne |
327 | ToggleFling.Text = "toggle fling" |
328 | ToggleFling.TextScaled = true |
329 | ToggleFling.ZIndex = 300 |
330 | |
331 | Respawn.Name = "Respawn" |
332 | Respawn.Parent = Menu |
333 | Respawn.BackgroundColor3 = SelectedTheme[4] |
334 | Respawn.BorderColor3 = SelectedTheme[3] |
335 | Respawn.TextColor3 = SelectedTheme[7] |
336 | Respawn.Position = UDim2.new((AxisPositionX[1]), 0, 0, (AxisPositionY[3])) |
337 | Respawn.Size = UDim2.new(0, 100, 0, 25) |
338 | Respawn.Font = Enum.Font.FredokaOne |
339 | Respawn.Text = "fix player" |
340 | Respawn.TextScaled = true |
341 | Respawn.ZIndex = 300 |
342 | |
343 | NoVertGain.Name = "NoVertGain" |
344 | NoVertGain.Parent = Menu |
345 | NoVertGain.BackgroundColor3 = SelectedTheme[4] |
346 | NoVertGain.BorderColor3 = SelectedTheme[3] |
347 | NoVertGain.TextColor3 = SelectedTheme[7] |
348 | NoVertGain.Position = UDim2.new((AxisPositionX[2]), 0, 0, (AxisPositionY[2])) |
349 | NoVertGain.Size = UDim2.new(0, 100, 0, 25) |
350 | NoVertGain.Font = Enum.Font.FredokaOne |
351 | NoVertGain.Text = "soften vertikal fling" |
352 | NoVertGain.TextScaled = true |
353 | NoVertGain.ZIndex = 300 |
354 | |
355 | ToggleServerKill.Name = "" |
356 | ToggleServerKill.Parent = Menu |
357 | ToggleServerKill.BackgroundColor3 = SelectedTheme[4] |
358 | ToggleServerKill.BorderColor3 = SelectedTheme[3] |
359 | ToggleServerKill.TextColor3 = SelectedTheme[7] |
360 | ToggleServerKill.Position = UDim2.new((AxisPositionX[3]), 0, 0, (AxisPositionY[2])) |
361 | ToggleServerKill.Size = UDim2.new(0, 100, 0, 25) |
362 | ToggleServerKill.Font = Enum.Font.FredokaOne |
363 | ToggleServerKill.Text = "server kik" |
364 | ToggleServerKill.TextScaled = true |
365 | ToggleServerKill.ZIndex = 300 |
366 | |
367 | CloseButton.Name = "Klose Button" |
368 | CloseButton.AnchorPoint = Vector2.new(1, 0) |
369 | CloseButton.Parent = TitleBar |
370 | CloseButton.BackgroundColor3 = SelectedTheme[4] |
371 | CloseButton.BorderColor3 = SelectedTheme[3] |
372 | CloseButton.TextColor3 = SelectedTheme[7] |
373 | CloseButton.Position = UDim2.new(1, 0, 0, 0) |
374 | CloseButton.Size = UDim2.new(0, 25, 0, 25) |
375 | CloseButton.Font = Enum.Font.FredokaOne |
376 | CloseButton.Text = "X" |
377 | CloseButton.ZIndex = 300 |
378 | CloseButton.TextSize = 14 |
379 | |
380 | --BodyThrust.Name = "Power" |
381 | --BodyThrust.Parent = plr.Character.Torso |
382 | --BodyThrust.Force = Vector3.new(0, 0, 0) |
383 | --BodyThrust.Location = Vector3.new(0, 0, 0) |
384 | |
385 | --[[functions:]]-- |
386 | local function DisplayText(title, text, duration) |
387 | duration = duration or 1 |
388 | game.StarterGui:SetCore("SendNotification", |
389 | { |
390 | Title = title; |
391 | Text = text; |
392 | Icon = ""; |
393 | Duration = duration; |
394 | } |
395 | ) |
396 | end |
397 | |
398 | local function DisplaySuggestion() |
399 | for i,v in pairs(Suggestions) do |
400 | if v >= 9999 and v == game.PlaceId then |
401 | DisplayText("detekted kurrent game!","suggested speed: "..Suggestions[i+1].." - "..Suggestions[i+2]) |
402 | SuggestionText.Text = "suggested speed: "..Suggestions[i+1].." - "..Suggestions[i+2] |
403 | end |
404 | end |
405 | if SuggestionText.Text == "e" then |
406 | SuggestionText.Text = "no suggestion for this game" |
407 | end |
408 | end |
409 | |
410 | |
411 | local function GetRigType() |
412 | |
413 | if plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R15 then |
414 | return Enum.HumanoidRigType.R15 |
415 | elseif plr.Character.Humanoid.RigType == Enum.HumanoidRigType.R6 then |
416 | return Enum.HumanoidRigType.R6 |
417 | else |
418 | return nil |
419 | end |
420 | end |
421 | |
422 | local function GetDeadState(player) |
423 | if player.Character.Humanoid:GetState() == Enum.HumanoidStateType.Dead then |
424 | return true |
425 | else |
426 | return false |
427 | end |
428 | end |
429 | |
430 | |
431 | local function EnableNoClip() |
432 | |
433 | if GetDeadState(plr) == false then |
434 | if GetRigType() == Enum.HumanoidRigType.R6 then |
435 | plr.Character:FindFirstChild("Torso").CanCollide = false |
436 | plr.Character:FindFirstChild("Head").CanCollide = false |
437 | plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = false |
438 | elseif GetRigType() == Enum.HumanoidRigType.R15 then |
439 | plr.Character:FindFirstChild("UpperTorso").CanCollide = false |
440 | plr.Character:FindFirstChild("LowerTorso").CanCollide = false |
441 | plr.Character:FindFirstChild("Head").CanCollide = false |
442 | plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = false |
443 | end |
444 | end |
445 | end |
446 | |
447 | local function DisableNoClip() |
448 | |
449 | if GetDeadState(plr) == false then |
450 | if GetRigType() == Enum.HumanoidRigType.R6 then |
451 | plr.Character:FindFirstChild("Torso").CanCollide = true |
452 | plr.Character:FindFirstChild("Head").CanCollide = true |
453 | plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = true |
454 | elseif GetRigType() == Enum.HumanoidRigType.R15 then |
455 | plr.Character:FindFirstChild("UpperTorso").CanCollide = true |
456 | plr.Character:FindFirstChild("LowerTorso").CanCollide = true |
457 | plr.Character:FindFirstChild("Head").CanCollide = true |
458 | plr.Character:FindFirstChild("HumanoidRootPart").CanCollide = true |
459 | end |
460 | end |
461 | end |
462 | |
463 | local function OpenObject(object) |
464 | local OpenAnim = TweenService:Create( |
465 | object, |
466 | TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), --Enum.EasingStyle.Linear, Enum.EasingDirection.In |
467 | {Size = UDim2.new(0, 110, 0, 35), BackgroundColor3 = SelectedTheme[6] } |
468 | ) |
469 | |
470 | OpenAnim:Play() |
471 | end |
472 | |
473 | local function CloseObject(object) |
474 | local CloseAnim = TweenService:Create( |
475 | object, |
476 | TweenInfo.new(0.25, Enum.EasingStyle.Exponential, Enum.EasingDirection.Out), |
477 | {Size = UDim2.new(0, 100, 0, 25), BackgroundColor3 = SelectedTheme[4] } |
478 | ) |
479 | |
480 | CloseAnim:Play() |
481 | end |
482 | |
483 | |
484 | local function TToggleFling() |
485 | Fling[1] = not Fling[1] |
486 | if Fling[1] then |
487 | OpenObject(ToggleFling) |
488 | |
489 | BodyThrust = Instance.new("BodyThrust") |
490 | if GetRigType() == Enum.HumanoidRigType.R6 then |
491 | BodyThrust.Parent = plr.Character.Torso |
492 | elseif GetRigType() == Enum.HumanoidRigType.R15 then |
493 | BodyThrust.Parent = plr.Character.UpperTorso |
494 | end |
495 | |
496 | EnableNoClip() |
497 | BodyThrust.Force = Vector3.new(Fling[3], 0, 0) |
498 | BodyThrust.Location = Vector3.new(0, 0, Fling[3]) |
499 | |
500 | |
501 | print("fling enabled") |
502 | else |
503 | CloseObject(ToggleFling) |
504 | |
505 | DisableNoClip() |
506 | for i, v in pairs(plr.Character:GetDescendants()) do |
507 | if v:IsA("BasePart") then |
508 | v.Velocity, v.RotVelocity = Vector3.new(0, 0, 0), Vector3.new(0, 0, 0) |
509 | end |
510 | end |
511 | BodyThrust:Destroy() |
512 | |
513 | print("disabled fling") |
514 | |
515 | end |
516 | end |
517 | |
518 | local function GetIfPlayerInGame(PlayerToFind) |
519 | if PlayerService:FindFirstChild(PlayerToFind) then |
520 | return true |
521 | else |
522 | return false |
523 | end |
524 | end |
525 | |
526 | local function ServerKek() |
527 | local TargetList = {} |
528 | local index = 1 |
529 | local playercount = 0 |
530 | |
531 | if Fling[1] == true then |
532 | TToggleFling() |
533 | end |
534 | |
535 | for i,v in pairs(PlayerService:GetPlayers()) do |
536 | if v ~= plr then |
537 | playercount = playercount + 1 |
538 | table.insert(TargetList, v) |
539 | end |
540 | end |
541 | |
542 | for i,v in pairs(TargetList) do |
543 | print(i,v.Name) |
544 | end |
545 | |
546 | |
547 | while Fling[4] do |
548 | if index > playercount then |
549 | CloseObject(ToggleServerKill) |
550 | DisplayText("disabled serverkik","finished") |
551 | Fling[4] = false |
552 | break |
553 | else |
554 | local InGame = GetIfPlayerInGame(TargetList[index].Name) |
555 | local Dead = GetDeadState(TargetList[index]) |
556 | if InGame == true and Dead == false then |
557 | plr.Character.HumanoidRootPart.CFrame = TargetList[index].Character.HumanoidRootPart.CFrame --tp to them |
558 | |
559 | TToggleFling() --enable fling |
560 | |
561 | for i = 0,2,1 do |
562 | plr.Character.HumanoidRootPart.CFrame = TargetList[index].Character.HumanoidRootPart.CFrame |
563 | wait(0.15) |
564 | end |
565 | |
566 | TToggleFling() --disable fling |
567 | |
568 | wait(0.1) --wait until disabled |
569 | |
570 | if plr.Character.Humanoid:GetState() == Enum.HumanoidStateType.Seated then --check if seated |
571 | plr.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Running) --get out if you are |
572 | end |
573 | |
574 | index = index + 1 --go to next victim |
575 | |
576 | if Fling[4] == false then |
577 | break |
578 | end |
579 | else |
580 | index = index + 1 |
581 | end |
582 | end |
583 | end |
584 | end |
585 | |
586 | --[[events:]]-- |
587 | CloseButton.MouseButton1Down:Connect(function() |
588 | TitleBar:TweenPosition(UDim2.new(-0.3, 0, 0.7, 0), Enum.EasingDirection.In, Enum.EasingStyle.Back, 0.75) |
589 | DisplayText("bye!","") |
590 | wait(0.8) |
591 | ScreenGui.Enabled = false |
592 | ScreenGui:Destroy() |
593 | script:Destroy() |
594 | end) |
595 | |
596 | SpeedUp.MouseButton1Down:Connect(function() |
597 | Fling[3] = Fling[3] + 50 |
598 | SpeedBox.Text = "speed: "..Fling[3] |
599 | |
600 | if Fling[1] then |
601 | BodyThrust.Force = Vector3.new(Fling[3], 0, 0) |
602 | BodyThrust.Location = Vector3.new(0, 0, Fling[3]) |
603 | end |
604 | end) |
605 | |
606 | SpeedDown.MouseButton1Down:Connect(function() |
607 | Fling[3] = Fling[3] - 50 |
608 | SpeedBox.Text = "speed: "..Fling[3] |
609 | |
610 | if Fling[1] then |
611 | BodyThrust.Force = Vector3.new(Fling[3], 0, 0) |
612 | BodyThrust.Location = Vector3.new(0, 0, Fling[3]) |
613 | end |
614 | end) |
615 | |
616 | SpeedBox.FocusLost:Connect(function() |
617 | Fling[3] = SpeedBox.Text:gsub("%D",""):sub(0,5) |
618 | if Fling[3] ~= nil then |
619 | SpeedBox.Text = "speed: "..Fling[3] |
620 | if Fling[1] then |
621 | BodyThrust.Force = Vector3.new(Fling[3], 0, 0) |
622 | BodyThrust.Location = Vector3.new(0, 0, Fling[3]) |
623 | end |
624 | end |
625 | |
626 | end) |
627 | |
628 | Hotkey.FocusLost:Connect(function() |
629 | Fling[2] = Hotkey.Text:split(" ")[1]:sub(1,1) |
630 | if Fling[2] ~= nil then |
631 | Hotkey.Text = "hotkey: "..Fling[2] |
632 | end |
633 | end) |
634 | |
635 | |
636 | ToggleFling.MouseButton1Down:Connect(function() |
637 | TToggleFling() |
638 | end) |
639 | |
640 | Respawn.MouseButton1Down:Connect(function() |
641 | |
642 | if Fling[1] then --disable fling if its enabled |
643 | TToggleFling() |
644 | end |
645 | |
646 | wait(0.4) --wait for fling to stop |
647 | |
648 | for i=0,10,1 do |
649 | plr.Character.Humanoid:ChangeState(2) --make player rekover from falling |
650 | end |
651 | |
652 | for i, v in pairs(plr.Character:GetDescendants()) do |
653 | if v:IsA("BasePart") then |
654 | v.Velocity, v.RotVelocity = Vector3.new(0, 0, 0), Vector3.new(0, 0, 0) |
655 | end |
656 | end |
657 | end) |
658 | |
659 | ToggleServerKill.MouseButton1Down:Connect(function() |
660 | Fling[4] = not Fling[4] |
661 | if Fling[4] then |
662 | OpenObject(ToggleServerKill) |
663 | DisplayText("serverkik disabled","") |
664 | ServerKek() |
665 | else |
666 | CloseObject(ToggleServerKill) |
667 | DisplayText("server kik disabled","there might be a delay!") |
668 | end |
669 | |
670 | end) |
671 | |
672 | NoVertGain.MouseButton1Down:Connect(function() |
673 | Fling[5] = not Fling[5] |
674 | if Fling[5] then |
675 | OpenObject(NoVertGain) |
676 | else |
677 | CloseObject(NoVertGain) |
678 | end |
679 | end) |
680 | |
681 | RunService.Stepped:Connect(function() |
682 | if Fling[1] then |
683 | EnableNoClip() |
684 | elseif Fling[5] then |
685 | for i, v in pairs(plr.Character:GetDescendants()) do |
686 | if v:IsA("BasePart") then |
687 | v.Velocity, v.RotVelocity = Vector3.new(0, 0, 0), Vector3.new(0, 0, 0) |
688 | end |
689 | end |
690 | end |
691 | end) |
692 | |
693 | TitleBar.InputBegan:Connect(function(input) |
694 | if input.UserInputType == Enum.UserInputType.MouseButton1 then |
695 | Dragging[1] = true |
696 | Dragging[2] = input.Position |
697 | Dragging[3] = TitleBar.Position |
698 | end |
699 | end) |
700 | |
701 | TitleBar.InputEnded:Connect(function(input) |
702 | if input.UserInputType == Enum.UserInputType.MouseButton1 then |
703 | Dragging[1] = false |
704 | end |
705 | end) |
706 | |
707 | UserInputService.InputChanged:Connect(function(input) |
708 | if input.UserInputType == Enum.UserInputType.MouseMovement then |
709 | if Dragging[1] then |
710 | local delta = input.Position - Dragging[2] |
711 | TitleBar:TweenPosition(UDim2.new(Dragging[3].X.Scale, Dragging[3].X.Offset + delta.X, Dragging[3].Y.Scale, Dragging[3].Y.Offset + delta.Y), Enum.EasingDirection.Out, Enum.EasingStyle.Sine, 0.035) |
712 | wait() |
713 | end |
714 | end |
715 | end) |
716 | |
717 | mouse.KeyDown:Connect(function(key) |
718 | if key == Fling[2] then |
719 | TToggleFling() |
720 | end |
721 | end) |
722 | |
723 | |
724 | DisplaySuggestion() |
725 | TitleBar:TweenPosition(UDim2.new(0.25, 0, 0.7, 0), Enum.EasingDirection.Out, Enum.EasingStyle.Back, 0.75) |
726 | DisplayText("loaded fling gui "..version, "made by lulaslollipop🍭", 3) |
727 | return nil |