Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

how to fix old skateboard turning ?

Asked by 4 years ago

the turning aspect of the old skateboards used in some roblox skate parks are broken and i genuinely do not know how to fix them. if you would like to try to help, message me on discord @ pops#1510 I can also provide more information there, thanks.

function onAxisChanged(axis) Board.Steer = Controller.Steer Board.Throttle = Controller.Throttle

if (Board.Steer == -1) then
    print("Left")
    --CoastingAnim:Stop(1)
    KickAnim:Stop()
    OllieAnim:Stop()
    RightAnim:Stop(.5)
    LeftAnim:Play(.5)
    didAction("left")
end

if (Board.Steer == 1) then
    print("Right")
    KickAnim:Stop()
    --CoastingAnim:Stop(1)
    LeftAnim:Stop(.5)
    OllieAnim:Stop()
    RightAnim:Play(.5)
    didAction("right")
end

if (Board.Steer == 0) then
    print("Straight")

    KickAnim:Stop()
    LeftAnim:Stop(.5)
    OllieAnim:Stop()
    RightAnim:Stop(.5)

    if (lastaction == "go" and time() - lasttime < .1) then

    end
    didAction("go")
    --CoastingAnim:Play(1)

    if (Board.CruiseLoop.IsPlaying == false) then Board.CruiseLoop:Play() end

might be something with that but I really am not sure, I dont script.

0
Maybe switching (Board.Steer) value to a set of defined variables. ExHydraboy 30 — 4y
0
For instance change If (Board.Steer == 1) then ExHydraboy 30 — 4y
0
to if (Board.Left = true) then "your code here" else straight or something similar ExHydraboy 30 — 4y
0
Then wire up your functions ExHydraboy 30 — 4y

Answer this question