#how to cancel a jump once we click button roblox

136 messages · Page 1 of 1 (latest)

steep umbra
#

how to cancel a jump once we click button roblox i need this scrpt so balky

lucid osprey
#

Wdym

#

Like remove jump

#

Or just stop momentum

steep umbra
#

no

#

momentum

#

@lucid osprey

#

like to cancel momentum and makes me go down

#

bcs its too much whenu got 10k jump

thick dew
steep umbra
thick dew
#

hm

#

so right now changestate isn't working

#

the humanoid still has force applying as they are jumping

steep umbra
#

yea

still light
#

u can do this

#
local zeroVelocity = Vector3.new(0,0,0)
humRoot.AssemblyLinearVelocity = zeroVelocity```
thick dew
#

^^

mild oarBOT
#

studio** You are now Level 5! **studio

steep umbra
#

no like a button

still light
#

....?

#

rxtard alert

#

💀

thick dew
still light
#

@thick dew daym bro u made ur discord account on my birthday

steep umbra
#

im really new at scripting sry i dont understand

still light
#

im 9 months old

#

almost

thick dew
#

bro

#

only 3 more months

#

and you're 1 🎉

still light
#

fr

thick dew
#

i actually don't know if changing the linear velocity requires server input

#

if so fire a remote event and then

#

change it

#

on the server

steep umbra
#

so i put a script in that and i put the script u sent

thick dew
#

you'll need a local script

#

since a script = server

steep umbra
#

oh local

#

so i remove script

thick dew
#

and the screen gui is apart of the player

#

yes

steep umbra
#

eum

#

it dosent stop momentum

#

he still goes up and up

thick dew
#

ok

steep umbra
thick dew
#

uh network ownership if not then do you know what a remote event is

thick dew
#

say script.Parent

steep umbra
#

oh

#

where before ?

#
    local zeroVelocity = Vector3.new(0,0,0)
    humRoot.AssemblyLinearVelocity = zeroVelocity
end)```
thick dew
#
script.Parent.MouseButton1Down:Connect(function()
  --pass
end)
steep umbra
#

script.Parent.MouseButton1Down:Connect(function()
TextButton.MouseButton1Down:Connect(function()
local zeroVelocity = Vector3.new(0,0,0)
humRoot.AssemblyLinearVelocity = zeroVelocity
end)
end)

thick dew
#

so remove the

#

textbutton line

#

and the second end) from the end

steep umbra
#

ok

#

still

#

id kwhats wrong

thick dew
#

yeah

steep umbra
#

maybe hum

thick dew
#

because humroot is not defined either

#

do you know what a remoteevent is, if so you should fire it and then add a script which receives it

steep umbra
#

i dont really know i heard of it but i forgot

thick dew
#

alright

#

so have a look at this

steep umbra
#

so i put remote even in replicate storage ?

thick dew
#

yes

#

call it 'CancelLinearVelocity'

#

or 'stopjump'

#

whatever suits

steep umbra
#

ok

#

done

#

and next

steep umbra
thick dew
#

ok

#

in your local script remove the linear velocity code and change it to

game:GetService('ReplicatedStorage'):FindFirstChild('stopjump'):FireServer()
steep umbra
#

oh k

#

yea

#

but hum is still undefinied

thick dew
#

yeah so remove

#

that line too

steep umbra
#

k

thick dew
#

now go to server script service

#

and add a script

still light
#

🤣

#

bro is using all server scripts

#

goddamn

#

lord help him

steep umbra
#

😦

still light
#

look @steep umbra I will just write this for u

#

and send u it in an rbxm

#

cuz i dont want quan to waste his time

steep umbra
#

okay i guess

thick dew
#

yessir

steep umbra
#

but man my game did like 2k visits in 24 hours that insane

#

i paid like 90 robux for sponsor

still light
#

@steep umbra

steep umbra
#

ty

mild oarBOT
#

studio** You are now Level 6! **studio

steep umbra
#

wow fast

still light
#

when u downloaded it

#

right click on

#

starter gui

#

and click

#

insert from file

#

go to ur downloads on ur pc

steep umbra
#

ok

still light
#

and then double click that

#

and it'll work

#
local player = game.Players.LocalPlayer
local character = player.Character or player:WaitForChild("Character")
local humRoot = character:WaitForChild("HumanoidRootPart")

local zeroVelocity = Vector3.new(0,0,0)
script.Parent.MouseButton1Click:Connect(function() 
    humRoot.AssemblyLinearVelocity = zeroVelocity
end)```
steep umbra
#

tyTYYTY

still light
#

np

steep umbra
#

Hope i become scripter like u

still light
#

did u test it

still light
#

i wrote this guide

#

on how to learn to script

#

0-100

steep umbra
#

wow

#

sure

still light
#

how i learned