Relative Content

Tag Archive for luaroblox-studio

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.

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.