Hello! I made a crawling animation and the whole point of it is to go through vents and stuff, but you can’t fit through the vent on mobile. The character is the exact same size as it is on pc.
Any solutions?
Hello! I made a crawling animation and the whole point of it is to go through vents and stuff, but you can’t fit through the vent on mobile. The character is the exact same size as it is on pc.
Any solutions?
Could you give us the script you used for the crouching animation?
local mobile = game:GetService("UserInputService").TouchEnabled
if mobile == true then
script.Parent.Visible = true
task.wait(0.1)
game.Players.LocalPlayer.CameraMaxZoomDistance = 0.5
else
script.Parent.Visible = false
end
local playing = false
local character = game.Players.LocalPlayer.Character
local hum = character:WaitForChild("Humanoid")
local anim = hum.Animator:LoadAnimation(game:GetService("StarterPlayer").StarterCharacterScripts.CtoCrawl.Crawl)
script.Parent.MouseButton1Click:Connect(function()
if playing == false then
hum.WalkSpeed = 8
anim:Play()
playing = true
else
anim:Stop()
hum.WalkSpeed = 16
playing = false
end
end)
Maybe try setting the HumanoidRootPart CanCollide property to false when the animation is playing?