Roblox Studio Int Value Won’t Change To 0
local function StartGame() local map = game.ReplicatedStorage.Maps.TestMap:Clone() map.Parent = workspace.GameArea playerModule.teleportAllPlayers(workspace.GameArea.TestMap.spawn) if votes.Mode.Bot.Value > 0 then votes.Mode.Bot.Value = 0 –Right here! end roundModule.Countdown(“Game”, 10) –change to 420 end while true do Intermission() –MapVote() ModeVote() StartGame() end The value won’t change to 0. It will change to any other number, just not 0 I tried not […]
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 time out of 3 it works.
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?
Attempt to index nil with position drops
The error
The line of code
so this is the problem and since there is 2 positions i do not know with witch one is the issue.
how can i make a proximity prompt create/unhide another proximity prompt when clicked?
i wanna make a game similar to one of the “The x Experience” in which the creator made the story based on you moving around th map and clicking proximity prompts in order
more specifically, when you click one, another one appears in a different place
Every mouse click makes the damage script play one additional more time
I am very new to roblox development and was coding a gun script that decreases damage the further away you are, every time you shoot the gun the damage script will play one additional time. if you click anywhere 3 times the damage will be tripled because the script is ran 3 times.
Roblox Studio message is getting printed multiple times
I have been working on a combat script for a game and the script is here:
Not valid member of Folder
im making kind of clickin simulator and the code is not working i still dont know how to fix it