-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathFlyWedge.txt
More file actions
40 lines (34 loc) · 1.09 KB
/
FlyWedge.txt
File metadata and controls
40 lines (34 loc) · 1.09 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
_G.toggleKey = "e" -- key to press to turn on or off fly mode
local checkVal = Instance.new("BoolValue", game.CoreGui)
checkVal.Value = false
checkVal.Name = "eliteValuefieh7f4psnd"
game:GetService("Workspace").ChildAdded:Connect(function(value)
wait(1)
if value:IsA("WedgePart") then
if value.Name == "destroyPartnilafesf94" then
value:Destroy()
end
end
end)
wait()
game:GetService("Players").LocalPlayer:GetMouse().KeyDown:Connect(function(keyDowna)
if keyDowna == _G.toggleKey then
if checkVal.Value == false then
checkVal.Value = true
elseif checkVal.Value == true then
checkVal.Value = false
end
end
end)
while true do
if checkVal.Value == true then
local newPart = Instance.new("WedgePart", game:GetService("Workspace"))
newPart.Name = "destroyPartnilafesf94"
newPart.Transparency = 1
newPart.CFrame = game:GetService("Players").LocalPlayer.Character.HumanoidRootPart.CFrame
if checkVal.Value == false then
break
end
end
wait()
end