Quick Start Guide

Let's create some useful scripts to get you started with Kinetic Lua scripting.

Script 1: Player Counter

Display the number of players in the game.

File: scripts/autoload/player_counter.lua

script_info = {
    name = "Player Counter",
    author = "Kinetic",
    version = "1.0.0",
    description = "Shows player count on screen"
}

kinetic.on_frame = function(delta_time)
    -- Get all players
    local players = kinetic.players.get_all()
    local count = #players
    
    -- Draw on screen
    kinetic.draw.text({10, 10}, {255, 255, 255}, "Players: " .. count)
end

print("Player Counter loaded!")

Script 2: Health Monitor

Track your health and show a warning when low.

File: scripts/autoload/health_monitor.lua

Script 3: Closest Player Tracker

Show information about the closest player.

File: scripts/autoload/closest_tracker.lua

Script 4: Custom ESP Toggle

Toggle ESP with a custom key.

File: scripts/autoload/esp_toggle.lua

Script 5: FPS Display

Show FPS with color coding.

File: scripts/autoload/fps_display.lua

Script 6: Target Arrow

Draw an arrow pointing to the aimbot target.

File: scripts/autoload/target_arrow.lua

Testing Your Scripts

  1. Save the script file

  2. Restart Kinetic (or reload the script)

  3. Join a Roblox game

  4. Check if the script is working

  5. Debug using print() statements

Common Issues

Script Not Loading

  • Check file is in correct folder

  • Verify Lua syntax (no errors)

  • Check console for error messages

Script Not Working

  • Add print() statements to debug

  • Check if API calls return valid data

  • Verify you're in a game with players

Performance Issues

  • Reduce draw calls in on_frame

  • Cache values instead of recalculating

  • Use player cache instead of direct reads

Next Steps

  • Script Structure - Organize your code better

  • Callbacks - Learn about all available callbacks

  • API Reference - Explore all functions

  • Examples - More example scripts

Last updated