#humanoid state thing

53 messages · Page 1 of 1 (latest)

midnight mountain
#

my god just send the details here

#

so you dont have to wait for someone to reply

#

whats the point of making a post just to not say what your issue is

#

you absolute ###### ############ of #### ###########

analog peak
#

lmao

#

chill out

#

so i have this ball charactermodel

frail monolith
#

How's the chat going on

analog peak
#

it does a sound everytime the humanoid landed state is triggered

frail monolith
#

In script?

analog peak
#

i have its elasticity high

#

so it bounces multiple times

frail monolith
#

What exactly u making

analog peak
#

a marble

frail monolith
#

U got script?

analog peak
#

just hear me out

frail monolith
analog peak
#

yk how when you drop marbles they bounce a lot

frail monolith
analog peak
#

and i did the same thing with that character model by increasing the elasticity

#

now it bounces alot

#

so sometimes

frail monolith
#

Reduce it

analog peak
#

when it lands

frail monolith
#

Also

analog peak
#

what

frail monolith
#

Ask it in #1006356488912121967

#

There would be many that would know

#

Ig reduce elasticity

analog peak
#

no its not just that

buoyant vesselBOT
#

studio** You are now Level 1! **studio

analog peak
#

the humanoid state changes cant keep up

#

like the landed dosent get fired

#

even tho the player has landed

#

the studio dosent even count it as jumping, freefall

#

@frail monolith the thing im trying to say is, im using humanoid state to get detect the land and play the sound. is there any alternative to use?

#

local character = script.Parent
local humanoid = character:FindFirstChild("Humanoid")
local sound = Instance.new("Sound", character)

sound.SoundId = "rbxassetid://6716484515"
sound.Volume = 1
sound.Looped = false

humanoid.StateChanged:Connect(function(oldState, newState)
if newState == Enum.HumanoidStateType.Landed then
sound:Play()
end
end)

#

sorry i didnt put it in a block

#

but thats the script

frail monolith
#
local character = script.Parent
local humanoid = character:FindFirstChild("Humanoid")
local sound = Instance.new("Sound", character)

sound.SoundId = "rbxassetid://6716484515"
sound.Volume = 1
sound.Looped = false

humanoid.StateChanged:Connect(function(oldState, newState)
    if newState == Enum.HumanoidStateType.Landed then
            sound:Play()
    end
end)
#

There is no bounce thingi here

analog peak
#

i just increase or decrease it

frail monolith
#

Um

#

Decrease it

analog peak
#

i want to replicate the bounce

#

i cant decrease

#

lol i fixed it

frail monolith
#

What u did

analog peak
#

i used heartbeat

#

local character = script.Parent
local rootPart = character:FindFirstChild("Head")
local sound = character:FindFirstChild("LandingSound")

if not sound then
sound = Instance.new("Sound")
sound.Name = "LandingSound"
sound.SoundId = "rbxassetid://6716484515"
sound.Volume = 1
sound.Looped = false
sound.Parent = character
end

local isFalling = false

rootPart.Touched:Connect(function(hit)
if isFalling and hit.Material then
sound:Play()
isFalling = false
end
end)

game:GetService("RunService").Heartbeat:Connect(function()
if rootPart.Velocity.Y < -10 then
isFalling = true
end
end)