Universal Script 📌
58.9k Views
185 Executions

sonic jump script works on solara

Universal Script 📌
Ps4sro
Ps4sroPublished 5
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

can double jump but kinda broken and made by chatgpt yes its fe

View Raw
-- LocalScript in StarterPlayerScripts

local Players = game:GetService("Players")
local UserInputService = game:GetService("UserInputService")
local player = Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local humanoid = character:WaitForChild("Humanoid")
local humanoidRootPart = character:WaitForChild("HumanoidRootPart")

local canDoubleJump = false
local isDoubleJumping = false
local doubleJumpPower = 50 -- Adjust this value to control the height of the double jump
local rollAnimationId = "rbxassetid://18537367238"

-- Animation setup
local rollAnimation = Instance.new("Animation")
rollAnimation.AnimationId = rollAnimationId

local animator = humanoid:FindFirstChildOfClass("Animator") or humanoid:WaitForChild("Animator")
local rollAnimTrack = animator:LoadAnimation(rollAnimation)
rollAnimTrack.Looped = false -- Set the animation to not loop

-- Function to perform the double jump
local function performDoubleJump()
    if not canDoubleJump or isDoubleJumping then return end

    isDoubleJumping = true
    canDoubleJump = false

    rollAnimTrack:Play()

    humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
    humanoidRootPart.Velocity = Vector3.new(humanoidRootPart.Velocity.X, doubleJumpPower, humanoidRootPart.Velocity.Z)

    rollAnimTrack.Stopped:Wait()
    isDoubleJumping = false
end

-- Function to handle jumping
local function onJumpRequest()


Comments

2
Log in to join the conversation. Login
Ps4sro's profile picture
Ps4sroUploader2 years ago(edited)

@aabbaaii its because im too stupid to script

1
Aabbaaii13's profile picture
Aabbaaii132 years ago(edited)

ChatGpt generated

1

More universal scripts

See all
Universal Script 📌
2.7k
30.2k
Bumped 27 minutes ago
Universal Script 📌
6.1k
17.8k
Bumped 2 hours ago
Key System
Universal Script 📌
530.0k
336.7k
Bumped 3 hours ago
Script hub
2.5k
2.2k
Bumped 4 hours ago
Key System
Universal Script 📌
357
32
Approved 4 hours ago
Script hub
2.8M
661.6k
Bumped 5 hours ago
Key System

Script hub

#2 today

Verified script badgeFlow Hub | 35 Games | Updated