2,316 questions
0
votes
0
answers
84
views
How can I change the camera's CFrame while still having standard camera controls?
I'm trying to invert the depth of the camera (multiplying the camera's CFrame by (0,0,0, -1,0,0,0,1,0,0,0,1). To my knowledge, the only way I can implement this is by setting the camera type to ...
-1
votes
1
answer
92
views
How do I make good resolution, small text on a SurfaceGui [closed]
I'm trying to make a part with a surface GUI on it and a text label with a very small text size text on it, like 2-8 font size, but when i do the resolution makes it unreadable and I want to make it ...
1
vote
0
answers
64
views
Text doesn't scale on other devices using ScrollFrame + TextBox
So i wanted to make my kinda notebook inside my game and i used a scrollframe and inside this frame i have my textbox, and on my screen the text looks good but when i test it on other devices via ...
-2
votes
1
answer
62
views
Part wont get the text
this is my script
local data = require(game.ReplicatedStorage.data["dc data"].ModuleScript)
--Level painiting
function paint(o)
if o == nil then return end
for _, p in ipairs(o:...
1
vote
1
answer
118
views
How do I take a value out of an if then statement?
I'm not the best at coding yet and I am trying to make an NPC that says a random number every time I interact with it. I made a function to produce a new number every second but I have no idea how to &...
3
votes
0
answers
150
views
How to Give badge when dialogue is finished [closed]
In my game i want it so that when you talk to npc it gives a badge but I want it to only give the badge at the end of the conversation
Npc name: Npc
so theres a dialogue in his head
after the player ...
0
votes
0
answers
102
views
Roblox studio, Tool equipped
I'm trying to make it so I can save the player and character in variables in Roblox Studios, to do that I'm trying to use a Tool.Equipped event so I can get the parent once the tool is equipped (...
0
votes
1
answer
112
views
Player tool Script help Roblox Studios
I'm currently trying to code a game after learning the basics of Roblox Studio and Lua, I made this script with my current knowledge. It's supposed to check if a player is in Team 1 and if they are, ...
0
votes
1
answer
42
views
Making destroyed parts reappearing
I made a system where when you click on a bush with berries, the berries on the bush disappear completely (without a dup) and move to the player's inventory. However, I need to make it so that the ...
2
votes
1
answer
80
views
Roblox get player
I am a noob to Roblox dev and am struggling to figure out detecting players despite reading lots of posts.
I am writing a script where a player pushes a block of the edge of a platform, it hits lava ...
0
votes
1
answer
77
views
Why doesn't the print function run when the part is touched in Roblox Studio?
I am trying to make a hub system where you step on a part to join a hub and after enough people join you will be teleported to the main game.
This code is expected to teleport players to a box where ...
0
votes
0
answers
65
views
Roblox buy gamepass duplicate items when touch trigger multiple times
I have the following script to prompt player to buy a game pass if they don't have one. When they have one, it gives them the items. Unfortunately it gives them duplicate items every time they step on ...
0
votes
1
answer
63
views
How can I combine my two scripts to create a hat remover without removing the hair?
In ROBLOX studio, I'm trying to make a part that when you touch it, it will remove your hats, but not your hair. The way it will detect the hat from the hair is checking if the accessory has a ...
0
votes
0
answers
31
views
Receive an error when trying to clone, position, and weld a model
So I am making a game in Roblox called Fruit Hunters, where the main idea is to collect fruit and battle with them. But I have run into an error in my code, and hope I can get adequate help today.
So ...
0
votes
1
answer
95
views
Character spawns into wrong place in roblox studio
Basically what I am trying to do is replaced the character of someone who joins with a standard R15 rig to ensure that all players are the same size when they join and am doing so with this code:
...
0
votes
1
answer
64
views
Why isn't my script changing a part's direction upon contact with another part?
I am trying to make a platform that moves between two parts, Trigger1 and Trigger2, that moves between the two and switches directions when it hits one or the other. Instead, it continues moving in ...
0
votes
1
answer
66
views
Attempt to index boolean with 'waitforchild' error
So I'm trying to make a LocalScript that connects to a ServerScript through a remote event which makes a Gui appear. The error is that every time I fire the remote event I need it to happen for one ...
1
vote
0
answers
47
views
Modify a player's limb's position
I want to change the player’s left arm position to another.
Multipling its motor6D CFrame by another one doesn’t work as I want it to, as a single value also modifies another one (say, if I multiply ...
0
votes
2
answers
93
views
Change brick color repeatedly
I'm trying to make a dance floor that lights up and changes colors periodically. So far I've gotten the game to load and pick a random color from the array upon loading, but I can't make the tiles ...
0
votes
0
answers
49
views
Mobs not displaying healthGui and being unkillable
So basically, i'm making a tower defense game and when a mob spawns, there is a chance it doesnt have a healthGui so its health isnt displayed and my towers cannot kill it hence softlocking the player,...
0
votes
1
answer
167
views
How to move parts locally in Roblox?
I've done my reasearch, and I think it's time to ask the question. Let's say I have a part:
local Part=Instance.new("Part"),Part.Parent=workspace;Part,Orientation=Vector3.new(0,83,0)
The ...
0
votes
1
answer
99
views
How to efficently check parts against data in Luau?
I've been creating a windfield system in Luau (Roblox). I'm creating arrays for the winddata with the key being a Vector3 converted to string format. However, I'm struggling to find the best way to ...
2
votes
1
answer
103
views
How to define acceptable parameters in a export type as a range of numbers in Luau?
I'm currently mucking around with OOP in Luau. I wish to define the type of a property within Windfield called VisualMode to be in a range of numbers between 1-2 (not forcefully).
export type ...
-2
votes
1
answer
79
views
Datastore:ListKeysAssync() Is giving errors and not looping through the datastore
local function saveData (plr, lvlName, lvlDescription)
local lvlName = workspace.levelArea.lvlName.Value
local plrID = nil
local randID = math.random(100, 999) .. "-" .. math....
0
votes
0
answers
79
views
I have a problem with the sound script in Roblox Studio
I have a model that appears and disappears repeatedly. I want to add a sound that plays when the model appears, but I’m having trouble limiting the sound’s range. It’s currently audible across the ...
0
votes
1
answer
63
views
Why is The script that I used to add the Torch to player inventory, not working for my other item?
I followed a tutorial to learn how to create a trigger event that adds a Torch to your inventory via a click detector that was attached to the chest. I tried using the same system to a sand pile for ...
0
votes
1
answer
59
views
How do I modify the value of each instance of a collision group?
I want to modify the Transparency value of each instance of a collision group, named Obstaculos1, but I don't know how.
I've tried doing it by registering the group with something like this:
for key, ...
0
votes
1
answer
70
views
running roblox script only once
part = script.Parent
part.Touched:Connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
plr.PlayerGui.upd.Enabled = true
end)
that script run only ...
0
votes
0
answers
52
views
Attempt to index number with 'Spawner'
I got a problem where in my output it shows this:
ServerScriptService.Main.Mob:28: attempt to index number with 'Spawner'
This is my code:
local ServerStorage = game:GetService("ServerStorage&...
0
votes
0
answers
26
views
Account for damping while modeling projectile motion
I'm using EgoMoose's Trajectory module with some modifications to predict the path of a ball in Roblox. However, I've encountered a challenge related to damping. The ball's rolling speed is reduced ...
2
votes
2
answers
257
views
How to delete clones - Roblox Studio?
I want to build a lag game and I want that when you click a button, all the clones of the part will be gone but when I script it, it's not working.
This code is for cloning the part (this is a normal ...
0
votes
2
answers
333
views
How to find the position of a player in roblox
I am making a game in roblox and a part of what I am trying to do is find a player who pressed a keybind localy and find the players position(I only need help with finding the players position not the ...
1
vote
1
answer
77
views
Datastore player's data in different order than setasync
I've been having trouble with this, because in the entire script I getAsync and SetAsync Values the exact same order, yet while troubleshooting ,because I got data loss constantly, it apparently says ...
0
votes
0
answers
252
views
php - request for https://apis.roblox.com/challenge/v1/continue, LOGIN ROBLOX
in general, I'm trying to log in to the roblox via API requests, but I ran into such a problem that when sending a request to https://apis.roblox.com/challenge/v1/continue I get this in response:
{
&...
0
votes
1
answer
119
views
Datastore GetAsync or SetAsync not working as inteded (Roblox Studio)
I've tested my game in both the roblox studio and regular studio, and in both times I seem to be losing data sometimes and somehow. In some cases I can go many leaves and returns without losing ...
-1
votes
3
answers
158
views
Cannot get a surface gui textbox's text, even though it is in a localscript
(would post on dev forum but I'm not accepted in yet) I have put a part in workspace with a surface GUI then textbox and then this LOCAL script inside it:
script.Parent:GetPropertyChangedSignal("...
0
votes
1
answer
89
views
Attempt to index nil with 'humanoid'
I'm trying to code a turret, shooting enemies when it gets in the range of the turret, and the code sometimes breaks giving me the error Script:31: attempt to index nil with 'Humanoid'
This happens ...
0
votes
0
answers
42
views
spectator.earth API error (http 500) in LuaU on roblox
first Request(https://api.spectator.earth/imagery/?bbox=20.5437,50.0661,20.6437,50.1661&api_key=api_key) is ok,
but image download throws errors.
i use a this LuaU code:
local module = {
local ...
0
votes
0
answers
96
views
EternityNum Layer Is Returning Infinite
I am using a "Big Number Module", It's called "EternityNum". and I am using it to bypass roblox's number limit. I am misusing the module somewhere in my script but I can't pinpoint ...
0
votes
1
answer
289
views
How to spawn a player in a car?
I wrote a code that when a player spawns in Roblox, immediately spawns him behind the wheel of my car model (that is, you do not need to press any extra keys). I took the car model from the Toolbox ...
2
votes
0
answers
140
views
Animation script Roblox Studio
I'm making a dash but when I run the game it doesn't work as well as I expected, the first 2 dashes don't work well, the third one already works. and then at the end of the dash that transitions to ...
1
vote
1
answer
149
views
Why does Roblox’s Quick Login API return a 403 error when checking login status?
When I scan the qr from the quick-login code, and successfuly login, then send a post to the status endpoint, the response reflects that I'm not logged in.
code:
// sending post to create endpoint to ...
0
votes
1
answer
319
views
Roblox Studio HTTP 403 Forbidden with Invoke server after Teleport
I have been trying to make a UI with a queue and teleport system. I have a system where the game will add or remove players with a RemoteFunction Object with this script being on a local script. (this ...
0
votes
1
answer
483
views
Attempt to call missing method of table
I'm trying to make my first Roblox studio game and I ran into this problem:
attempt to call missing method 'UpdateCharacter' of table
attempt to call missing method 'Equip' of table
Any function ...
0
votes
1
answer
104
views
Roblox Animation Not Playing Even Though Animation Owned by Group and Game Owned by Group and Priority Is Highest
The animation is owned by the group and the game is also owned by the
group.
I created the animation on a R6 rig and all the players in the
game is R6.
The priority is set to the highest (action 4)
...
1
vote
1
answer
74
views
Physics broken for unanchored parts when i use :Destroy()
Basically I have a shooting mechanic in my side scroller game and I made it work with parts, having them have health.
I wanted these parts to be unanchored and I have tested them without shooting them,...
0
votes
1
answer
129
views
Passing a Model through a Remote Function
I am having trouble passing a model through a remote event
the model (tower) is stored originally in replicated storage before being cloned and moved a folder in the workspace
(local script)
tower = ...
1
vote
1
answer
49
views
Humanoid not moving with mouse on Rbx Studio
I am trying to make a humanoid move with the mouse cursor in Roblox Studio.
local player = game.Players.LocalPlayer
local mouse = player:GetMouse()
local tower = getTower(towerOneIndex):...
0
votes
1
answer
66
views
Roblox: Function not looping or adding to the "money" value
I was programming a Roblox game, and I need a timer that loops, and it must add to the money IntValue. I play tested the code, but it did not loop or add to the money value. How would I solve this ...
0
votes
1
answer
256
views
Parts get deleted when I run and camera is scripted in Roblox Studio
The issue is that when I script a camera to move in 1 direction, all the parts get deleted for no reason. It's not a visual bug, I saw my explorer and Workspace was empty. No errors in Output, and ...