Universal Script ๐Ÿ“Œ
42 Views
2 Executions

FE R15 Slide & Crouch (Mobile & PC)

Universal Script ๐Ÿ“Œ
AzScripter
AzScripter1M views
2 hours ago

Reviewed by QueueSherlockPaid revieweron How review works

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

Features: - Crouch/Slide Button (C) - Slide can only be activated if speed is above 20 - โ Inclines increase speed, declines decrease speed (Uphill +speed, downhill -speed) - โ Customizable script Script Suggestions: Sprint Button and stamina bar v2

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

local player = Players.LocalPlayer
if player:GetAttribute("CrouchSlideLoaded") then return end
player:SetAttribute("CrouchSlideLoaded", true)

local Slide_At = 20
local Crouch_Hip, Slide_Hip, Crouch_Speed = 1.85, 1.3, 0.55
local hitbox_Y, hitbox_Size = 0.5, Vector3.new(2, 1, 1)
local crouch_top = hitbox_Y + hitbox_Size.Y * 0.5
local scan_radius = 8
local FLAT_DECEL, UPHILL_DECEL, DOWNHILL_ACCEL = 12, 52, 46

local CROUCH_IMG = "rbxassetid://109660173469064"
local CROUCH_DOWN = "rbxassetid://105987157375274"
local SLIDE_IMG = "rbxassetid://110954069432063"
local SLIDE_DOWN = "rbxassetid://134994664343117"
local ANIMS = {
	idle = "rbxassetid://109602961761132",
	walk = "rbxassetid://134301743319119",
	run = "rbxassetid://77522194791234",
}
local SLIDE_ANIM = "rbxassetid://125545085077300"
local SLIDE_SOUND = "rbxassetid://18952286141"

local State = { Stand = "Stand", Crouch = "Crouch", Slide = "Slide" }

local character, humanoid, hrp, animator
local originalHip, savedSpeed = 2, 16
local collider, colliderWeld
local origCollide, origQuery = {}, {}
local state, crouchOn, slowedSpeed = State.Stand, false, nil
local hipLock = false
local tracks, crouchName, slideTrack, slideSound = {}, nil, nil, nil
local slideDir, slideVel, slideTime, fading = Vector3.zAxis, 0, 0, false
local velocity, attachment, lastToggle = nil, nil, 0


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

Tags

More universal scripts

See all
Script hub
16.9k
88.8k
Bumped 2 hours ago
Universal Script ๐Ÿ“Œ
36.4k
1.1M
Bumped 2 hours ago
Script hub
4.0M
2.0M
Bumped 2 hours ago

Script hub

Hall of Fame #3

KeylessVerified script badge[KEYLESS] Moondiety Script | 20+ supported Games

Script hub
224
16
9 hours ago
Key System