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
0
votes
1 answer

Not sure how to use vector3

I tried to make an item spawn every 60 seconds and in one of two locations, but when I tried to use vector3 it didn't spawn in the location of the "spawnplace1" or "spawnplace2", but it spawned ontop of the roka being copied and didn't move. Also I…
Vlo_tz
  • 21
  • 4
0
votes
1 answer

User Input Service's Input Began not firing

I am working with User Input Service to make a snake game within Roblox, and the event, Input Began, is not firing. I even copied code from the official Roblox website to teach how to script, and nothing happened. What could be going wrong?
killerderp7
  • 108
  • 1
  • 11
0
votes
0 answers

how to change a json response

i want to know if i can do response["rap"] == "null" then response["rap"] == "account is private" im new to python / json reason for bad sytax an example of the api with response null is https://i.stack.imgur.com/IWXys.png i included full code so…
Pxndaaa
  • 13
  • 4
0
votes
1 answer

How to fix NPCs flinging off map/falling apart

I have just made a script that clones NPCs to random locations using the script below, but the NPC's do not appear at any of the spawn locations that I stated in my script, but in the middle of the actual map only. They also fall apart/fling off the…
Wise One
  • 1
  • 2
0
votes
1 answer

Is there a way to check if any content of a array is in another array in Roblox

So I am trying to make a script which allows me to ban people but the main script which checks if a player is in the game and in the banned users list to be killed or kicked. Here is my code: local BannedUsers = {"littleBitsman"} local Players =…
0
votes
1 answer

Attempt to index boolean with HumanoidRootPart

I put in these lines of code in a module script I made for my zombie game, specifically to put in wave structures featuring different zombies each wave: local module = {} wavepause = game.ReplicatedStorage.Values.WavePauseLength.Value trollanoid =…
Wise One
  • 1
  • 2
0
votes
2 answers

How to fix NPCs not spawning

I coded out some functions in a ModuleScript to be executed by another script. Here is the code local module = {} wavepause = game.ReplicatedStorage.Values.WavePauseLength.Value trollanoid = game.ReplicatedStorage.Trollanoid spawnpoints =…
Wise One
  • 1
  • 2
0
votes
1 answer

Trouble with Roblox DataStore

THE SITUATION I am attempting a simple task of updating a player's all-time win totals. Here is the code I used based on tutorials I have watched: local DataStoreService = game:GetService("DataStoreService") local myDataStore =…
Kevind
  • 11
  • 2
0
votes
1 answer

How to Use Variable Instead of Actual Part In Hierarchy

I am not entirely sure how to ask this question, but I want to use a variable when declaring a child's location in a hierarchy. Here is the code in ServerScriptService: --omitted code game.Players.userName.leaderstats.Robux.Value +=…
0
votes
1 answer

I need help making a variable for the character in Lua from a script in StarterGUI

sneakCheck.Touched:Connect(function() if sneak == false then --what do I put in here end end) i want to check if the character is sneaking when the sneakCheck is hit and if its false he will die how do i create a valuable for him…
0
votes
1 answer

Roblox Studio My script only works one time

I made a gun shop website. When I try to buy a gun the first time it works but, when I delete the gun from my inventory and try again it wont work. Please Help. local ServerStorage = game:GetService("ServerStorage") local Vendedor =…
Welozbee
  • 3
  • 1
0
votes
1 answer

How do I use parameters?

I've tried really hard to understand how parameters work in Lua, but I didn't understand yet. This is de code: It basically kill someone when touched. function onTouch(part) local player = part.Parent:FindFirstChild("Humanoid") …
0
votes
1 answer

Discord Roblox bot

I'm trying to make a command that outputs players collectibles and summarizes the total recentAveragePrice of the listed items. The problem is when I'm trying to output any part of this API, it just outputs undefined. API…
Arti
  • 25
  • 4
0
votes
2 answers

How to add numbers in a string in Roblox

I would like to make a Text Label say this; "THE TROLLGE WILL BEGIN IN (seconds left) SECONDS" but I do not know how. Any help to solve this is appreciated.
Wise One
  • 1
  • 2
0
votes
1 answer

How to fix: spawner not spawning in zombies

I am making a game right now and I have a problem with one of the scripts that spawn in zombies. I'm not sure what went wrong, but I feel like as if there is nothing wrong going on with my code. Here is it, any help is appreciated. Maybe an…
Wise One
  • 1
  • 2
1 2 3
99
100