Skip to main content

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
2 votes
0 answers
22 views

Tool stops working after death, but only in the Roblox Client, not Roblox Studio

In the experience I'm currently working on there has been a bug where, after death, the gun tools would stop working unless dropped and picked back up. However, when trying to debug this, I found that ...
FlintandStone's user avatar
0 votes
1 answer
31 views

Roblox Studio: Holding down LeftControl as an in-game keybind activates Roblox Studio Shortcuts

I've been making a small experience within Roblox Studio recently and wanted to add crouching into the game. I used my (already functioning) code for sprinting and modified it to make a crouch button ...
FlintandStone's user avatar
0 votes
0 answers
28 views

How to call a modular script from a parent

I have this line of code to try and retrieve a script from a (distant) parent local signal = require(script.Parent.Parent.Parent.Parent.Parent.Parent.Parent.Script) ...
Legacy Coding's user avatar
0 votes
0 answers
23 views

Second purchase button in shop interface doesn't work

The 1st button works, but the 2nd button doesn't work. I think the problem is in this part: ...
Sodz1aX's user avatar
0 votes
0 answers
56 views

In Roblox how can I use :GetTouchingParts() to get all parts a player is currently touching?

I'm trying to make a client-side function where when triggered, it teleports the player to any player that is currently touching a spawn location, but I can't get it working. ...
Oneechan69's user avatar
0 votes
0 answers
24 views

doing anything with value with this thing doesnt work

if script.Parent.Value.Value == 5 then print("Health is 5") end that above, is actually int value like a health of a wall. when i set this value ...
animatopia animations's user avatar
1 vote
1 answer
51 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
110 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
266 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
  • 321
0 votes
0 answers
87 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
30 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
205 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
40 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
50 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
68 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
189 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
668 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
61 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
1 vote
1 answer
88 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
1 vote
1 answer
94 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
1 vote
1 answer
192 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
117 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
211 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
110 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
224 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
63 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
142 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
728 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
102 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
192 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
504 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
169 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
557 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
78 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
159 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
75 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
40 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
18k 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
123 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
889 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
279 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
177 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
386 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