#Platform stand not working for NO REASON!!!!

1 messages · Page 1 of 1 (latest)

fluid vault
#

I thought that the problem was the vector force, but it's NOT (thankfully. I thought it was this problem for a long time)! When i try to set the the platform stand to true (or whatever the way is to make the player trip), it doesnt work, I really would like to get some help as this could make my whole game actually playable, here's the chunk where I think it's the root of the problem (or it's the most important part of the script)


local function setupBallMovement()
    -- Movement update
    RunService:BindToRenderStep("BallMovement", 2, function()
        if isBall and char:WaitForChild("Playerball"):FindFirstChildWhichIsA("VectorForce") then
            print("e")
            
            
            
            local Playerball = char:WaitForChild("Playerball")
            local vectorForce = Playerball:WaitForChild("VectorForce")
            local hum = char:WaitForChild("Humanoid")
            if hum.PlatformStand == false then
                if Playerball then
                    vectorForce.Force = calculateMovementForce()
                end
                print("VectorForce Force:", vectorForce.Force)
            else
                hum.PlatformStand = true
            end
        end
    end)
end
#

crying pls help

timber musk
#

Do you have videos

#

to demonstrate the problem

fluid vault
#

uh yes

#

lemme record em

#

This is the output

#

btw i changed a bool now

#

btw the calculation for the vector force STOPS when i try to activate platform stand Mannually through the properties tab of the Humanoid

timber musk
#

Put a print after the hum.PlatformStand to see

#

If it works then it will print sth

fluid vault
fluid vault
timber musk
#

did you apply the force on the ball or the character

#

and did the platform stand work

fluid vault
#

hmm, i found a way that's working

#

but

fluid vault
fluid vault
timber musk
fluid vault
#

But i cant put that when the platform stand is true, it stays true because the whole thing breaks

#

I think it has to do with this first condition

#

OK, so it WAS that "isBall" thing

#

now the only thing left is why the force aint applied to the playerball

timber musk
#

firstly just try to apply a vector force on random part making sure it works

#

and then use that vector force on the ball

#

im clueless abt whats happening too

fluid vault
#

yeah

junior marlinBOT
#

studio** You are now Level 6! **studio

fluid vault
#

but the force is like 1M or smth

#

(with massless)

#

wich is like an anomaly

timber musk
#

what abt try using other like assemblyLinearVelocity

fluid vault
#

doesnt it make you float?

#

It's better to use vector force

#

it is what is says on the roblox doc.

timber musk
#

or sth i forgot

fluid vault
#

what did you forget

timber musk
#

AssemblyLinearVelocity

junior marlinBOT
#

studio** You are now Level 8! **studio