#how to cancel a jump once we click button roblox
136 messages · Page 1 of 1 (latest)
no
momentum
@lucid osprey
like to cancel momentum and makes me go down
bcs its too much whenu got 10k jump
i haven't actually tested this method but this may be useful to you
https://create.roblox.com/docs/reference/engine/enums/HumanoidStateType
(changestate)
no idea
if u can help me it would be amazing
hm
so right now changestate isn't working
the humanoid still has force applying as they are jumping
yea
u can do this
local zeroVelocity = Vector3.new(0,0,0)
humRoot.AssemblyLinearVelocity = zeroVelocity```
^^
** You are now Level 5! **
no like a button
fire what lypt sent you upon button event
@thick dew daym bro u made ur discord account on my birthday
im really new at scripting sry i dont understand
sheesh
TextButton.MouseButton1Down:Connect(function()
--// do what lypt sent
end)
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
so i put a script in that and i put the script u sent
ok
uh network ownership if not then do you know what a remote event is
oh
where before ?
local zeroVelocity = Vector3.new(0,0,0)
humRoot.AssemblyLinearVelocity = zeroVelocity
end)```
script.Parent.MouseButton1Down:Connect(function()
--pass
end)
script.Parent.MouseButton1Down:Connect(function()
TextButton.MouseButton1Down:Connect(function()
local zeroVelocity = Vector3.new(0,0,0)
humRoot.AssemblyLinearVelocity = zeroVelocity
end)
end)
yeah
maybe hum
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
i dont really know i heard of it but i forgot
alright
so have a look at this
so i put remote even in replicate storage ?
did that
ok
in your local script remove the linear velocity code and change it to
game:GetService('ReplicatedStorage'):FindFirstChild('stopjump'):FireServer()
k
bro didnt define the humRoot or zero velocity
🤣
bro is using all server scripts
goddamn
lord help him
😦
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
okay i guess
yessir
but man my game did like 2k visits in 24 hours that insane
i paid like 90 robux for sponsor
ty
** You are now Level 6! **
wow fast
when u downloaded it
right click on
starter gui
and click
insert from file
go to ur downloads on ur pc
ok
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)```
tyTYYTY
np
Hope i become scripter like u
did u test it
let me show u how
i wrote this guide
on how to learn to script
0-100
how i learned
