Welcome to Code Forum!

Join a community that supports you and your coding journey from day one. We strive to be a friendly, supportive community that empowers everyone to be better developers. By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

lua-scripting

  1. T

    Lua I need some assistance with this Roblox script

    This script is supposed to pay money to the leaderboard value when a player is on a certain team, but it's not working. local Teams = game:GetService("Teams") local ReplicatedStorage = game:GetService("ReplicatedStorage") local jobConfig = { ["McWilliam's Worker"] = 650, ["Another...
  2. T

    I need help with this script please.

    I need help with a gas gauge for a car in Roblox. Setup: DriveSeat (VehicleSeat) and GasValue (NumberValue) are in the same car model. A GasGUI with a TextLabel displays the gas percentage. Problem: The script only shows "Gas: --%" even when I enter the car. Script Snippet: local gasLabel =...
  3. L

    Flahsbang Script

    -- Flashbang function function flashbang(player, enemy) -- Calculate distance between player and enemy local distance = math.sqrt((player.x - enemy.x)^2 + (player.y - enemy.y)^2) -- Adjust flash duration based on distance local flashDuration = 3 - (distance / 10) -- Flash lasts...
  4. A

    Lua Embedded how do I terminate a Lua script outside of the interpreter

    I am working with Embedded Lua So what I want is to be able to report when a host function does something that I think it should not do. I could try to look for an equivalent to the idea of throwing an exception. I also want to have it running in a thread for a game and have another thread...
  5. Havertz10

    4x4 Grid in lua

    I'm new to lua and I need help please, I've never done lua before. How do I create a 4x4 Lua Grid that's populated with random numbers and responds to inputs?
  6. N

    filter for table search by data attributes

    Is it possible to write a filter for a table search by data attributes <table> <thead> <tr> <th tabindex="0">Item</th> <th tabindex="0">Level</th> <th tabindex="0">Type</th> <th tabindex="0">Class</th> </tr> </thead> <tbody> <tr...
  7. N

    Lua explaining the structure of two functions in Lua

    Hi everyone, I am trying to integrate a code which is a variational auto encoder model (where the prior of the VAE is a mixture of Gaussians) from Lua (torch) to pytorch as part of my model and I have a hard time to fully understand the Lua script (I didn't find a tutorial of the language)...
  8. T

    Gravity Cycling Question

    Hello all, I have a fairly simple question. I am new to LUA and don't yet understand exactly how for loops work in this language yet. I have a code that I have integrated into my workspace that changes the gravity after 10 seconds as seen here: script.Parent.Gravity = 500 wait (10)...
  9. Premium__Zocker

    Lua Need help learning lua for example to fix lua error's on my gmod server

    Hello everybody. Im new to coding in general and i started to learn lua by watching CODE BLUE's tutorials on youtube. But i could need help from someone that has time and wants to help me with this. Just lua in generall but i have also an example lua error that i cannot fix bc i just dont know...
  10. M

    Lua An Explanation Of Lua

    What Is Lua Lua is a Scripting-Language designed by Roberto Ierusalimschy and a bunch of other people in 1993. The Language is designed to be used as a Language that can be embedded into C/C++ Programs(The Language itself has a native C API). This API is what can be used to extend the...
Back
Top Bottom