#i need help in making crouch system
1 messages · Page 1 of 1 (latest)
i didnt make any code. thats why. but i put a local script in starter character scripts
im a builder but i want to learn
this is a scripting help channel not for writing wishlist letters to santa. you can get started learning how to make stuff in roblox from the docs https://create.roblox.com/docs/tutorials/fundamentals/coding-1/coding-fundamentals and google tutorials can help you a lot too. if you get stuck do ask about that, but no one is going to outright make this for you short of giving you chatgpt slop.
at least, not without payment #👷︱for-hire
my bad
** You are now Level 4! **
i want an idle crouch not walking crouch
well then take the walking crouch and remove the walking part? 🤷
its easy to you. but for me its hard to even know what does these lines do 💀
im gonna start using this
while crouching is active
make the walkspeed like half
normal walkspeed is 16
i also have a sprint system. when sprint is off. the speed is 10 and working as a walking anim. and when its on, the speed is 20, running. and when speed is 0, idle anim.
In 1 hour you could have your system js learn how to use the new input action system
Roblox made key binding moves really easy
Then 1 tutorial and your good
And you'll learn shit
has that been released for production yet?
alr whos the best youtuber teaching? (in arabic)
Yes I have been using it, so far really damn good
Just enable it ofc
you misunderstand
🙏 no idea for Arabic but if you can do English brawldev
it is studio only last i checked. you can't publish a game and have it work in the roblox player. has that changed?
yas
its basically instant
as long as you shut down all servers
cant js anyone write some codes for me?
From what I'm seeing no you can't publish it still
But I haven't tested that
You will learn absolutely nothing then
pretty excited for it, even at a cursory glance it looks very decent, means no one ever has to deal with the hotkeys/bindings pattern ever again, ias simply just deals with it
And then in your next idea you will have no new knowledge
how much time? do i get experienced in lua?
Right around when I want to start making abilities for a simulator game as well lol should make a move switching system really really easy
for sure there are people who can js write some codes for you, you can find them here #👷︱for-hire or you can also post a job in #💵︱hiring 
I mean I've been doing lua for 3 weeks and I can make a full gameplay system
You can do a crouch system or other basic stuff quite fast
only 3 weeks?
depends on the person
Yep couple hours a day
thats the kicker
i learnt web developing
2 hours a day and you will be chilling in a month
if you put in the time, effort, and hard work, yeah 3 weeks is completely doable. https://create.roblox.com/docs/tutorials/fundamentals/coding-1/coding-fundamentals
ok so you know the basics it should come pretty naturally
in vscode
If you really want it 2 hours isn't a lot to ask
the results you get out of it are directly proportional to the work you put in.
im active these days. cause im on vacation from school. i would freetime for learning. maybe 7 hours a day. when could i learn lua if i do this?
it really depends
but listen
dont focus on that
just do a week and see what you learn
takes years of work to reach my level and above.
i know functions and local... from js
stroking your own ego in helping someone lol
i would do that. but i am too lazy
then there is your answer
learn self discipline
people ask how do i learn code too quickly when the root problem is laziness in YOU
you say it's easy to me, and yeah it is now, but that's only because i've already spent months of my life drilling through the documentation, studying how roblox works, and piecing everything together. i've already done all that work and it was not easy. you haven't even started.
do i have to learn everything in roblox studio before coding??
no
learn as you go
well thats what i did
it's easy to say it's easy when you haven't put in even a fraction of the work others have.
lazy efforts get lazy results. 
alr ty guys. imma try to make crouch system and i will send it here to see if i am good or nah .
cya
cya
local PlaybackSpeedCrouched = 0.70
local PlaybackSpeedStanding = 1
what does this means?
@arctic sparrow @dry bone
whats playback
those are just variables
inheritly they mean nothing
but its probably referring to the speed of the animation
so when you crouch whatever animation is playing is a lot slower than when you are standing
local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Humanoid = Character:WaitForChild("Humanoid")
local UserInputService = game:GetService("UserInputService")
local TweenService = game:GetService("TweenService")
local AnimationID = "15411945306"
local CameraOffsetOn = Vector3.new(0, 0, 0)
local CameraOffsetOff = Vector3.new(0, 0, 0)
local WalkSpeedCrouched = 0 --ADJUST CROUCH SPEED HERE
local WalkSpeedStanding = 10 -- IF you using a SHIFT SPRINT or any other script, make sure walk speeds match up!!
local PlaybackSpeedCrouched = 0.70
local PlaybackSpeedStanding = 1
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://127936042364738" .. AnimationID
local CrouchAnimation = Humanoid:LoadAnimation(Animation)
local function setCrouchState(isCrouching)
if isCrouching then
Humanoid.WalkSpeed = WalkSpeedCrouched
TweenService:Create(Humanoid, TweenInfo.new(0.25), { CameraOffset = CameraOffsetOn }):Play()
Character.HumanoidRootPart.Running.PlaybackSpeed = PlaybackSpeedCrouched
Character.HumanoidRootPart.CanCollide = false
CrouchAnimation:Play()
while wait() do
if Humanoid.MoveDirection.Magnitude > 0 then
CrouchAnimation:AdjustSpeed(1)
else
CrouchAnimation:AdjustSpeed(0)
end
end
else
Humanoid.WalkSpeed = WalkSpeedStanding
TweenService:Create(Humanoid, TweenInfo.new(0.25), { CameraOffset = CameraOffsetOff }):Play()
Character.HumanoidRootPart.Running.PlaybackSpeed = PlaybackSpeedStanding
Character.HumanoidRootPart.CanCollide = true
CrouchAnimation:Stop()
end
end
UserInputService.InputBegan:Connect(function(input, gameProcessedEvent)
if not gameProcessedEvent then
if input.KeyCode == Enum.KeyCode.C then --buttons to crouch HERE ( make sure to change it on line 55 too)
setCrouchState(true)
end
end
end)
UserInputService.InputEnded:Connect(function(input, gameProcessedEvent)
if not gameProcessedEvent then
if input.KeyCode == Enum.KeyCode.C then -- buttons (make sure they match to the line above^^)
setCrouchState(false)
end
end
end)
here is the code
ok
ok
yh. i want to know what is play back + the crouch animation isnt working. but i put the correct id
oh ok
and the crouch animation aint working
show output
** You are now Level 15! **
you mean the game when i test it?
** You are now Level 5! **
yeah like the output console
what spits out errors
oh alr wait
٠٣:٢٧:١٩.١٤٠ ---------------------- - Client
٠٣:٢٧:١٩.٢٢٥ Finished Loading Animation Mirrorer - Server
٠٣:٢٧:١٩.٢٢٦ Finished Loading Animation Mirrorer - Client
٠٣:٢٧:٢٠.١٧٣ Failed to load animation with sanitized ID rbxassetid://1279360423647381541: Animation failed to load, assetId: https://assetdelivery.roblox.com/v1/asset?id=1279360423647381541&serverplaceid=0 - Studio
btw i fixed it
what was the fix
nice
i put the animation code in the wrong place
i put it here
Animation.AnimationId = "rbxassetid://127936042364738" .. AnimationID
but its supposed to be here
local AnimationID = "15411945306"
ik that from the .. AnimationID
ahh i see
That’s why you should learn the basics first
I don't recommend 7
Just do as many as you want to, don't overload it and burn yourself out
Set little projects nothing to insane and enjoy
Use the documentation over AI
This is AI generated
I can if you pay me
bro are you arguing with yourself right now?
Watch this
Because we won’t make any systems for free here
im willing to if its paid hehe
And you can choose the loser path (script generation) but you’ll stay inexperienced forever which is something I don’t think you want to be
Only if paid lol
well ofc
brother 😂 you act as if he cant learn it later
but if you say that its implied that you wont do it for free
But I doubt he’ll pay
Too late, theyve made me angry already
😂 the Op is gone already
** You are now Level 4! **
Hope they are watching the videos I gave them
how?
Ai generation + asking for system in a helping channel
true lol
fr tho, brawldevs guides were the first thing i watched, i think they were just in my recommended so i clicked on it
but dont let that anger you
i think mine was alvinblox
You’re right
I watched the dev king tutorial
But i wish brawl dev’s tutorial were available back then
I'm literally watching him right now
Switch with Brawl Dev
Right now
There are only advantages in watching the brawl dev tutorials
It's my 4th day learning and I'm already on advanced video #24, I think it's a little late
They are mid 2024/2025 videos
It’s never too late
I’ve been scripting for 2 years and a half and Ive learned stuff in his last video
im gonna check it, thanks xD
then it is too late
also prob not a good idea to have your last name as your user
lol
X2 brawldev is more up to date
Yuh
im gonna check him out then
You might have already learned deprecated stuff with the dev king
Such as stuff that are now in the task library
And region3
right now i have a problem with the path service "human.MoveToFinished:Wait()" is making the character be like lagging after like 30 seconds of working
Great idea
Shouldn’t use it
Pyro will explain why better than me
the service or that line?
cuz removing that line makes it works, but the character no longer jumps
is Pyro here?
Dunno
The MoveToFinished RBXScriptSignal
@arctic sparrow
what can I use instead, I read the path documentation, but I didn't see much more than what I saw in the devking's video, maybe can i use the Blockedwaypoint instead, to make the player jump, but doing that i would need to make alot of "if" xD
** You are now Level 1! **
Id rlly know
I'm not to experienced in pathfinding so all I could say is go to a good YouTuber scriptor and see what he does
AI can be good to ask questions for as well
Ive used path finding months ago
You could check the magnitude between the Root and the Waypoint and check with a condition if it’s smaller or equal to a number you decide that defines the range required to move on
With a while loop
And if the condition is respected you can just break it to let the loop of waypoints continue
hi how do i use the pathfinding service without using movetofinished because it waits until all the path is completed until it makes a new paths which results in my npc walking past each other on the last tracked location then towards each other. the pathfindingservice won’t work with just MoveTo Path:ComputeAsync(NPC.HumanoidRootPart.Positio...
You can also do task.wait(magnitude/speed)
To calculate how long it takes for your NPC to reach it’s destination
@granite mirage
yep thats why i call it a newb trap
Cuz it makes your npc look laggy ?
it adds delays to the ai loops that you can't really work around, impossible to interrupt paths etc
you may as well add a bunch of task.wait(3)'s everywhere, same thing
Is there a better service to use
Wdym ?
wot no you just have to use it properly
im already using magnitude, and i already tried using break, but for some reason that i dont really understand, the pathfinding stop working
🤔
Create another post and send your script there
Cuz yk id wanna flood OP’s post
bruh 💀
Saved it this time at least ty
Share lua role server link
just search for pathfinding or 'character pathfinding' in the docs