Do you know how to make a sprint button using TopbarPlus V2?

hello developers i need your help today

i would like to make a sprint button for a game i have in mind BUT using TopbarPlus v2

if you can help me that would mean the world to me.

hope to hear from you soon


What part do you need help with? Making the button or making it allow you to sprint

Briefly checking out TopbarPlus you’d want to do something like this

local TBP = require(Icon)
     :bindEvent("selected", function()
           -- do sprint logic

     :bindEvent("deselected", function()
           -- end sprinting

This code won’t work, it’s just an example, but if you have any further more specific questions do feel free to ask.

1 Like

i need help with everything,

i only know how to make an invite friends button with topbar plus

Well once you’ve set up the TBP button, you’re just going to want to increase the player’s walk speed a bit (character.humanoid.walkspeed)

1 Like

can you show me please :pray: :pray: like i said i’m bad at scripting.

I don’t have the time to sit and write the script right now, and as a rule I only like to guide people. A valuable quote to live by:

“Give a man a fish, and you feed him for a day. teach a man to fish, and you feed him for a lifetime.”

Now, some things I’d look into are…
Topbar Plus Documentation to understand how to make your button

Player Class Reference to discover Player.Character

and the…
Humnaoid Class Reference to discover how to change their WalkSpeed.

Using these together will allow you to create what you need. The devforum page for TopbarPlus also gives tons of examples, and I’m sure its documentation does too.

I hope this is of help to you.


okay thank you for all your help. :slight_smile: