Questions tagged [roblox]

Roblox is an online development platform, created in 2006, and targeted at children and youth. Roblox uses a modified version of Lua, known as Luau, to support Roblox games.

Roblox is a free user-generated gaming site that makes players the architects of their own 3D worlds. Parts of the platform are a variety of objects, a scripting language and a website to host games. With a free account, one gets a character and a place, that can be customized. [ Source: developer.roblox.com ]

Roblox uses Lua, a lightweight programming language embedded into each game. It is easy to use and allows users to manipulate their games in any way possible. Roblox uses their own version of Lua 5.1, edited to work with the games, called Luau, which features type checking and various optimizations. Luau allows users to do things such as creating their own GUIs, making structures such as sliding doors, adding animation to bricks, teleporting and killing players, etc.

Before posting a question, users should ensure they've used the available debugging tools to collect information about the problem they're encountering.

For more information on Roblox, visit the developer hub.

2196 questions
3
votes
3 answers

asyncio.run RuntimeError: Event loop is closed

import robloxapi, asyncio client = robloxapi.Client(".ROBLOSECURITY Cookie Here") # Removed this for security reasons async def main(): user = await client.get_self() try: role = await user.get_role_in_group(1) except…
Filip
  • 156
  • 1
  • 2
  • 9
3
votes
3 answers

Roblox Why can't I get Players.LocalPlayer.Character in game

I have been following many tutorials that use: game.Players.LocalPlayer.Character However every time I try to run this I get an error saying: Players.icrann.PlayerScripts.Script:2: attempt to index field 'Character' (a nil value) I am trying to…
Crann Moroney
  • 356
  • 2
  • 4
  • 13
3
votes
1 answer

Touched function Roblox Studio

I am coding an obby on Roblox Studio. In this obby, I have parts that the character jumps on (the parts are roughly 10 by 10 studs). I want to achieve that whilst the character is on a part, that part changes color. local platform =…
Paul
  • 1,277
  • 5
  • 28
  • 56
3
votes
1 answer

Why isnt the position tweening?

I am fairly new to Lua, and I am trying to make a game in Roblox. I am currently working on an open and close button on my Miner GUI. Code local Frame = script.Parent.Parent.Parent.Parent.Parent.MinerGuiManager.MinerFrame local Opened = false if…
Brody Critchlow
  • 45
  • 3
  • 21
3
votes
1 answer

Scan a google document line by line

so basically, I'm trying to use node.js to scan a google document, then if a ROBLOX id is on there it tracks it. When it tracks it, if it joins one of the groups in the id list, it auto-exiles it. Any help? I'm a little stuck on the scanning a…
Ross
  • 128
  • 12
3
votes
2 answers

Setting the magnitude of a 2D Vector

trying to port something I made in javascript using the p5.js library which has a setMag function for 2D vectors here's the documentation for it How can I set the magnitude of a 2D vector in ROBLOX/lua? function particle:update(mouseX,mouseY) …
Ducktor
  • 337
  • 1
  • 9
  • 27
3
votes
2 answers

How to add custom data files to Roblox DataModel?

I don't seem to be able to add textual data (e.g. in CSV, JSON or XML files) to the Roblox DataModel, Workspace, ServerStorage or anywhere really? Any hints on how to do this efficiently? Ideally, Roblox should just give me the contents of the file…
Domi
  • 22,151
  • 15
  • 92
  • 122
3
votes
1 answer

Attempt to index local 'args' (a function value)

I was trying to split a string into a table, by using gmatch with %S+. However I ran into the error: Attempt to index local 'args' (a function value) Here are the three lines of code I believe have the problem: print(msg) local args =…
Frosty
  • 33
  • 1
  • 6
3
votes
2 answers

Is there a way to always start at 0 using math.sin() Lua

Edit: This question is about Roblox Lua. I'm using math.sin(tick()) to get a variable number and would like for it to always start at 0. Is this possible using math.sin? Is there something else I can use other than tick() to make this work?…
JJJ
  • 83
  • 5
3
votes
1 answer

Rbx.Lua - Why can't I store a .txt file as a table?

I have a python-based web server running on my raspberry pi that web scrapes trade currency rates on Roblox. If you don't know what I just said, all you need to know is that I am gathering numbers that change on a certain webpage. I want to import…
Rontron
  • 3,963
  • 7
  • 26
  • 44
3
votes
1 answer

Launch application from URI - VB.NET

I have tried to create a protocol for my application to launch a game, but I seem to be having trouble actually launching it from a URI. The protocol I'm trying to use is roblox:// but if I type it in, it doesn't seem to launch the application,…
celliott1997
  • 1,115
  • 1
  • 8
  • 17
3
votes
4 answers

Variable names in table field not working

I came across a problem while writing some code up for a game. It seems I can't use variables in statements like; local Username = "Cranavvo" game.Players.Username:BreakJoints() -- Kills the player And the output is telling me "No such user as…
Connor Simpson
  • 487
  • 1
  • 7
  • 27
2
votes
1 answer

How to flip gravity and the player in Roblox?

Does anyone know a way I could flip gravity in Roblox? Like not just gravity itself I want the one player to flip too so they can walk on the ceiling and not just float up. I tried to find how to do it but there was no answer. Can someone help me…
BOCK
  • 41
  • 1
2
votes
1 answer

Getting error code 0 when requesting to roblox login api v2

I am getting a weird error while requesting to Roblox Login API Request URL: https://auth.roblox.com/v2/login Request Body: { ctype: 'Username', cvalue: 'USERNAME', password: 'PASSWORD' } Request Headers: { 'content-type': 'application/json',…
Andrei Elvis
  • 43
  • 1
  • 6
2
votes
1 answer

How to use datastore in Roblox Studio

In my game when people buy their upgrades, I want the name of the upgrade to add to be added to a list that so when buying an upgrade It can be referenced and Not buy the same upgrade again. I have figured out how to do this locally but once they…
Coder10101
  • 27
  • 5