Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
23 views

My Roblox Code for a leaderstat won't reset and should include the current stage and the maximum stage

(I would've asked this on the Dev Forum, but I haven't been cleared) So I'm making a basic obby in order to learn the different aspects of the game. I found an script to record the player leaderstats ...
Jason Clough's user avatar
1 vote
1 answer
56 views

the task.wait script keeps stopping my entire script

so i made this script: local mob = require(script.mob) local map = workspace["level 0"] local wave = 1 local spawntime = 1 if wave == 1 then task.wait(1) mob.Spawn("wretch", map) ...
DoctorD's user avatar
  • 11
0 votes
0 answers
56 views

How do I transfer the client's UI into server side?

How do I copy the client's UI into the server when the player leaves? So how it is going to work is that when the player leaves, their UI will be saved onto the server side and when they join back, ...
skisp's user avatar
  • 11
0 votes
1 answer
53 views

How to edit text of a Text Label on joining a game

I've been trying to help my friend making a randomized title screen splash (like in Minecraft or Terraria) but I've been having some problems with having the text actually change. I've tried a few ...
Starry's user avatar
  • 3
1 vote
2 answers
234 views

Roblox Knockback Skipping Waypoint

I am creating a knockback script for a Roblox tower defense game that is meant to teleport an enemy backwards toward another part by 5 studs. The knockback function works for this purpose, but after ...
O5 Command Stands With Ukraine's user avatar
0 votes
0 answers
54 views

Not getting past the If statement

I am coding and got this script from AlvinBlox but it isnt getting past the if statement this is my script right now Where it says print("Got past if statement") is where the promblem is and ...
Dreddknuckles's user avatar
0 votes
1 answer
66 views

Lua/Roblox Studio - How do I hide a scrolling frame

I am new to here, I'm also a beginner in Lua. I know something about Roblox Studio though. But how do I hide a scrolling frame with a button as the frame's child? I've made some rules by scrolling ...
Janusz Januszowski's user avatar
0 votes
0 answers
34 views

Armor takes up durability when regening health

So, I am trying to armor for a Roblox game, I made it DETECT when the player has health changed (Like damage), after fighting, the armor starts to take up durability when the player is regening health....
skisp's user avatar
  • 11
0 votes
0 answers
18 views

Animation on roblox problems

My friend used the script on Roblox Studio: local cas = game:GetService("ContextActionService") local rs = game:GetService("ReplicatedStorage") local events = rs:WaitForChild(&...
Godric90_'s user avatar
0 votes
0 answers
37 views

How can I fix this data store script

My issue here is that I have a script for storing data of the selected characters. The script isn't able to load the data and always returns the null values. This script is inside of serverscript ...
Maxim Gannota's user avatar
0 votes
0 answers
59 views

How can I upload UGC shoes to Roblox without breaking other wearables when moving the Cage.Origin to 0, 0, 0?

I've got a few pairs of shoes I want to upload to the Roblox marketplace. I've created a test pair but this is an issue I'm having across several pairs of shoes. For reference the origin of both cages ...
Alexander's user avatar
0 votes
0 answers
50 views

mouse click not registering in roblox studio

I'm making a simple flappy bird game in roblox studio I made this code for the bird so that the bird would fall but go up when the left mouse button is clicked and the code would run until the bird ...
Carlos Aranas's user avatar
1 vote
3 answers
125 views

buttons not responding in roblox studio

Im making a main menu in Lua(Roblox Studio) and the start game/play button doesnt work i tried this code for the play button but the button wasnt responding local button = script.Parent local ...
Carlos Aranas's user avatar
0 votes
0 answers
20 views

Script can't find a leaderstat

I'm trying to make a base script for challenges: -- Rewards for challenges: Easy(25-100), Medium(100-200), Hard(200-450), Difficult(450-700), Challenging(700-1000), Intense(1000-1750), Remorseless(...
s_ecialkai's user avatar
-1 votes
1 answer
149 views

Playing sounds for a local player after they leave the game

I've been trying to make a script that plays a sound after a player has left the game in a way that they can still hear the sound themselves. As far as I'm concerned, the issue I've run into is that ...
Ponda's user avatar
  • 1
0 votes
1 answer
83 views

My Script inside my model's part doesn't run when I clone it

This is my code for spawning in the model itself which is located in ReplicatedStorage, which this is the hierarchy: SpawnDoor (Model) Door (Sound) Light (Folder) Door1 (Part) Door2 (Part) Part (Part) ...
Sergei Ivlev's user avatar
-4 votes
1 answer
108 views

What does index nil mean? [closed]

I attempted to mess around with the children because I think that's the problem but I was unsuccessful local tycoon = script.Parent.Parent local mainItems = tycoon:FindFirstChild("MainItems"...
RandomCoder's user avatar
1 vote
1 answer
145 views

How to Apply the Same Skin to All Players in Roblox?

I am experimenting in Roblox Studio, and I want to create a logic that would give all players the same skin. (All players must look the same during gameplay.) I found two options: First option: Drag ...
Stalker's user avatar
  • 13
0 votes
0 answers
47 views

My animation in Roblox Studio plays, but in a actual Roblox game it dosen't play, but the projectile works

My Problem is that the animation I labelled as FireballThrow and the fireball projectile does play in the Roblox Studio environment, HOWEVER, in a real game it doesn't execute properly, only the ...
Nafis's user avatar
  • 1
0 votes
1 answer
36 views

I made a function, but got an 'expected identifier when parsing expression, got '='' error

clickdetector = script.Parent.ClickDetector newPart = Instance.new('Part', workspace) newPart:Destroy() function createPushBlock(): newPart = newPart newPart.BrickColor = 'Neon orange' end ...
s_ecialkai's user avatar
0 votes
2 answers
173 views

My animation doesnt load while collaborating

local module = {} local RPunchAnim = Instance.new("Animation") local LPunchAnim = Instance.new("Animation") local KickAnim = Instance.new("Animation") local UppercutAnim =...
Tung Duong Nguyen's user avatar
0 votes
1 answer
77 views

Script not detecting when a player with a set ID joins. Luau

For some reason a simple script that I wrote, that should call a function whenever a player joins, which after that checks if the players ID is one of the either. game.Players.PlayerAdded:Connect(...
Relaxing Gaming's user avatar
0 votes
1 answer
55 views

Is there a way to detect if local players character is touching the hitbox instead of the victim? Luau

Main question for me is can I make it so that it can access the local players character from a variable given in a module script? I can't seem to access the character of it, even though it still IS ...
Relaxing Gaming's user avatar
0 votes
0 answers
49 views

model does not move in Roblox

I'm trying to have a model move around and jump using this code but the object does not move. (everything prints until it gets to the movement part.) The model just stays stationary and can be ...
Bobjoerules's user avatar
3 votes
1 answer
189 views

Passing arguments through a RemoteEvent in Roblox

I'm currently trying to make a message system in Roblox. The server should be able to send a message via a RemoteEvent, and the client should be able to accept it by displaying the message on a GUI ...
Robin Bubeník's user avatar
0 votes
0 answers
48 views

Basketball not bouncing properly in Lua in Roblox Studio (I am making a game in Roblox Studio)

As the title clearly suggests, I am making a basketball game in roblox so I have recently been trying to make my basketball part, named "B-Ball" bounce in a continuous motion. This can be ...
Bro Ski's user avatar
0 votes
1 answer
69 views

Stamina bar going from 100 to 0 for no reason, Stamina value not getting any interactions

For some reason whenever I launch my experience, like a second or a half passes and the bar goes from full to empty. I also can't make any interactions with the value. (example: whenever I try to make ...
Relaxing Gaming's user avatar
1 vote
2 answers
61 views

All ModuleScript variables == nil

For some reason, my local variables in the module script all seem to be nil, with no exact explanation for it, or solution. Local Script (Stamina bar Script): local ms = require(game.ReplicatedStorage....
Relaxing Gaming's user avatar
0 votes
1 answer
66 views

How do I make a hitbox part move with the character

Is it possible to make a part that is welded to the Humanoid Root Part move with it? It serves as a hitbox, but I encounter the problem that if I move forward while attacking it hurts the player. For ...
Relaxing Gaming's user avatar
0 votes
0 answers
40 views

Can't Stop Punching

My punching Animation Won't stop as once I press M1(LeftClick) it just keeps on punching and won't stop so I'm trying to get the animation to only play when I punch once and than once I press it once ...
Shadow shadow.v's user avatar
0 votes
0 answers
78 views

Variable is not updating when I change it in Roblox Studio Lua

This is the code: game.Players.PlayerAdded:Connect(function(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" money = Instance.new(&...
user25691031's user avatar
1 vote
1 answer
96 views

Why doesn't my Roblox Studio print script execute correctly

For some reason, my pretty short script just refuses to print out or do anything after declaring variables, does anyone have an answer? I think it may actually be the wait for child and wait() but I ...
Relaxing Gaming's user avatar
-1 votes
1 answer
85 views

UserInputService isn't detecting inputs

For some reason, my code doesn't work in any way. Does someone has an answer why UserInputService doesn't work for me? local player = game.Players.LocalPlayer local character = player.CharacterAdded:...
Relaxing Gaming's user avatar
0 votes
0 answers
30 views

ProximityPrompt seems to only work in certain locations

I am working on a ProximityPrompt based teleportation system, and everything seems to work save for one. It does not work in it's usual spot, but works in other rooms. I have tried everything, but it ...
Jamie Singh's user avatar
0 votes
2 answers
63 views

Why does roblox studio walk wrong through the table

I am making a game right now in roblox, and need to make gamepass store, however when my loop goes through it (its a table in table), it goes out of order Example code with the tables in table a = { ...
Noway's user avatar
  • 21
0 votes
0 answers
55 views

How to apply "AsemblyLinearVelocity" from scripts onto "hit.Parent"

Here is the code: script.Parent.Activation.OnServerEvent:Connect(function() local part = Instance.new("Part") part.Size = Vector3.new(1,1,1) part.Transparency = 0 part....
skisp's user avatar
  • 11
0 votes
1 answer
66 views

How to wait for the model to load in Roblox? (lua)

How to wait for the model to load? I have a very simple code but 2 out of 3 times when I lunch the game I get an error Players.Alex.PlayerGui.AllSeeingEye:120: attempt to index nil with 'Position'. 1 ...
Alexey Tseitlin's user avatar
0 votes
3 answers
148 views

Add a docstring to a lua function in Roblox Studio

I want to create a docstring for a Lua function in Roblox Studios so that when i look at that function that i instantly know what this function does. And currently the Popup looks like this: But the ...
Dennis Geisler's user avatar
1 vote
1 answer
81 views

attempt to concatenate string with nil | Roblox Code, How to fix?

I've been working on a GUI system where I have a health, stamina and EXP bar. Once I finally got towards the end, I was given an error message on this part of code, saying: attempt to concatenate ...
Bloop Icon's user avatar
-2 votes
1 answer
51 views

Having trouble showing a ScreenGUI by clicking a Part in the workspace

I'm making a 'purchase/shop' screen for a Roblox game, but I'm having trouble opening it from a localscript in a part. I'm not sure exactly what the problem is, I'm fairly beginner to Roblox ...
Gill P's user avatar
  • 31
-1 votes
1 answer
59 views

StarterGUI won't fill screen

ROBLOX STUDIO: I'm trying to make a full-screen menu for the player to buy things off but I'm finding that when I put a frame as a background then the GUI shuffles down to accommodate the built-in ...
Gill P's user avatar
  • 31
0 votes
1 answer
257 views

How to spawn part 35 studs in front of player, facing same direction as player?

I'm trying to spawn a wall in front of the player, 35 studs out, and perpendicular to their view (so the wall is flat in front of them). When I spawn the wall, it doesn't show up in the correct spot ...
DaNewbyGamer's user avatar
0 votes
2 answers
69 views

Cloning classes with obj.__index = self in lua. Why do we need the other one?

I saw a lot of coders do this when init new table, set __index to itself. Why? local Backpack = {} Backpack.__index = Backpack To clone we still use obj.__index = self So why do we need the ...
Alexey Tseitlin's user avatar
2 votes
0 answers
40 views

How can I implement a D-Pad movement for console?

I'm making a 2.5D obby and I want to implement D-Pad movement because most people with thumb sticks have stick drift and so I wanted a way for them to play without worrying about uncontrollable ...
Exauce John B.'s user avatar
0 votes
1 answer
556 views

Getting over the roblox leaderstats intvalue limit

I am making a game that requires a large amount of values, I have it so there are two values: StringValue and IntValue. The intvalue holds the number of the clicks that the player has and then the ...
StqrLost's user avatar
1 vote
1 answer
73 views

How to change gravity? official documentation is not working

The example from the official documentation is not working when adding it to ServerScriptService https://create.roblox.com/docs/reference/engine/classes/DataModel local Workspace = game:GetService(&...
Alexey Tseitlin's user avatar
0 votes
1 answer
153 views

How do I destroy a part when it touches another part?

I'm trying to script a Roblox game. The aim for now is when I click the "AttractButton" the Object should attract towards player's location and stop 4 studs away. On the other hand, clicking ...
vinny9592's user avatar
0 votes
2 answers
311 views

Is there a way to use/a workaround for http requests in a localscript in Roblox?

I'm making a roblox game, and am using a localscript to handle some of the ui stuff. I need to use an http request to grab the contents of the local players' inventory (not in-game inventory, but the ...
TheLemon27's user avatar
0 votes
1 answer
209 views

HumanoidRootPart not a valid member of Character RBLX

It's a simple local script where I clone the local player's character and place it into my viewport frame However, when trying to access the member "HumanoidRootPart" (which is usually there ...
send help please's user avatar
0 votes
1 answer
101 views

Attempt to index nil with position drops

The error: ReplicatedStorage.Modules.Drops:35: attempt to index nil with 'Position' The line: if (Character.PrimaryPart.Position - Drop.PrimaryPart.Position).Magnitude < 10 and Drop.CanCollect....
yeshua zijderveld's user avatar