Attempt to index number with 'Value'

if WhichLand.Value == "MainWorld" then
				Stage.Value = Rank.Value
				RebirthMultiplier.Value = game:WaitForChild("StarterGui"):WaitForChild("GameShop"):WaitForChild("MainFrame"):WaitForChild("Ranks"):WaitForChild("ToolList"):WaitForChild(Rank.Value):WaitForChild("Multiplier").Value
			else
				Stage.Value = AquaRank.Value
				RebirthMultiplier.Value = game:WaitForChild("StarterGui"):WaitForChild("AquaShop"):WaitForChild("MainFrame"):WaitForChild("Ranks"):WaitForChild("ToolList"):WaitForChild(AquaRank.Value):WaitForChild("Multiplier").Value
			end

Man i don’t understand where i went wrong
Please respond fast i got an update to release and this simple bug holding me backđź’€

1 Like

Hmm, which line is the error on? The only thing I can think of is that you might’ve accidentally put .Value on a variable that had .Value defined before

Could you say which line it was so we can see what line it is, also please next time use variables.

Can be made into a variable so you have:

local ToolList = game:WaitForChild("StarterGui"):WaitForChild("GameShop"):WaitForChild("MainFrame"):WaitForChild("Ranks"):WaitForChild("ToolList")

which can make you code shorter to this:

local ToolList = game:WaitForChild("StarterGui"):WaitForChild("GameShop"):WaitForChild("MainFrame"):WaitForChild("Ranks"):WaitForChild("ToolList")
if WhichLand.Value == "MainWorld" then
	Stage.Value = Rank.Value
	RebirthMultiplier.Value = ToolList:WaitForChild(Rank.Value):WaitForChild("Multiplier").Value
else
	Stage.Value = AquaRank.Value
	RebirthMultiplier.Value = ToolList:WaitForChild(AquaRank.Value):WaitForChild("Multiplier").Value
end

it errors on the rebirth multiplier part

How do you have RebirdMultiplyer defined?

And also why are you using StarterGui, shouldn’t it be playerGui? Because starter GUI is replicated once the game starts and then never again.

It’s a value i defined when creating it. Well it’s a number value while the multiplier value is a string. But i changed it to tonumber instead but still didn’t work

I want to know the exact code.

I think your accidentally doing something like this (based on the error)

local value = value.Value


print(value.Value)

This would print an error since .Value has already been defined

Edit: reply meant for op

Nah beacuse i’m just checking how much multiplier it gives. The default value

Could you send the code how you defined the value?

Yeah you need to send atleast the variables so we can know what’s going on

So what are you saying? How could i fix it?

l

ocal RebirthMultiplier = Instance.new("NumberValue", ValuesFolder)
	RebirthMultiplier.Name = "RebirthMultiplier"
	RebirthMultiplier.Value = 1

If this is what is happening (which it might not) don’t index the .Value on the variable and instead do it anywhere else (so removing the .Value on the variable)

So that is in the exact same script as the thing above?

yeah that made it error to Attempt to index number with value

Yup, long script. It’s my mainscript

Could you please just give us all variables that are used in that section?

O_O alr then here you go

local DataStoresService = game:GetService("DataStoreService")

local abbrev = {"","K", "M", "B", "T", "Qa", "Qi", "Sx", "Sp","Oc", "No", "Dc", "Ud", "Dd", "Td", "Qad", "Qid", "Sxd", "Spd", "Ocd", "Nod", "Vg", "Uvg"}

local function Format(value, idp)
	local ex = math.floor(math.log(math.max(1, math.abs(value)), 1000))
	local abbrevs = abbrev [1 + ex] or ("e+"..ex)
	local normal = math.floor(value * ((10 ^ idp) / (1000 ^ ex))) / (10 ^ idp)

	return ("%."..idp.."f%s"):format(normal, abbrevs)
end

local SizeLeaderboard = DataStoresService:GetOrderedDataStore("SizeLeaderbard")
local CoinsLeaderboard = DataStoresService:GetOrderedDataStore("CoinsLeaderbard")
local AquaCoinsLeaderboard = DataStoresService:GetOrderedDataStore("AquaCoinsLeaderbard")
local KillsLeaderboard = DataStoresService:GetOrderedDataStore("KillsLeaderboardR")
local RobuxSpentLeaderboard = DataStoresService:GetOrderedDataStore("RobuxSpentLeaderboardR")
local PlayerData = DataStoresService:GetDataStore("PlayersDa")
local MS = game:GetService("MarketplaceService")
local BS = game:GetService("BadgeService")
local TweenService = game:GetService("TweenService")
local RedButton = "rbxassetid://10443326855"
local GreenButton = "rbxassetid://10442856818"

local PhysicsService = game:GetService("PhysicsService")
local Players = game:GetService("Players")

local playerCollisionGroupName = "Players"
PhysicsService:CreateCollisionGroup(playerCollisionGroupName)
PhysicsService:CollisionGroupSetCollidable(playerCollisionGroupName, playerCollisionGroupName, false)

local RebirthValues = {
	["Stage 1"] = 1;
	["Stage 2"] = 2;
	["Stage 3"] = 5;
	["Stage 4"] = 19;
	["Stage 5"] = 99;
	["Stage 6"] = 499;
	["Stage 7"] = 2999;
	["Stage 8"] = 19000;
	["Stage 9"] = 159000;
	["Stage 10"] = 1900000;
	["Stage 11"] = 29900000;
	["Stage 12"] = 599000000;
	["Stage 13"] = 1490000000;
	["Stage 14"] = 44900000000;
	["Stage 15"] = 159000000000;
	["Stage 16"] = 629000000000000;
	["Stage 17"] = 28900000000000000;
	["Stage 18"] = 1400000000000000000;
	["Stage 19"] = 7790000000000000000;
	["Stage 20"] = 555000000000000000000;
}


local SpeedTable = {
	["Stage 1"] = 24;
	["Stage 2"] = 30;
	["Stage 3"] = 34;
	["Stage 4"] = 38;
	["Stage 5"] = 42;
	["Stage 6"] = 46;
	["Stage 7"] = 50;
	["Stage 8"] = 60;
	["Stage 9"] = 65;
	["Stage 10"] = 70;
	["Stage 11"] = 75;
	["Stage 12"] = 80;
	["Stage 13"] = 85;
	["Stage 14"] = 90;
	["Stage 15"] = 95;
	["Stage 16"] = 100;
	["Stage 17"] = 105;
	["Stage 18"] = 110;
	["Stage 19"] = 115;
	["Stage 20"] = 120;
	["Stage 21"] = 24;
	["Stage 22"] = 30;
	["Stage 23"] = 34;
	["Stage 24"] = 38;
	["Stage 25"] = 42;
	["Stage 26"] = 46;
	["Stage 27"] = 50;
	["Stage 28"] = 60;
	["Stage 29"] = 65;
	["Stage 30"] = 70;
	["Stage 31"] = 75;
	["Stage 32"] = 80;
	["Stage 33"] = 85;
	["Stage 34"] = 90;
	["Stage 35"] = 95;
	["Stage 36"] = 100;
	["Stage 37"] = 105;
	["Stage 38"] = 110;
	["Stage 39"] = 115;
	["Stage 40"] = 120;
}

local SpeedTableX2 = {
	["Stage 1"] = 24 * 2;
	["Stage 2"] = 30 * 2;
	["Stage 3"] = 34 * 2;
	["Stage 4"] = 38 * 2;
	["Stage 5"] = 42 * 2;
	["Stage 6"] = 46 * 2;
	["Stage 7"] = 50 * 2;
	["Stage 8"] = 60 * 2;
	["Stage 9"] = 65 * 2;
	["Stage 10"] = 70 * 2;
	["Stage 11"] = 75 * 2;
	["Stage 12"] = 80 * 2;
	["Stage 13"] = 85 * 2;
	["Stage 14"] = 90 * 2;
	["Stage 15"] = 95 * 2;
	["Stage 16"] = 100 * 2;
	["Stage 17"] = 105 * 2;
	["Stage 18"] = 110 * 2;
	["Stage 19"] = 115 * 2;
	["Stage 20"] = 120 * 2;
	["Stage 21"] = 24 * 2;
	["Stage 22"] = 30 * 2;
	["Stage 23"] = 34 * 2;
	["Stage 24"] = 38 * 2;
	["Stage 25"] = 42 * 2;
	["Stage 26"] = 46 * 2;
	["Stage 27"] = 50 * 2;
	["Stage 28"] = 60 * 2;
	["Stage 29"] = 65 * 2;
	["Stage 30"] = 70 * 2;
	["Stage 31"] = 75 * 2;
	["Stage 32"] = 80 * 2;
	["Stage 33"] = 85 * 2;
	["Stage 34"] = 90 * 2;
	["Stage 35"] = 95 * 2;
	["Stage 36"] = 100 * 2;
	["Stage 37"] = 105 * 2;
	["Stage 38"] = 110 * 2;
	["Stage 39"] = 115 * 2;
	["Stage 40"] = 120 * 2;
}


local previousCollisionGroups = {}

local function setCollisionGroup(object)
	if object:IsA("BasePart") then
		previousCollisionGroups[object] = object.CollisionGroupId
		PhysicsService:SetPartCollisionGroup(object, playerCollisionGroupName)
	end
end

local function setCollisionGroupRecursive(object)
	setCollisionGroup(object)

	for _, child in ipairs(object:GetChildren()) do
		setCollisionGroupRecursive(child)
	end
end

local function resetCollisionGroup(object)
	local previousCollisionGroupId = previousCollisionGroups[object]
	if not previousCollisionGroupId then return end 

	local previousCollisionGroupName = PhysicsService:GetCollisionGroupName(previousCollisionGroupId)
	if not previousCollisionGroupName then return end

	PhysicsService:SetPartCollisionGroup(object, previousCollisionGroupName)
	previousCollisionGroups[object] = nil
end

local Players = game:GetService("Players")
local SizeTweenInfo = TweenInfo.new(
	0.3,
	Enum.EasingStyle.Linear,
	Enum.EasingDirection.In,
	0,
	false,
	0
)

local GroupColors = {
	["Founder"] = Color3.fromRGB(85, 255, 0) ;
	["Moderator"] = Color3.fromRGB(255, 0, 0) ;
	["Tester"] = Color3.fromRGB(255, 85, 0) ;
	["Influencers"] = Color3.fromRGB( 85, 85, 255);
	["Fans"] = Color3.fromRGB( 85, 170, 255);
}

game.Players.PlayerAdded:Connect(function(Player)
	local PetImageTables = {
		["Dog"] = "rbxassetid://9412120794";
		["Cat"] = "rbxassetid://9412318804";
		["Bear"] = "rbxassetid://9412430355";
		["Bunny"] = "rbxassetid://9412407829";
		["Fox"] = "rbxassetid://9413125685";
		["Deer"] = "rbxassetid://9413151161";
	}

	local leaderstats = Instance.new("Folder", Player)
	leaderstats.Name = "leaderstats"

	local HiddenTools = Instance.new("Folder", Player)
	HiddenTools.Name = "HiddenTools"

	local Size = Instance.new("StringValue", leaderstats)
	Size.Name = "Size"

	local Coins = Instance.new("StringValue", leaderstats)
	Coins.Name = "Coins"

	local Stage = Instance.new("StringValue", leaderstats)
	Stage.Name = "Stage"
	Stage.Value = "Stage 1"

	local EquippedFolder = Instance.new("Folder", Player)
	EquippedFolder.Name = "EquippedFolder"

	local DataWithNoSave = Instance.new("Folder", Player)
	DataWithNoSave.Name = "DataWithNoSave"

	local DNA = Instance.new("StringValue", EquippedFolder)
	DNA.Name = "DNA"
	DNA.Value = "Kid"

	local Tool = Instance.new("StringValue", EquippedFolder)
	Tool.Name = "Tool"
	Tool.Value = "Pencil"

	local Rank = Instance.new("StringValue", EquippedFolder)
	Rank.Name = "Rank"
	Rank.Value = "Stage 1"
	
	local AquaDNA = Instance.new("StringValue", EquippedFolder)
	AquaDNA.Name = "AquaDNA"
	AquaDNA.Value = "John Dory"

	local AquaTool = Instance.new("StringValue", EquippedFolder)
	AquaTool.Name = "AquaTool"
	AquaTool.Value = "Shrimp"

	local AquaRank = Instance.new("StringValue", EquippedFolder)
	AquaRank.Name = "AquaRank"
	AquaRank.Value = "Stage 21"

	local ValuesFolder = Instance.new("Folder", Player)
	ValuesFolder.Name = "ValuesFolder"

	local TestSize = Instance.new("StringValue", ValuesFolder)
	TestSize.Name = "TestSize"
	TestSize.Value = "0"
	
	local AquaSize = Instance.new("StringValue", ValuesFolder)
	AquaSize.Name = "AquaSize"
	AquaSize.Value = "0"
	
	local AquaCoins = Instance.new("StringValue", ValuesFolder)
	AquaCoins.Name = "AquaCoins"
	AquaCoins.Value = "0"
	
	local WhichLand = Instance.new("StringValue", ValuesFolder)
	WhichLand.Name = "WhichLand"
	WhichLand.Value = "MainWorld"

	local RealCoins = Instance.new("StringValue", ValuesFolder)
	RealCoins.Name = "RealCoins"
	RealCoins.Value = "0"

	local RobuxSpent = Instance.new("NumberValue", ValuesFolder)
	RobuxSpent.Name = "RobuxSpent"
	RobuxSpent.Value = 0
	
	local AquaDnaPage = Instance.new("NumberValue", ValuesFolder)
	AquaDnaPage.Name = "AquaDnaPage"
	AquaDnaPage.Value = 1
	
	local AquaToolPage = Instance.new("NumberValue", ValuesFolder)
	AquaToolPage.Name = "AquaToolPage"
	AquaToolPage.Value = 1
	
	local GreenlandDnaPage = Instance.new("NumberValue", ValuesFolder)
	GreenlandDnaPage.Name = "GreenlandDnaPage"
	GreenlandDnaPage.Value = 1

	local GreenlandToolPage = Instance.new("NumberValue", ValuesFolder)
	GreenlandToolPage.Name = "GreenlandToolPage"
	GreenlandToolPage.Value = 1

	local RebirthMultiplier = Instance.new("NumberValue", ValuesFolder)
	RebirthMultiplier.Name = "RebirthMultiplier"
	RebirthMultiplier.Value = 1

	local SizeBoost30X = Instance.new("NumberValue", ValuesFolder)
	SizeBoost30X.Name = "SizeBoost30X"
	SizeBoost30X.Value = 1

	local SizeBoost10X = Instance.new("NumberValue", ValuesFolder)
	SizeBoost10X.Name = "SizeBoost10X"
	SizeBoost10X.Value = 1

	local InSafeZone = Instance.new("BoolValue", ValuesFolder)
	InSafeZone.Name = "InSafeZone"
	InSafeZone.Value = false
	print("RunnedSoFar")
	local AutoSell = Instance.new("BoolValue", ValuesFolder)
	AutoSell.Name = "AutoSell"
	AutoSell.Value = false

	local InBrawl = Instance.new("BoolValue", ValuesFolder)
	InBrawl.Name = "InBrawl"
	InBrawl.Value = false

	local InRing = Instance.new("BoolValue", ValuesFolder)
	InRing.Name = "InRing"
	InRing.Value = false

	RebirthMultiplier.Value = 1

	--Tools / 44

	local ToolsOwned = Instance.new("Folder", Player)
	ToolsOwned.Name = "ToolsOwned"

	

	--Ranks // Stages
	local RanksOwned = Instance.new("Folder", Player)
	RanksOwned.Name = "RanksOwned"

	local Stage1 = Instance.new("BoolValue", RanksOwned)
	Stage1.Name = "Stage 1"
	Stage1.Value = true

	local Stage2 = Instance.new("BoolValue", RanksOwned)
	Stage2.Name = "Stage 2"

	local Stage3 = Instance.new("BoolValue", RanksOwned)
	Stage3.Name = "Stage 3"

	local Stage4 = Instance.new("BoolValue", RanksOwned)
	Stage4.Name = "Stage 4"

	local Stage5 = Instance.new("BoolValue", RanksOwned)
	Stage5.Name = "Stage 5"

	local Stage6 = Instance.new("BoolValue", RanksOwned)
	Stage6.Name = "Stage 6"

	local Stage7 = Instance.new("BoolValue", RanksOwned)
	Stage7.Name = "Stage 7"

	local Stage8 = Instance.new("BoolValue", RanksOwned)
	Stage8.Name = "Stage 8"

	local Stage9 = Instance.new("BoolValue", RanksOwned)
	Stage9.Name = "Stage 9"

	local Stage10 = Instance.new("BoolValue", RanksOwned)
	Stage10.Name = "Stage 10"

	local Stage11 = Instance.new("BoolValue", RanksOwned)
	Stage11.Name = "Stage 11"

	local Stage12 = Instance.new("BoolValue", RanksOwned)
	Stage12.Name = "Stage 12"

	local Stage13 = Instance.new("BoolValue", RanksOwned)
	Stage13.Name = "Stage 13"

	local Stage14 = Instance.new("BoolValue", RanksOwned)
	Stage14.Name = "Stage 14"

	local Stage15 = Instance.new("BoolValue", RanksOwned)
	Stage15.Name = "Stage 15"

	local Stage16 = Instance.new("BoolValue", RanksOwned)
	Stage16.Name = "Stage 16"

	local Stage17 = Instance.new("BoolValue", RanksOwned)
	Stage17.Name = "Stage 17"

	local Stage18 = Instance.new("BoolValue", RanksOwned)
	Stage18.Name = "Stage 18"

	local Stage19 = Instance.new("BoolValue", RanksOwned)
	Stage19.Name = "Stage 19"

	local Stage20 = Instance.new("BoolValue", RanksOwned)
	Stage20.Name = "Stage 20"
	
	
	
	--Dna // Genes // 34
	local DnaOwned = Instance.new("Folder", Player)
	DnaOwned.Name = "DnaOwned"

	local SizeVal2 = Instance.new("NumberValue", ValuesFolder)
	SizeVal2.Name = "SizeVal2"

	local CoinsVal2 = Instance.new("NumberValue", ValuesFolder)
	CoinsVal2.Name = "CoinsVal2"
	
	local AquaCoinsVal2 = Instance.new("NumberValue", ValuesFolder)
	AquaCoinsVal2.Name = "AquaCoinsVal2"

	local KillStreak = Instance.new("NumberValue", ValuesFolder)
	KillStreak.Name = "KillStreak"

	local IsInBrawl = Instance.new("BoolValue", ValuesFolder)
	IsInBrawl.Name = "IsInBrawl"

	local PetsSettings = Instance.new("Folder", Player)
	PetsSettings.Name = "PetsSettings"

	local MaxPets = Instance.new("NumberValue", PetsSettings)
	MaxPets.Name = "MaxPets"
	MaxPets.Value = 20

	local SecLeftOf30XSize = Instance.new("NumberValue", ValuesFolder)
	SecLeftOf30XSize.Name = "SecLeftOf30XSize"
	SecLeftOf30XSize.Value = 0

	local SecLeftOf10XSize = Instance.new("NumberValue", ValuesFolder)
	SecLeftOf10XSize.Name = "SecLeftOf10XSize"
	SecLeftOf10XSize.Value = 0

	local SecLeftOfAutoSell = Instance.new("NumberValue", ValuesFolder)
	SecLeftOfAutoSell.Name = "SecLeftOfAutoSell"
	SecLeftOfAutoSell.Value = 0

	local AmountOfPets = Instance.new("NumberValue", PetsSettings)
	AmountOfPets.Name = "AmountOfPets"
	AmountOfPets.Value = 0

	local PetsMultiplierSize = Instance.new("NumberValue", PetsSettings)
	PetsMultiplierSize.Name = "PetsMultiplierSize"
	PetsMultiplierSize.Value = 1

	local PetsMultiplierCoins = Instance.new("NumberValue", PetsSettings)
	PetsMultiplierCoins.Name = "PetsMultiplierCoins"
	PetsMultiplierCoins.Value = 1

	local PetsEquipped = Instance.new("NumberValue", PetsSettings)
	PetsEquipped.Name = "PetsEquipped"
	PetsEquipped.Value = 0

	local Settings = Instance.new("Folder", Player)
	Settings.Name = "Settings"

	local Pets = Instance.new("Folder", Player)
	Pets.Name = "Pets"

	local Codes = Instance.new("Folder", Player)
	Codes.Name = "Codes"

	local WalkSpeed = Instance.new("NumberValue", ValuesFolder)
	WalkSpeed.Name = "WalkSpeed"
	WalkSpeed.Value = 24

	local Retrysec = Instance.new("NumberValue", ValuesFolder)
	Retrysec.Name = "Retrysec"
	Retrysec.Value = 2

	local MaxSize = Instance.new("StringValue", ValuesFolder)
	MaxSize.Name = "MaxSize"
	MaxSize.Value = "30"

	local Width = Instance.new("NumberValue", ValuesFolder)
	Width.Name = "Width"
	Width.Value = 0.5

	local Head = Instance.new("NumberValue", ValuesFolder)
	Head.Name = "Head"
	Head.Value = 0.85

	local Height = Instance.new("NumberValue", ValuesFolder)
	Height.Name = "Height"
	Height.Value = 1

	local Depth = Instance.new("NumberValue", ValuesFolder)
	Depth.Name = "Depth"
	Depth.Value = 0.5

	local MaxSizeDesc = Instance.new("NumberValue", ValuesFolder)
	MaxSizeDesc.Name = "MaxSizeDesc"
	MaxSizeDesc.Value = 10

	local TotalSize = Instance.new("StringValue", ValuesFolder)
	TotalSize.Name = "TotalSize"
	TotalSize.Value = "0"

	local Kills = Instance.new("NumberValue", ValuesFolder)
	Kills.Name = "Kills"
	Kills.Value = 0
	
	
	local MaxHealth = Instance.new("StringValue", ValuesFolder)
	MaxHealth.Name = "MaxHealth"
	MaxHealth.Value = "100"
	
	local AquaMaxHealth = Instance.new("StringValue", ValuesFolder)
	AquaMaxHealth.Name = "AquaMaxHealth"
	AquaMaxHealth.Value = "100"

	if MS:UserOwnsGamePassAsync(Player.UserId, 47285641) then
		MaxHealth.Value = 200
	end

	local AutoClicking = Instance.new("BoolValue", ValuesFolder)
	AutoClicking.Name = "AutoClicking"
	AutoClicking.Value = false

	local TotalMultiplier = Instance.new("NumberValue", ValuesFolder)
	TotalMultiplier.Name = "TotalMultiplier"
	TotalMultiplier.Value = 1

	local Music = Instance.new("BoolValue", Settings)
	Music.Name = "Music"
	Music.Value = true

	local SFX = Instance.new("BoolValue", Settings)
	SFX.Name = "SFX"
	SFX.Value = true

	local LoadingData = Instance.new("BoolValue", ValuesFolder)
	LoadingData.Name = "LoadingData"
	LoadingData.Value = true

	local Popups = Instance.new("BoolValue", Settings)
	Popups.Name = "Popups"
	Popups.Value = true

	local Sell = Instance.new("BoolValue", Settings)
	Sell.Name = "Sell"
	Sell.Value = true

	local Teleport = Instance.new("BoolValue", Settings)
	Teleport.Name = "Teleport"
	Teleport.Value = true

	local Visits = Instance.new("BoolValue", Codes)
	Visits.Name = "1.5mvisits"

	local Likes = Instance.new("BoolValue", Codes)
	Likes.Name = "5klikes"

	local YoutuberCode = Instance.new("BoolValue", Codes)
	YoutuberCode.Name = "doctorplanezonyt"

	local updatedelay = Instance.new("BoolValue", Codes)
	updatedelay.Name = "updatedelay"

	local sorryfordataloss = Instance.new("BoolValue", Codes)
	sorryfordataloss.Name = "sorryfordataloss"

	local Concealed = Instance.new("BoolValue", ValuesFolder)
	Concealed.Value = false
	Concealed.Name = "Concealed"
	local function CharAdded(Character)
		local folder = Instance.new("Folder")
		folder.Name = "PetsEquipped"
		folder.Parent = Player.Character
		
		Player.Character.Humanoid.WalkSpeed = WalkSpeed.Value
		Player.Character.Humanoid.MaxHealth = MaxHealth.Value
		
		local Combat = game.ServerStorage:WaitForChild("CombatPunch"):Clone()
		Combat.Parent = Player.Backpack

		local Stomp = game.ServerStorage:WaitForChild("CombatStomp"):Clone()
		Stomp.Parent = Player.Backpack
		
		Character.Humanoid.DisplayDistanceType = Enum.HumanoidDisplayDistanceType.None
		local ClaimedKills = Instance.new("BoolValue", Character)
		ClaimedKills.Value = false
		ClaimedKills.Name = "ClaimedKills"
		
		if WhichLand.Value == "MainWorld" then
			local ClonedTool = game.ReplicatedStorage.Tools[Tool.Value]:Clone()
			ClonedTool.Parent = Player.Backpack
		else
			local ClonedTool = game.ReplicatedStorage.Tools[AquaTool.Value]:Clone()
			ClonedTool.Parent = Player.Backpack
		end
		

		TweenService:Create(Character.Humanoid.BodyHeightScale, SizeTweenInfo, {Value = Height.Value}):Play()
		TweenService:Create(Character.Humanoid.HeadScale, SizeTweenInfo, {Value = Head.Value}):Play()
		TweenService:Create(Character.Humanoid.BodyWidthScale, SizeTweenInfo, {Value = Width.Value}):Play()
		TweenService:Create(Character.Humanoid.BodyDepthScale, SizeTweenInfo, {Value = Depth.Value}):Play()
		if Concealed.Value == true then
			TweenService:Create(Character.Humanoid.BodyHeightScale, SizeTweenInfo, {Value = 1}):Play()
			TweenService:Create(Character.Humanoid.HeadScale, SizeTweenInfo, {Value = 0.85}):Play()
			TweenService:Create(Character.Humanoid.BodyWidthScale, SizeTweenInfo, {Value = 0.5}):Play()
			TweenService:Create(Character.Humanoid.BodyDepthScale, SizeTweenInfo, {Value = 0.5}):Play()

		end
		
		
		Character.Humanoid.Died:Connect(function()
			if InBrawl.Value == true then
				Player.PlayerGui:WaitForChild("PopUps"):WaitForChild("BrawlGUIs"):WaitForChild("MainText!").Text = "Brawl In Progress!"
			end
			InBrawl.Value = false
			AutoClicking.Value = false
			Player.ValuesFolder.InSafeZone.Value = false
		end)
		setCollisionGroupRecursive(Character)

		Character.DescendantAdded:Connect(setCollisionGroup)
		Character.DescendantRemoving:Connect(resetCollisionGroup)
	end
	local data
	local success, errorMessage = pcall(function()
		if DataStoresService:GetRequestBudgetForRequestType(Enum.DataStoreRequestType.GetAsync) > 0 then
			data = PlayerData:GetAsync(Player.UserId)
		else 
			repeat task.wait(1) until DataStoresService:GetRequestBudgetForRequestType(Enum.DataStoreRequestType.GetAsync) > 0
			data = PlayerData:GetAsync(Player.UserId)
		end
	end)
	
	for i, v in pairs(Player.PlayerGui:WaitForChild("AquaShop"):WaitForChild("MainFrame"):WaitForChild("Ranks"):WaitForChild("ToolList"):GetChildren()) do
		if v.Name ~= "UIGridLayout" then
			local dna = Instance.new("BoolValue", RanksOwned)
			dna.Name = v.Name
			if dna.Name == "Stage 21" then
				dna.Value = true
			end
			print("SuccessDna")
		end
	end
	
	for i, v in pairs(game:WaitForChild("ReplicatedStorage"):WaitForChild("Tools"):GetChildren()) do
		if v.Name ~= "Queen Angelfish (VIP)" and v.Name ~= "Dumbell (VIP)" then
			local Stat = Instance.new("BoolValue", ToolsOwned)
			Stat.Name = v.Name
			if v.Name == "Pencil" or v.Name == "Shrimp" then
				Stat.Value = true
			end
		end
	end
	
	for i, v in pairs(Player.PlayerGui:WaitForChild("GameShop").MainFrame.Dna1.ToolList:GetChildren()) do
		if v.Name ~= "Lion (VIP)" and v.Name ~= "Alien (Inf Size)" and v.Name ~= "UIGridLayout" then
			local dna = Instance.new("BoolValue", DnaOwned)
			dna.Name = v.Name
			if dna.Name == "Kid" then
				dna.Value = true
			end
			print("SuccessDna")
		end
	end
	
	for i, v in pairs(Player.PlayerGui:WaitForChild("AquaShop").MainFrame.Dna1.ToolList:GetChildren()) do
		if v.Name ~= "Lion (VIP)" and v.Name ~= "Alien (Inf Size)" and v.Name ~= "UIGridLayout" then
			local dna = Instance.new("BoolValue", DnaOwned)
			dna.Name = v.Name
			if dna.Name == "John Dory" then
				dna.Value = true
			end
			print("SuccessDna")
		end
	end

That is a lot of WaitForChilds