1 | spawn(function() |
2 | local stateType = Enum.HumanoidStateType |
3 | |
4 | local character = game.Players.LocalPlayer.Character |
5 | local humanoid = character:WaitForChild("Humanoid") |
6 | |
7 | humanoid:SetStateEnabled(stateType.FallingDown, false) |
8 | humanoid:SetStateEnabled(stateType.Ragdoll, false) |
9 | local flipper = game.Players.LocalPlayer.Character.Humanoid |
10 | local hi = Instance.new("Sound") |
11 | hi.Name = "Sound" |
12 | hi.SoundId = "http://www.roblox.com/asset/?id=4911756917" |
13 | hi.Volume = 5 |
14 | hi.Looped = false |
15 | hi.archivable = false |
16 | hi.Parent = game.Workspace |
17 | |
18 | |
19 | |
20 | getgenv().gravity = game.Workspace.Gravity |
21 | flipper:GetPropertyChangedSignal("Jump"):Connect(function() |
22 | if flipper.Jump == true then |
23 | hi.TimePosition = 0.6 |
24 | hi:Play() |
25 | local Spin = Instance.new("BodyAngularVelocity") |
26 | Spin.Name = "flipping" |
27 | Spin.Parent = game.Players.LocalPlayer.Character.Head |
28 | Spin.MaxTorque = Vector3.new(math.huge, math.huge, math.huge) |
29 | Spin.AngularVelocity = Vector3.new(10,0,0) |
30 | |
31 | wait(0.5) |
32 | |
33 | game.Workspace.Gravity = 1000 |
34 | wait() |
35 | game.Workspace.Gravity = gravity |
36 | game.Players.LocalPlayer.Character.Head.flipping:Destroy() |
37 | wait(0.5) |
38 | hi:Stop() |
39 | end |
40 | end) |
41 | end) |