-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgreif.lua
216 lines (187 loc) · 6.61 KB
/
greif.lua
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
repeat
task.wait()
until
game.Players.LocalPlayer
getgenv().Speed = 16
if not isfolder("Greif Config") then
makefolder("Greif Config")
end
if not isfile("Greif Config/WalkSpeed.txt") then
writefile("Greif Config/WalkSpeed.txt",16)
end
getgenv().Speed = tonumber(readfile("Greif Config/WalkSpeed.txt"))
_G.flyKey = "q"
function Walkspeed()
game.Players.LocalPlayer.Character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = getgenv().Speed
end)
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = getgenv().Speed
end
function serverHop()
local data = game:GetService("HttpService"):JSONDecode(game:HttpGet("https://games.roblox.com/v1/games/"..game.PlaceId.."/servers/Public?sortOrder=Desc&excludeFullGames=true&limit=100"))
local bestfps = 0
local bestping = 1000
local bestserver
for i,v in pairs(data.data) do
if (tonumber(v.fps) > bestfps) and (tonumber(v.ping) < bestping) and tonumber(v.maxPlayers) > tonumber(v.playing) then
bestfps = v.fps
bestping = v.ping
bestserver = v.id
end
end
game:GetService("TeleportService"):TeleportToPlaceInstance(game.PlaceId, bestserver, game.Players.LocalPlayer)
end
local FlyingEnabled = false
local maxspeed = 150
function BetterFly()
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("Head") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
local mouse = game.Players.LocalPlayer:GetMouse()
repeat wait() until mouse
local plr = game.Players.LocalPlayer
local torso = plr.Character.Head
local flying = false
local deb = true
local ctrl = {f = 0, b = 0, l = 0, r = 0}
local lastctrl = {f = 0, b = 0, l = 0, r = 0}
local speed = 5000
function Fly()
local bg = Instance.new("BodyGyro", torso)
bg.P = 9e4
bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
bg.cframe = torso.CFrame
local bv = Instance.new("BodyVelocity", torso)
bv.velocity = Vector3.new(0,0.1,0)
bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
repeat wait()
plr.Character.Humanoid.PlatformStand = true
if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
speed = maxspeed
elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
speed = 0
end
if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*0.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
else
bv.velocity = Vector3.new(0,0,0)
end
bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*speed/maxspeed),0,0)
until not flying
ctrl = {f = 0, b = 0, l = 0, r = 0}
lastctrl = {f = 0, b = 0, l = 0, r = 0}
speed = 0
bg:Destroy()
bv:Destroy()
plr.Character.Humanoid.PlatformStand = false
end
mouse.KeyDown:connect(function(key)
if key:lower() == _G.flyKey and FlyingEnabled == true then
if flying then flying = false
else
flying = true
Fly()
end
elseif key:lower() == "w" then
ctrl.f = 1
elseif key:lower() == "s" then
ctrl.b = -1
elseif key:lower() == "a" then
ctrl.l = -1
elseif key:lower() == "d" then
ctrl.r = 1
end
end)
mouse.KeyUp:connect(function(key)
if key:lower() == "w" then
ctrl.f = 0
elseif key:lower() == "s" then
ctrl.b = 0
elseif key:lower() == "a" then
ctrl.l = 0
elseif key:lower() == "d" then
ctrl.r = 0
end
end)
Fly()
end
game.Players.LocalPlayer.CharacterAdded:Connect(BetterFly)
BetterFly()
local Mercury = loadstring(game:HttpGet("https://raw.githubusercontent.com/thombomb2009/butter-hub/main/lib.txt"))()
local GUI = Mercury:Create{
Name = "Greif Gui",
Size = UDim2.fromOffset(600, 400),
Theme = Mercury.Themes.a,
Link = "https://Butter.com/Base_Fucker"
}
local Main = GUI:Tab{
Name = "Player",
Icon = "rbxassetid://6023426915"
}
Main:Slider{
Name = "Walk Speed",
Default = 16,
Min = 16,
Max = 250,
Callback = function(v)
getgenv().Speed = v
Walkspeed()
writefile("Greif Config/WalkSpeed.txt",v)
end
}
task.spawn(function()
task.wait()
if game.Players.LocalPlayer.Character.Humanoid.WalkSpeed ~= getgenv().Speed then
Walkspeed()
end
end)
Main:Textbox{
Name = "Fly Toggle (Default Q)",
Callback = function(v)
_G.flyKey = v
end
}
Main:Toggle{
Name = "Fly",
StartingState = false,
Description = nil,
Callback = function(state)
FlyingEnabled = state
BetterFly()
end
}
Main:Button{
Name = "Execute Fling Script (x to toggle fling)",
Description = nil,
Callback = function()
_G.KeyCode = "X"
loadstring(game:HttpGet("https://shattered-gang.lol/scripts/fe/touch_fling.lua"))()
end
}
Main:Button{
Name = "Destroy Blacklist Walls",
Description = nil,
Callback = function()
if workspace:FindFirstChild("Effects") then
workspace.Effects:Destroy()
end
end
}
Main:Button{
Name = "Server Hop",
Description = nil,
Callback = function()
serverHop()
end
}
local queueteleport = (syn and syn.queue_on_teleport) or queue_on_teleport or (fluxus and fluxus.queue_on_teleport)
local Players = game.Players
shid = true
Players.LocalPlayer.OnTeleport:Connect(function(State)
if State == Enum.TeleportState.Started then
if shid and queueteleport then
queueteleport("loadstring(game:HttpGet('https://raw.githubusercontent.com/tip52/useless-projects/main/greif.lua'))()")
end
end
end)