Gotcha, thank you and will do (if I ever find out).
My friend seems to have a certain bug with this that makes them run at extreme speeds, but it works completely fine for me.
Huh, I have had that happen with my old code but with the new one that I posted on this forum I havenāt had that happen. If you can figure out why it happens or even fix it, then let me know.
My friend took a wild guess that it might act differently with certain body parts, but I canāt really get my head around how it all works atm. Were you updating the code in the same link?
That could be true, now that I think about it I have only ever used the thing with r6 avatars. I have never really thought about r15 or rthro. Iāll try and look into it.
A bit confused, Iām an Avid Csgo player, and I do a lot of airstrafing/csgo bhopping etc Iām assuming this script is meant to replicate that right? Iām noticing a lot of things that this system doesnāt include, correct me if Iām wrong but the biggest one is, this doesnāt include air strafing at all does it? Theres no velocity being gained, Also Iām noticing that if you turn your mouse around too quickly to head the other way you lose all speed, Iāve been trying to replicate a system like bhop - Roblox
This, for quite some time, looking for different resources, is this system that youāve made not intended to be like that where you gain speed through air strafing? and if so what is this for? Whatās the point in bhopping if no speed is gained?
Yeah I have noticed the difference between my movement and csgo the reason is probably because I used this code from unity: Quake III movement (Strafe jumping) in Unity [#1] - YouTube, and translated that into lua pretty much. It appears that this bhop stuff was based off of quake. I originally used this code: Bunnyhopping from the Programmer's Perspective, but I did not like it because it was giving me some weird bugs that I could not solve.
Oh and also in my game I added a max velocity cap, because the players could get to fast and that messed with the gameplay, especially because it was really easy to bhop cause I had auto jump on.
If you set the maxSpeed to a higher value or removed the velocity cap altogether, then adjusted some of the variables you could probably get it very similar to what you want. What variables you need to adjust, i donāt know. Itās very complicated math that I donāt even understand.
Mmm. Maybe Iāll toy around a bit more with yours, Iām just struggling finding how tf @Quaternions managed to get the system exactly how csgo did, I thought I was pretty decent at scripting but holy, the math involved with strafing, and all that stuff has been confusing tf out of me, Thank you for the resource anyways Iām gonna try to achieve what I need it sucks that the resources on this topic are kinda limited though but thanks! was just curious
has a wise man wants said, "hippty hoppty this code is now my property. with credit of course "
Hey really cool script! Although I have found the bunny hopping is a bit too abusive and I also want my bunny hopping to be more like the bunny hopping in Apex Legends so I made some modifications try it out for yourself if you want.
local LastJumpTime = 0
local JumpCount = 0
local Jumped
local function onJump(actionName, inputState)
if inputState == Enum.UserInputState.Begin then
if JumpCount <= 15 and LastJumpTime - tick() > -1 then
Cmd.jump = true
Cmd.justPressed = true
Jumped = true
print(JumpCount)
print(LastJumpTime - tick())
elseif LastJumpTime - tick() <= -1 then
Cmd.jump = true
Cmd.justPressed = true
Jumped = true
JumpCount = 1
LastJumpTime = tick()
print(JumpCount)
print(LastJumpTime - tick())
else
Jumped = false
end
elseif inputState == Enum.UserInputState.End then
if Jumped == true then
Cmd.jump = false
LastJumpTime = tick()
JumpCount = JumpCount + 1
end
end
end
Is this possible to be done server sided? To avoid exploiters and such
Movement on roblox is never done on the server. Roblox doesnāt really allow it.
Can exploiters easily manipulate this to their advantage? (sorry for asking so much questions )
And also, I didnāt know that, atleast I know that now
Exploiters can cheat just like with any other movement system including robloxās default system. However in my code I am constantly setting the humanoid.WalkSpeed so I guess it would be a little harder.
I did not add any anticheat measures to this, that is something you would have to do on your own.
Hey is there anyway for this to be compatible with R15?
Late to the party, has anyone found solution to make this system accept Xboxās joystick movement than hardcoded rely on w/s/a/d?
In general, for any type of WASD, joystick, or touch movement, you should use the Roblox ControlModule (after forking it and editing the return). The input code above is overcomplicated and only supports keyboard.
local Players = game:GetService("Players")
local PlayerModule = require(Players.LocalPlayer:WaitForChild("PlayerScripts"):WaitForChild("PlayerModule"))
local ControlModule = PlayerModule:GetControls()
local function getMoveVector()
return ControlModule:GetMoveVector()
end
This returns a Vector3 in local space. Note that itās not a unit vector, and can be zero when the player doesnāt want to move.
Iām not coding expert so I canāt rly use your help to edit the script so it works the way I ask, but thanks anyways.
This is actually sick thanks for code!
@SnarlyZoo Hey when I use this code, the game doesnāt listen for inputs. I have a C to Slide script inside the StarterCharacterScripts, but it doesnāt work, no printing, nothing.