JIT
Easy Roblox Lua GUI
Build a easy Gui on roblox lua easy to follow

How to use this in Roblox Studio:

  1. Open Roblox Studio and your place.
  2. Create a LocalScript inside StarterPlayer > StarterPlayerScripts.
  3. Copy the Lua code above and paste it into the LocalScript.
  4. Run the game (Play).

You will see a blue button labeled "Click Me!" in the center of the screen. Clicking it will print "Button clicked!" to the Output window and temporarily change the button's text.

Updated files
v1
Build a Gamepass on roblox easy to follow

How to use this in Roblox Studio:

  1. Get your Game Pass ID:
    • Go to the Roblox website.
    • Navigate to your game's page.
    • Click on the "Store" tab.
    • Click on your Game Pass.
    • Look at the URL in your browser's address bar. It will look something like https://www.roblox.com/game-pass/YOUR_GAME_PASS_ID/Your-Game-Pass-Name.
    • Copy the number (YOUR_GAME_PASS_ID).
  2. Create the Script:
    • Open Roblox Studio and your place.
    • In the Explorer window, navigate to ServerScriptService.
    • Right-click ServerScriptService and select Insert Object > Script.
    • Rename the script to GamepassChecker (or similar).
  3. Paste the Code:
    • Copy the Lua code above.
    • Paste it into the GamepassChecker script you just created.
  4. Set the Game Pass ID:
    • In the script, find the line local GAME_PASS_ID = 0.
    • Replace 0 with the actual Game Pass ID you copied in step 1.
  5. (Optional) Set up Reward Item:
    • If you want to give an item (like the example VIP_Sword):
      • Create or find the tool/item you want to give.
      • Place this item inside ServerStorage in the Explorer.
      • Make sure the REWARD_ITEM_NAME variable in the script matches the exact name of the item in ServerStorage.
  6. Enable Studio Access to API Services:
    • Go to Game Settings (usually on the Home tab).
    • Navigate to the Security section.
    • Ensure Allow HTTP Requests is enabled (MarketplaceService needs this).
    • Ensure Enable Studio Access to API Services is enabled. This allows the script to work correctly during testing in Studio.
  7. Publish and Test:
    • Publish your game.
    • Run the game (Play). Check the Output window (View > Output) for messages from the script indicating whether the Game Pass is owned and if rewards were granted.

Now, whenever a player joins the game, this script will automatically check if they own the specified Game Pass and run the reward logic if they do._

Updated files
v2
make a gold generator with part and code

Okay, here's how to create a simple gold generator part with the necessary scripts.

This setup includes:

  1. A script to create leaderstats (like "Gold") for players.
  2. A script that creates the generator part and handles giving gold when touched.

How to use this in Roblox Studio:

  1. Open Roblox Studio and your place.
  2. Create the Leaderstats Script:
    • In the Explorer window, navigate to ServerScriptService.
    • Right-click ServerScriptService and select Insert Object > Script.
    • Rename the script to LeaderstatsSetup.
    • Copy the content from the LeaderstatsSetup.lua file above and paste it into this script.
  3. Create the Generator Script:
    • Right-click ServerScriptService again and select Insert Object > Script.
    • Rename this script to GoldGenerator.
    • Copy the content from the GoldGenerator.lua file above and paste it into this script.
  4. (Optional) Adjust Configuration:
    • In the GoldGenerator.lua script, you can change GOLD_AMOUNT, COOLDOWN_SECONDS, PART_SIZE, PART_COLOR, and PART_POSITION to your liking.
  5. Run the Game:
    • Click the Play button.

You should now see:

  • A gold-colored part appear in the Workspace at the specified position.
  • A "Gold" stat appear in the player list (leaderboard) at the top-right of the screen.
  • When your character touches the gold part, your Gold stat will increase by the configured amount, and you'll see messages in the Output window (View > Output). You can only get gold once per cooldown period._
Updated files
v3
How to a coin gen in roblox

Okay, creating a "Coin Generator" is very similar to the gold generator. We'll set up leaderstats for "Coins" and then create a part that gives coins when touched.

Here's the setup:

How to use this in Roblox Studio:

  1. Open Roblox Studio and your place.
  2. Create the Leaderstats Script:
    • In the Explorer window, go to ServerScriptService.
    • Right-click ServerScriptService -> Insert Object -> Script.
    • Rename the script to LeaderstatsSetup.
    • Copy the code from the LeaderstatsSetup.lua file above and paste it into this script.
  3. Create the Generator Script:
    • Right-click ServerScriptService again -> Insert Object -> Script.
    • Rename this script to CoinGenerator.
    • Copy the code from the CoinGenerator.lua file above and paste it into this script.
  4. (Optional) Adjust Configuration:
    • In the CoinGenerator.lua script, feel free to change COIN_AMOUNT, COOLDOWN_SECONDS, PART_SIZE, PART_COLOR, PART_SHAPE, and PART_POSITION.
  5. Run the Game:
    • Click the Play button.

You should now see:

  • A flat, yellow, cylinder part (resembling a coin) appear in the Workspace.
  • A "Coins" stat in the player list (leaderboard) at the top-right.
  • When your character touches the coin part, your Coins stat will increase, and you'll get messages in the Output window. You can collect coins repeatedly based on the cooldown setting.
Updated files
v4
make a different coin gen in roblox

Okay, let's create a different type of coin generator. This one will periodically spawn small coin parts near a designated spot, and players can collect these spawned coins by touching them.

This involves:

  1. A LeaderstatsSetup script (same as before, ensures players have a "Coins" stat).
  2. A CoinTemplate part stored in ServerStorage.
  3. A CoinSpawner script in ServerScriptService to manage the spawning.

How to use this in Roblox Studio:

  1. Open Roblox Studio and your place.
  2. Ensure Leaderstats Script Exists:
    • Make sure you have the LeaderstatsSetup.lua script (from the previous examples or the one provided above) inside ServerScriptService. It needs to create the leaderstats folder and the Coins IntValue for players.
  3. Create the Spawner Script:
    • In the Explorer window, go to ServerScriptService.
    • Right-click ServerScriptService -> Insert Object -> Script.
    • Rename the script to CoinSpawner.
    • Copy the code from the CoinSpawner.lua file above and paste it into this script.
  4. (Optional) Adjust Configuration:
    • In the CoinSpawner.lua script, you can modify variables like SPAWN_RATE_SECONDS, COIN_VALUE, COIN_LIFETIME_SECONDS, SPAWN_RADIUS, MAX_SPAWNED_COINS, and the spawnerPart.Position.
  5. Run the Game:
    • Click the Play button.

You should now see:

  • No obvious generator part (as the spawner itself is invisible).
  • Small, flat, yellow coin parts appearing randomly within a radius around the spawnerPart.Position you set.
  • These coins will fall to the ground.
  • When your character touches one of the spawned coins, it will disappear, your "Coins" leaderstat will increase, and you'll see a message in the Output window.
  • Coins that aren't collected will automatically disappear after the COIN_LIFETIME_SECONDS.
Updated files
v5
make me a fly gui

Okay, here is a simple Fly GUI for Roblox. This will create a button on the screen that toggles flying for the local player.

How to use this in Roblox Studio:

  1. Open Roblox Studio and your place.
  2. In the Explorer window, navigate to StarterPlayer.
  3. Expand StarterPlayer and select StarterPlayerScripts.
  4. Right-click StarterPlayerScripts and select Insert Object > LocalScript.
  5. Rename the LocalScript to FlyGuiScript.
  6. Copy the Lua code from the FlyGuiScript.lua file above.
  7. Paste the code into the FlyGuiScript you just created.
  8. Run the Game (Play).

You should now see a button labeled "Fly: OFF" in the top-left corner of your screen.

  • Clicking it will change it to "Fly: ON" (and turn greenish), enabling fly mode.
  • Use W, A, S, D to move horizontally relative to your camera view.
  • Use Space to fly up and LeftShift to fly down.
  • Clicking the button again will disable fly mode ("Fly: OFF", reddish), and you'll fall normally.

Important Notes:

  • This is a LocalScript, meaning the flying effect only happens for the player running the script (it's client-side). Other players won't see you flying using this method unless the server replicates it (which this script doesn't do).
  • Exploiters can create similar scripts, so don't rely on client-side checks for critical game mechanics if anti-cheat is a concern.
  • The BodyGyro and BodyVelocity instances are older methods. For newer games or more complex physics, you might consider using AlignOrientation and LinearVelocity, which offer more fine-grained control but are slightly more complex to set up. This script uses the simpler, classic approach.
  • Flying might be disabled if the player is sitting or in other specific HumanoidStateTypes. This script uses PlatformStand to try and mitigate some issues.
Updated files
v6