R

unvrsl fly

public
rrixh Apr 04, 2024 Never 106
Clone
Plaintext unvrslflygui_lulaslollipop.jpg 162 lines (138 loc) | 5.36 KB
1
--[[
2
lulas
3
]]--
4
5
local STARTERGUI = game:GetService("StarterGui")
6
7
if game:GetService("ReplicatedStorage"):FindFirstChild("BZn2q91BzN") then
8
STARTERGUI:SetCore("SendNotification",{
9
Title = "lollypop mobile fly🍭",
10
Text = "skript is already running",
11
Icon = "rbxassetid://17246669824",
12
Duration = 4
13
})
14
return
15
end
16
17
local ScreenGui = Instance.new("ScreenGui")
18
local FlyButton = Instance.new("TextButton")
19
local SpeedBox = Instance.new("TextBox")
20
21
local NSound = Instance.new("Sound", FlyButton)
22
NSound.SoundId = "rbxassetid://9086208751"
23
NSound.Volume = 1
24
25
function Notify(Txt, Dur)
26
STARTERGUI:SetCore("SendNotification",{
27
Title = "lollypop mobile fly🍭",
28
Text = Txt,
29
Icon = "rbxassetid://17246669824",
30
Duration = Dur
31
})
32
NSound:Play()
33
end
34
35
-- detekt if skript: already ran
36
37
local VdbwjS = Instance.new("StringValue",game:GetService("ReplicatedStorage"))
38
VdbwjS.Name = "BZn2q91BzN"
39
40
Notify("lulas🍭", 5)
41
42
local plr = game:GetService"Players"
43
local Lp = plr.LocalPlayer
44
local rs = game:GetService"RunService"
45
local UserInputService = game:GetService"UserInputService"
46
47
local buttonIsOn = false
48
49
ScreenGui.Parent = game:GetService("CoreGui")
50
ScreenGui.ResetOnSpawn = false
51
52
FlyButton.Name = "FlyButton"
53
FlyButton.Parent = ScreenGui
54
FlyButton.BackgroundColor3 = Color3.new(0.168627, 0.513726, 0.25098)
55
FlyButton.BorderColor3 = Color3.new(0,0,0)
56
FlyButton.Position = UDim2.new(0.912970064, 0, 0.194202876, 0)
57
FlyButton.Size = UDim2.new(0, 50, 0, 50)
58
FlyButton.Font = Enum.Font.Code
59
FlyButton.Text = "stop flying"
60
FlyButton.TextColor3 = Color3.new(0,0,0)
61
FlyButton.TextSize = 14
62
FlyButton.TextStrokeColor3 = Color3.new(1, 1, 1)
63
FlyButton.TextWrapped = true
64
FlyButton.Transparency = 0.2
65
FlyButton.Active = true
66
FlyButton.Draggable = true
67
68
SpeedBox.Name = "SpeedBox"
69
SpeedBox.Parent = FlyButton
70
SpeedBox.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
71
SpeedBox.Position = UDim2.new(-1.716970064, 0, 0.004202876, 0)
72
SpeedBox.Size = UDim2.new(0, 80, 0, 50)
73
SpeedBox.Font = Enum.Font.Code
74
SpeedBox.PlaceholderText = "runniggarun🏃🏽‍♂️💨"
75
SpeedBox.Text = "typeshithere"
76
SpeedBox.TextColor3 = Color3.fromRGB(0, 0, 0)
77
SpeedBox.TextScaled = true
78
SpeedBox.TextSize = 14.000
79
SpeedBox.TextWrapped = true
80
81
local controlModule = require(Lp.PlayerScripts:WaitForChild('PlayerModule'):WaitForChild("ControlModule"))
82
-- get joystixk
83
84
local bv = Instance.new("BodyVelocity")
85
bv.Name = "VelocityHandler"
86
bv.Parent = Lp.Character.HumanoidRootPart
87
bv.MaxForce = Vector3.new(0,0,0)
88
bv.Velocity = Vector3.new(0,0,0)
89
90
local bg = Instance.new("BodyGyro")
91
bg.Name = "GyroHandler"
92
bg.Parent = Lp.Character.HumanoidRootPart
93
bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
94
bg.P = 1000
95
bg.D = 50
96
97
local Signal1
98
Signal1 = Lp.CharacterAdded:Connect(function(NewChar)
99
local bv = Instance.new("BodyVelocity")
100
bv.Name = "VelocityHandler"
101
bv.Parent = NewChar:WaitForChild("Humanoid").RootPart
102
bv.MaxForce = Vector3.new(0,0,0)
103
bv.Velocity = Vector3.new(0,0,0)
104
105
local bg = Instance.new("BodyGyro")
106
bg.Name = "GyroHandler"
107
bg.Parent = NewChar:WaitForChild("Humanoid").RootPart
108
bg.MaxTorque = Vector3.new(9e9,9e9,9e9)
109
bg.P = 1000
110
bg.D = 50
111
end)
112
113
local camera = Workspace.CurrentCamera
114
local speed = 50
115
116
local Signal2
117
Signal2 = rs.RenderStepped:Connect(function()
118
if Lp.Character and Lp.Character:FindFirstChildOfClass("Humanoid") and Lp.Character.Humanoid.RootPart and Lp.Character.HumanoidRootPart:FindFirstChild("VelocityHandler") and Lp.Character.HumanoidRootPart:FindFirstChild("GyroHandler") then
119
120
if buttonIsOn then
121
FlyButton.Text = "fly"
122
FlyButton.BackgroundColor3 = Color3.new(0,255,0)
123
Lp.Character.HumanoidRootPart.VelocityHandler.MaxForce = Vector3.new(9e9,9e9,9e9)
124
Lp.Character.HumanoidRootPart.GyroHandler.MaxTorque = Vector3.new(9e9,9e9,9e9)
125
Lp.Character.Humanoid.PlatformStand = true
126
elseif buttonIsOn == false then
127
FlyButton.Text = "fly"
128
FlyButton.BackgroundColor3 = Color3.new(255,0,0)
129
Lp.Character.HumanoidRootPart.VelocityHandler.MaxForce = Vector3.new(0,0,0)
130
Lp.Character.HumanoidRootPart.GyroHandler.MaxTorque = Vector3.new(0,0,0)
131
Lp.Character.Humanoid.PlatformStand = false
132
return
133
end
134
135
Lp.Character.HumanoidRootPart.GyroHandler.CFrame = camera.CoordinateFrame
136
local direction = controlModule:GetMoveVector()
137
Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Vector3.new()
138
if direction.X > 0 then
139
Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity + camera.CFrame.RightVector*(direction.X*speed)
140
end
141
if direction.X < 0 then
142
Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity + camera.CFrame.RightVector*(direction.X*speed)
143
end
144
if direction.Z > 0 then
145
Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity - camera.CFrame.LookVector*(direction.Z*speed)
146
end
147
if direction.Z < 0 then
148
Lp.Character.HumanoidRootPart.VelocityHandler.Velocity = Lp.Character.HumanoidRootPart.VelocityHandler.Velocity - camera.CFrame.LookVector*(direction.Z*speed)
149
end
150
end
151
end)
152
153
FlyButton.TouchTap:Connect(function()
154
buttonIsOn = not buttonIsOn
155
end)
156
157
local Signal3
158
Signal3 = SpeedBox:GetPropertyChangedSignal("Text"):Connect(function()
159
if tonumber(SpeedBox.Text) then
160
speed = tonumber(SpeedBox.Text)
161
end
162
end)