How To Make Crouch System In Roblox Studio
HTML-код
- Опубликовано: 8 фев 2025
- Welcome to my video, today i want to make tutorial How to make Tool in Roblox Studio.
Follow me on roblox
• www.roblox.com...
• Twitter: @DearenR
• Discord: dearen#3793
• RUclips: @dearenrasendrya9093
linktr.ee/dear...
Spport Me!
sociabuzz.com/...
www.paypal.me/...
Thank you for watching
Subscribe :D
Also a little off topic, your accent sounds a lot like indonesia, or you are?
Yeaa your'e right, i'm indonesian
@@dearenrasendrya9093 Same XD
don't try that scipt it didnot work try this script :
local TweenService = game:GetService("TweenService")
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local Humanoid = character:FindFirstChildWhichIsA("Humanoid")
local HumanoidRootPart = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
local CrouchAnimation = script.CrouchAnimation
local CrouchTrack = Humanoid:LoadAnimation(CrouchAnimation)
local CameraInfo = TweenInfo.new(
0.3,
Enum.EasingStyle.Quint,
Enum.EasingDirection.Out,
0,
false,
0
)
local CrouchedGoal = {CameraOffset = Vector3.new(0,-1.75,0)}
local UncrouchedGoal = {CameraOffset = Vector3.new(0,0,0)}
local CrouchedTween = TweenService:Create(Humanoid, CameraInfo, CrouchedGoal)
local UncrouchedTween = TweenService:Create(Humanoid, CameraInfo, UncrouchedGoal)
local inCrouch = false
local function Crouch()
if inCrouch == false then
inCrouch = true
CrouchedTween:Play()
Humanoid.WalkSpeed = 8
CrouchTrack:Play()
HumanoidRootPart.CanCollide = false
else
inCrouch = false
UncrouchedTween:Play()
Humanoid.WalkSpeed = 16
CrouchTrack:Stop()
HumanoidRootPart.CanCollide = true
end
end
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.C then
Crouch()
end
end)
Your an actual hero
thanks
/copy
bro can u help me? I have a problem where my crouch animation works normally in Roblox Studio, but when I open the game in roblox, when I click on crouch my character only slows down, but does not crouch.
don't try that scipt it didnot work try this script :
local TweenService = game:GetService("TweenService")
local player = game:GetService("Players").LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local Humanoid = character:FindFirstChildWhichIsA("Humanoid")
local HumanoidRootPart = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
local CrouchAnimation = script.CrouchAnimation
local CrouchTrack = Humanoid:LoadAnimation(CrouchAnimation)
local CameraInfo = TweenInfo.new(
0.3,
Enum.EasingStyle.Quint,
Enum.EasingDirection.Out,
0,
false,
0
)
local CrouchedGoal = {CameraOffset = Vector3.new(0,-1.75,0)}
local UncrouchedGoal = {CameraOffset = Vector3.new(0,0,0)}
local CrouchedTween = TweenService:Create(Humanoid, CameraInfo, CrouchedGoal)
local UncrouchedTween = TweenService:Create(Humanoid, CameraInfo, UncrouchedGoal)
local inCrouch = false
local function Crouch()
if inCrouch == false then
inCrouch = true
CrouchedTween:Play()
Humanoid.WalkSpeed = 8
CrouchTrack:Play()
HumanoidRootPart.CanCollide = false
else
inCrouch = false
UncrouchedTween:Play()
Humanoid.WalkSpeed = 16
CrouchTrack:Stop()
HumanoidRootPart.CanCollide = true
end
end
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.C then
Crouch()
end
end)
why this video show was if it has 0 views?
Where is the story game part 2:(😢😢😢
Yeah where is it?
Can some paste the script so i can copy and paste it cause mine wont work
local TweenService = game:GetService("TweenService")
local Humanoid = game:GetService("Players").LocalPlayer.Character:WaitForChild("Humanoid")
local HumanoidRootPart = game:GetService("Players").LocalPlayer.Character:WaitForChild("HumanoidRootPart")
local CrouchAnimation = script.CrouchAnimation
local CrouchTrack = Humanoid.LoadAnimation(CrouchAnimation)
local CameraInfo = TweenInfo.new(
0.3,
Enum.EasingStyle.Quint
Enum.EasingDirection.Out,
0,
false,
0
)
local CrouchedGoal = {CameraOffSet = Vector3.new(0, 1.75,0)}
local UnCrouchedGoal = {CameraOffSet = Vector.new.(0,0,0)}
local CrouchedTween = TweenService:Create(Humanoid, CameraInfo, CrouchedGoal)
local UncrouchedTween = TweenService:Create(Humanoid, CameraInfo, UncrouchedGoal)
local inCrouch = false
local function Crouch()
if InCrouch == false then
inCrouch = true
CrouchedTween:Play()
Humanoid.Walkspeed = 8
CrouchTrack:Play()
HumanoidRootPart.CanColide = true
else
inCrouch = false
UncrouchedTween:Play()
Humanoid.WalkSpeed = 16
CrouchTrack:Stop()
HumanoidRootPart.CanColide = true
end
end
game:GetService("UserInputService").InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.C then
Crouch()
end
end)
@@sparky_mydog W
I Spent so much time scripting and coding.... and when i went to publish the animation IT DOESN'T WORK! I'M NEVER WATCHING YOUR VIDEOS AGAIN BECAUSE THIS IS A FAKE VIDEO!
Ur raging lol
YEA MINE DOSENT WORK
THIS RUclipsR SUCKS
@@wackytrio4613 be quiet
@@Boogy-k2iLearn scripting ong 💀