Universal Script 📌
20.0k Views
574 Executions

super awesome backflip

Universal Script 📌
gent
gentPublished 10
2 years ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

jumpscare people and flip them off wait

View Raw
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")
local UserInputService = game:GetService("UserInputService")

local player = Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local rootPart = character:WaitForChild("HumanoidRootPart")
local camera = workspace.CurrentCamera

humanoid.JumpPower = 60
local forwardBoost = 20

local hint = Instance.new("Hint")
hint.Text = "the script has been executed. now flip off everyone!!! wait.."
hint.Parent = game.Workspace
wait(3)
hint:Destroy()

local function performFlip()
	local isShiftLocked = player.DevEnableMouseLock and UserInputService.MouseBehavior == Enum.MouseBehavior.LockCenter
	local lookVector = isShiftLocked and camera.CFrame.LookVector or rootPart.CFrame.LookVector
	lookVector = Vector3.new(lookVector.X, 0, lookVector.Z).Unit
	
	local initialCFrame = rootPart.CFrame
	
	local jumpVelocity = Vector3.new(
		lookVector.X * forwardBoost,
		humanoid.JumpPower,
		lookVector.Z * forwardBoost
	)
	humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
	rootPart.Velocity = jumpVelocity
	
	local flipDuration = 0.6
	local startTime = tick()
	local connection
	
	connection = RunService.RenderStepped:Connect(function(deltaTime)
		local elapsed = tick() - startTime


Comments

5
Log in to join the conversation. Login
gent's profile picture
gentUploader2 years ago(edited)

doesnt support shiftlock btw. its pretty cool and fe

2
sonk7's profile picture
sonk77 months ago

keybinds?

1
ManmanMickeymouseear's profile picture
ManmanMickeymouseear1 year ago

Is this fe

1
ImLaughingAtYourFear's profile picture
ImLaughingAtYourFear1 year ago

@ManmanMickeymouseear ye

1
irapuzik's profile picture
irapuzik1 year ago

honestly the fact that it doesnt support shiftlock makes it better. if u executed it and want to disable it just go in shiftlock. not a bug but a feature

1