Questions tagged [roblox]

For questions about developing games for Roblox, an online multiplayer platform where users can design and play their own games.

Filter by
Sorted by
Tagged with
1 vote
1 answer
21 views

Fixing thing on unanchored object in Roblox

I am currently creating a car game in Roblox which has many ramps. For visual fun, I have created an unanchored (movable) burning car laying next to it so it looks like a car already tried this ...
EarthAndMoon's user avatar
1 vote
1 answer
75 views

How to properly split damage against armor?

I am developing a third-person shooting style game and I want to implement an armor system. The system that I have envisioned does not reduce the damage to 0, but by half. So the incoming damage is ...
Daniel Rudy's user avatar
1 vote
0 answers
87 views

Why does ROBLOX use an object-oriented system rather than an entity component system? [closed]

I decided I would develop a game engine in c++, so I was thinking about different ways of handling objects. I also have experience with ROBLOX, so I know that it uses an object-oriented design as ...
AcinonX's user avatar
  • 43
0 votes
0 answers
27 views

How do I morph a player's character to a specified player's character?

I'm making a shapeshift command that you can run via chat. It works pretty similar to how HD Admin handles character morphin (https://create.roblox.com/marketplace/asset/13549366436) I know how to get ...
01maxzie's user avatar
0 votes
1 answer
27 views

Why does my Roblox game delete all parts when testing?

I'm working on a Roblox game, but whenever I test it, none of the parts I added in the game display in the Explorer or in the game itself. It works perfectly fine when I view it in the studio, though. ...
Stelbert Stylton's user avatar
0 votes
1 answer
50 views

In my Roblox Tycoon game, my button is not working

I am a rookie at Lua and Roblox Studio in general. I am attempting an easy and reasonably simple tutorial on how to make a pretty good looking tycoon game. In my "Core" script, I am ...
Bubba the Gamer's user avatar
0 votes
1 answer
35 views

GUI TextButton fails to show emoji display when clicked

I want to create a GUI where, when I click a button, an emote display pops up, and when I click an emote, it closes. Currently, my display won't even show when the button is clicked. This is my code, ...
lynx_s's user avatar
  • 1
0 votes
0 answers
36 views

UDim2.new(a, b, c, d) is acting very strangely

I am using a debugger and (i-1)*50 is equal to 50, but ...
ridiche34's user avatar
1 vote
0 answers
56 views

VR Controllers in Roblox Studio not working as expected

I am trying to create a Roblox game with VR support. My understanding is that this code should move the hands of the character as the user moves the controllers: ...
ridiche34's user avatar
0 votes
1 answer
75 views

My Roblox Gui does not update while in game

In my Roblox game, I'm trying to do 2 things with my UI: 1. I am trying to make the "Coins: " text = "Coins: " plus the number of coins the player has. 2. I am trying to make a ...
Stelbert Stylton's user avatar
0 votes
1 answer
348 views

Attempt to call missing method - Lua (Roblox studio)

I am trying to develop a game in Roblox and I have am cannot call a method on a class that I created. I have added my steps below. I am certain the path to the model is correct and I think I have ...
tony09uk's user avatar
  • 153
0 votes
1 answer
48 views

Synchronizing in-game clock vs real world clocks across servers started at different times

Regardless if you know how Roblox works or if you know Lua syntax, I just need an algorithm/equation here. Currently, at the start of each server, I reference the seconds of a centralized clock since ...
Brycki's user avatar
  • 1
0 votes
0 answers
76 views

Buy button not working

I'm working on a Roblox tycoon game. I don't know how to allow the player to buy things because just using: if tycoonPlayerMoney.Value >= 10 then. doesn't work. ...
animatopia animations's user avatar
1 vote
1 answer
82 views

How can I make sure that money goes to the right player?

I created a tycoon game in Roblox and made it so every 10 seconds (the Val.value means how much money you have), and you begin getting the money as soon as you claim the tycoon. My Problem now is that,...
animatopia animations's user avatar
0 votes
0 answers
51 views

Why is this script not working when the tool is equipped?

So, I am trying to make it so when a tool (L1) is equipped, a proximity prompt appears, but my current script doesn't work. Here it is: ...
Bubba the Gamer's user avatar
1 vote
1 answer
83 views

cyclic dependency error in roblox survival game

Description In my game, I have have 3 module files: "PlayerList.lua", "PlayerData.lua" and "WorldData.lua". PlayerList.lua = a list of PlayerData classes (requires ...
saist's user avatar
  • 11
0 votes
0 answers
35 views

Compass bar icons don't appear where expected

I try to recreate the compass from Skyrim in Roblox and I stumbled upon a problem regarding quest icons. I have already programmed the directions of the world and now I struggle to program quest ...
KimikoDev's user avatar
0 votes
0 answers
40 views

How to make enterable buildings share an interior?

I'm trying to make a system for enterable buildings (which is somewhat inspired by Yakuza 0) and the code I currently have works, however, one flaw I noticed is there's no way to make buildings share ...
Konjointed's user avatar
1 vote
1 answer
125 views

How do you clone a part to the Player in Roblox?

I have been making a game in Roblox, But I had one problem. I wanted to make a debug GUI that one can use to spawn items at the Player Location, but I do not really know how to copy it to the player ...
SuspiciouslyBadDev's user avatar
0 votes
1 answer
79 views

Cannot retrieve accurate position of moving basepart

I am stopping a moving player model in its tracks and would like to get its position. Here is my test: target.HumanoidRootPart.Anchored = true target.Humanoid.PlatformStand = true while wait(5) do  ...
Daegod's user avatar
  • 101
1 vote
0 answers
196 views

Why is this item giver script not working?

So, I'm trying to code an LUA script in Roblox Studio that is supposed to give you a tool I named "Item" with ClickDetector if you have enough money. Here's the script: ...
TheGameBoy's user avatar
0 votes
0 answers
102 views

Best architecture for describing interaction between spells

Interactions serve as retroactions. I'm currently looking the best way to describe interactions between different abilities. For instance, if we take a fire ability and a water one, a lot of different ...
Joe Mom's user avatar
0 votes
1 answer
206 views

Roblox badge not being rewarded on live game but does in studio

I have the following code in Roblox in a file under ServerScriptService and it gives a player a badge when they touch a specific part. It works on studio locally but once published its not working. <...
David's user avatar
  • 101
0 votes
1 answer
60 views

for loop problem

So it works first time when the player dies. But when it dies twice the for loop doesn't work. ...
suguma's user avatar
  • 1
0 votes
1 answer
76 views

How can I allow my players to create, save and use moves?

I want to create a system to allow the players to create, save then use moves in Roblox Studio. My first thought was to do this by letting them create animation files in Roblox Studio, but I'm not ...
ガブリエル Gabriel's user avatar
0 votes
2 answers
137 views

Pathfinder is making my NPC follow my oldest position only

I am trying to make a maze/horror game. I used an online template in the Roblox library as my enemy. I used pathfinder as you will see in the code below. It's finding me like it's supposed to, except ...
Anmol panchal's user avatar
0 votes
1 answer
488 views

How do I get roblox studio on a Chromebook?

I have seen Youtube videos of people having roblox studio on their chromebook, but I have tried to install it and it didn't work. How can I get it to work?
Blazer Coolcar's user avatar
-1 votes
1 answer
1k views

How do I make buttons function on the cursors click in roblox studio? [duplicate]

I would just like to know how to add buttons in roblox studio because when I play roblox and see all those great games with buttons that I can click! How do I make a button, and how do I make it work?
Blazer Coolcar's user avatar
-1 votes
1 answer
90 views

Transparent gui Shows another gui when it is not supposed to?

I am making a game in roblox. and in that game i need a Main-menu. and the main-menu gui is basically transparent and there is more guis behind in another ScreenGui ...
Capt.Pyrite's user avatar
0 votes
1 answer
186 views

Error in DataStore2

I'm trying to make a clicker type game in roblox, although im pretty new to datastore2. I know how to use datastore but after getting just a :SetAsync() a few times a minute is too much for it as most ...
TextBasedYoutube's user avatar
1 vote
1 answer
433 views

How to connect a GUI button to function?

I am developing a new Roblox game where you can setup and control you're own virtual machine using SurfaceGUIs on a modeled screen. I am trying to make a confirmation GUI where if you click YES, then ...
Aidan Walker's user avatar
-2 votes
2 answers
162 views

How come non creatable/destroyable Roblox instances have :Destroy() :Clone() etc?

Roblox has many types of instances. But services and other NonCreatable Instances (ReplicatedStorage, Workspace, etc.) still have methods for creating or destroying. Why? Why do they have :Destroy() ...
user avatar
0 votes
2 answers
543 views

How to spawn one dummy for each "d" in the message string?

Im working on a script building game, I have the executor etc done. However, I have one problem. To spawn a test dummy, you say pse/d You can spawn no more than one dummy, how would I make it so if ...
user140356's user avatar
0 votes
1 answer
2k views

Where can I find the Roblox Material/Terrain textures?

The textures shown in this image: Where can I find them? I am making a Roblox game, it's a terrain based mining game, and I want to add an inventory. Where can I find the textures for the terrain to ...
user avatar
0 votes
1 answer
77 views

Does indexing arrays with temporary objects leak memory?

For example, if I have something like this: ...
user140246's user avatar
0 votes
1 answer
145 views

When PlayerRemoving event is fired, for loop does not work properly

while I was implementing the Backback save feature in my Roblox Game (using game.Players.PlayerRemoving:Connect(), I found that when I used a loop of any form (<...
sciencepi's user avatar
0 votes
1 answer
73 views

Are minecraft LANS and servers Filtering Enabled? [closed]

Non-filtering enabled means any given client can make changes and the server will replicate them. This is faster but opens doors for hackers and exploiters. Filtering enabled means the client provides ...
user avatar
0 votes
2 answers
2k views

How to make the character dash forward in Roblox?

In my game, I want to make a skill in a tool to dash forward for a specific range and if the character came in contact with a humanoid during the dash, it stops right on contact and stops the other ...
Adm's user avatar
  • 11
0 votes
1 answer
2k views

How to make a smooth projectile in roblox?

I am trying to make a projectile (Energy ball) for my game. I am using body velocities, but the issue is is that it seems laggy. I shoot it then half a second through flight it seems to stop in mid ...
user avatar
0 votes
1 answer
38 views

Why is the button's code not running?

My script for a slot machine isn't working. When the button in the Bilboard GUI is clicked, the below dosen't run. I am new to scripting and this is mostly based on wiki/stack exchange/ Dev page info. ...
Gideon's user avatar
  • 1
0 votes
2 answers
5k views

How do I change a game's description in Roblox?

In the Roblox documentation for basic place settings, it mentions how you can change the name and description of your game: Once on this page, you can change the Name and Description by editing the ...
Aaron Franke's user avatar
2 votes
2 answers
17k views

How do I get the player's position in Roblox Studio?

In Roblox Studio, I have this code in a script file: ...
Aaron Franke's user avatar
3 votes
1 answer
121 views

Does playing sound effects have to be filtering enabled?

In roblox I made a sword that plays the unsheath sound when equipped. This works by using a local script tell a server script to play it when equipped. I made a whole new remote event in replicated ...
user avatar
0 votes
2 answers
878 views

Getting looping music to work in Roblox Studio

I've been trying for a few days now to get my background music to work on one of my Roblox places, but every time I get the error: 13:50:23.806 - Players.PungentZeus0.PlayerGui.bgmusic:21: attempt to ...
toryzac000's user avatar
0 votes
1 answer
266 views

Roblox, custom chat filter

So, I would like to add my own chat filter to my game, how would I do this? eg: Player says: "DIE" Goes through chat filter and comes out as: "###" or any other string I specify.
W0LFB0MB's user avatar
0 votes
1 answer
170 views

Can you use other gamepass ids on your own Roblox game?

I'm creating a game on Roblox and I need to know if I can use other user's gamepass ids. And if I can will they work?
Poip Poip's user avatar
1 vote
2 answers
379 views

Is it possible to have a fixed camera without a CameraSubject?

I have created a very simple script to set up a fixed camera with no subject. In other words, I want a camera in a static position looking down at the world (a top-down style camera that doesn't ...
vargonian's user avatar
  • 829
0 votes
2 answers
1k views

Roblox script: Can't get "IntValue"?

I am new to Roblox scripting (Lua apparently) and was fiddling with a function that is called when one Part (dubbed the "Sender") is touched by another Part, which is actually a tool with a Part ...
Fedor Alexander Steeman's user avatar
2 votes
1 answer
368 views

Accessing motor object of a surface motor

I would like to make a door closer for a door. The door should open normally, but when the person passes through close slowly. I've made an standard door on hinges, but then made one of them a motor ...
mikryz's user avatar
  • 123
1 vote
2 answers
394 views

In ROBLOX, how can I check what is in front of me?

In ROBLOX Studio I need to check what part is in front of the model Freddy. I need to set the variable called thingInFront to ...
Daniel Lewis's user avatar