-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFeFlip.lua
84 lines (65 loc) · 2.16 KB
/
FeFlip.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
wait(0.2)
--[[ Info ]]--
local ver = "2.00"
local scriptname = "feFlip"
--[[ Keybinds ]]--
local FrontflipKey = Enum.KeyCode.Z
local BackflipKey = Enum.KeyCode.X
local AirjumpKey = Enum.KeyCode.C
--[[ Dependencies ]]--
local ca = game:GetService("ContextActionService")
local zeezy = game:GetService("Players").LocalPlayer
local h = 0.0174533
local antigrav
--[[ Functions ]]--
function zeezyFrontflip(act,inp,obj)
if inp == Enum.UserInputState.Begin then
zeezy.Character.Humanoid:ChangeState("Jumping")
wait()
zeezy.Character.Humanoid.Sit = true
for i = 0.1,360 do
delay(i/720,function()
zeezy.Character.Humanoid.Sit = true
zeezy.Character.HumanoidRootPart.CFrame = zeezy.Character.HumanoidRootPart.CFrame * CFrame.Angles(-h,0,0)
end)
end
wait(0.55)
zeezy.Character.Humanoid.Sit = false
end
end
function zeezyBackflip(act,inp,obj)
if inp == Enum.UserInputState.Begin then
zeezy.Character.Humanoid:ChangeState("Jumping")
wait()
zeezy.Character.Humanoid.Sit = true
for i = 0.1,360 do
delay(i/720,function()
zeezy.Character.Humanoid.Sit = true
zeezy.Character.HumanoidRootPart.CFrame = zeezy.Character.HumanoidRootPart.CFrame * CFrame.Angles(h,0,0)
end)
end
wait(0.55)
zeezy.Character.Humanoid.Sit = false
end
end
function zeezyAirjump(act,inp,obj)
if inp == Enum.UserInputState.Begin then
zeezy.Character:FindFirstChildOfClass'Humanoid':ChangeState("Seated")
wait()
zeezy.Character:FindFirstChildOfClass'Humanoid':ChangeState("Jumping")
end
end
--[[ Binds ]]--
ca:BindAction("zeezyFrontflip",zeezyFrontflip,false,FrontflipKey)
ca:BindAction("zeezyBackflip",zeezyBackflip,false,BackflipKey)
ca:BindAction("zeezyAirjump",zeezyAirjump,false,AirjumpKey)
--[[ Load Message ]]--
print(scriptname .. " " .. ver .. " loaded successfully")
print("made by Zeezy#7203")
local notifSound = Instance.new("Sound",workspace)
notifSound.PlaybackSpeed = 1
notifSound.Volume = 0.4
notifSound.SoundId = "rbxassetid://170765130"
notifSound.PlayOnRemove = true
notifSound:Destroy()
game.StarterGui:SetCore("SendNotification", {Title = "feFlip", Text = "feFlip loaded successfully!", Icon = "rbxassetid://505845268", Duration = 5, Button1 = "Okay"})