Value returns as nil

Im making a rating system (as you know from my last post) and the thing is it works fine, but all of a sudden some of my function run as nil. Im not sure how to put this but yeah i’ll send the whole code.

Local:

local gui = script.Parent
local Main = gui.Main


-- ID's: Empty: 8528934593 | Half: 8528935468 | Full: 8528936413

local Rating1 = Main.Rating1

Rating1.Star1_Service_Half.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = true
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = false
	Rating1.Star2_Service_Image_Full.Visible = false
	Rating1.Star3_Service_Image_Full.Visible = false
	Rating1.Star4_Service_Image_Full.Visible = false
	Rating1.Star5_Service_Image_Full.Visible = false
end)

Rating1.Star1_Service_Full.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = false
	Rating1.Star3_Service_Image_Full.Visible = false
	Rating1.Star4_Service_Image_Full.Visible = false
	Rating1.Star5_Service_Image_Full.Visible = false
end)

Rating1.Star2_Service_Half.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = true
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = false
	Rating1.Star3_Service_Image_Full.Visible = false
	Rating1.Star4_Service_Image_Full.Visible = false
	Rating1.Star5_Service_Image_Full.Visible = false
end)

Rating1.Star2_Service_Full.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = true
	Rating1.Star3_Service_Image_Full.Visible = false
	Rating1.Star4_Service_Image_Full.Visible = false
	Rating1.Star5_Service_Image_Full.Visible = false
end)

Rating1.Star3_Service_Half.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = true
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = true
	Rating1.Star3_Service_Image_Full.Visible = false
	Rating1.Star4_Service_Image_Full.Visible = false
	Rating1.Star5_Service_Image_Full.Visible = false
end)

Rating1.Star3_Service_Full.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = true
	Rating1.Star3_Service_Image_Full.Visible = true
	Rating1.Star4_Service_Image_Full.Visible = false
	Rating1.Star5_Service_Image_Full.Visible = false
end)

Rating1.Star4_Service_Half.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = true
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = true
	Rating1.Star3_Service_Image_Full.Visible = true
	Rating1.Star4_Service_Image_Full.Visible = false
	Rating1.Star5_Service_Image_Full.Visible = false
	
end)

Rating1.Star4_Service_Full.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = true
	Rating1.Star3_Service_Image_Full.Visible = true
	Rating1.Star4_Service_Image_Full.Visible = true
	Rating1.Star5_Service_Image_Full.Visible = false
end)

Rating1.Star5_Service_Half.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = true
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = true
	Rating1.Star3_Service_Image_Full.Visible = true
	Rating1.Star4_Service_Image_Full.Visible = true
	Rating1.Star5_Service_Image_Full.Visible = false

end)

Rating1.Star5_Service_Full.MouseButton1Click:Connect(function()
	Rating1.Star1_Service_Image_Half.Visible = false
	Rating1.Star2_Service_Image_Half.Visible = false
	Rating1.Star3_Service_Image_Half.Visible = false
	Rating1.Star4_Service_Image_Half.Visible = false
	Rating1.Star5_Service_Image_Half.Visible = false
	Rating1.Star1_Service_Image_Full.Visible = true
	Rating1.Star2_Service_Image_Full.Visible = true
	Rating1.Star3_Service_Image_Full.Visible = true
	Rating1.Star4_Service_Image_Full.Visible = true
	Rating1.Star5_Service_Image_Full.Visible = true
end)



-- Rating2



local Rating2 = Main.Rating2

Rating2.Star1_Service_Half.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = true
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = false
	Rating2.Star2_Service_Image_Full.Visible = false
	Rating2.Star3_Service_Image_Full.Visible = false
	Rating2.Star4_Service_Image_Full.Visible = false
	Rating2.Star5_Service_Image_Full.Visible = false
end)

Rating2.Star1_Service_Full.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = false
	Rating2.Star3_Service_Image_Full.Visible = false
	Rating2.Star4_Service_Image_Full.Visible = false
	Rating2.Star5_Service_Image_Full.Visible = false
end)

Rating2.Star2_Service_Half.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = true
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = false
	Rating2.Star3_Service_Image_Full.Visible = false
	Rating2.Star4_Service_Image_Full.Visible = false
	Rating2.Star5_Service_Image_Full.Visible = false
end)

Rating2.Star2_Service_Full.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = true
	Rating2.Star3_Service_Image_Full.Visible = false
	Rating2.Star4_Service_Image_Full.Visible = false
	Rating2.Star5_Service_Image_Full.Visible = false
end)

Rating2.Star3_Service_Half.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = true
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = true
	Rating2.Star3_Service_Image_Full.Visible = false
	Rating2.Star4_Service_Image_Full.Visible = false
	Rating2.Star5_Service_Image_Full.Visible = false
end)

Rating2.Star3_Service_Full.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = true
	Rating2.Star3_Service_Image_Full.Visible = true
	Rating2.Star4_Service_Image_Full.Visible = false
	Rating2.Star5_Service_Image_Full.Visible = false
end)

Rating2.Star4_Service_Half.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = true
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = true
	Rating2.Star3_Service_Image_Full.Visible = true
	Rating2.Star4_Service_Image_Full.Visible = false
	Rating2.Star5_Service_Image_Full.Visible = false

end)

Rating2.Star4_Service_Full.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = true
	Rating2.Star3_Service_Image_Full.Visible = true
	Rating2.Star4_Service_Image_Full.Visible = true
	Rating2.Star5_Service_Image_Full.Visible = false
end)

Rating2.Star5_Service_Half.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = true
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = true
	Rating2.Star3_Service_Image_Full.Visible = true
	Rating2.Star4_Service_Image_Full.Visible = true
	Rating2.Star5_Service_Image_Full.Visible = false

end)

Rating2.Star5_Service_Full.MouseButton1Click:Connect(function()
	Rating2.Star1_Service_Image_Half.Visible = false
	Rating2.Star2_Service_Image_Half.Visible = false
	Rating2.Star3_Service_Image_Half.Visible = false
	Rating2.Star4_Service_Image_Half.Visible = false
	Rating2.Star5_Service_Image_Half.Visible = false
	Rating2.Star1_Service_Image_Full.Visible = true
	Rating2.Star2_Service_Image_Full.Visible = true
	Rating2.Star3_Service_Image_Full.Visible = true
	Rating2.Star4_Service_Image_Full.Visible = true
	Rating2.Star5_Service_Image_Full.Visible = true
end)

-- Rating 3

local Rating3 = Main.Rating3

Rating3.Star1_Service_Half.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = true
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = false
	Rating3.Star2_Service_Image_Full.Visible = false
	Rating3.Star3_Service_Image_Full.Visible = false
	Rating3.Star4_Service_Image_Full.Visible = false
	Rating3.Star5_Service_Image_Full.Visible = false
end)

Rating3.Star1_Service_Full.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = false
	Rating3.Star3_Service_Image_Full.Visible = false
	Rating3.Star4_Service_Image_Full.Visible = false
	Rating3.Star5_Service_Image_Full.Visible = false
end)

Rating3.Star2_Service_Half.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = true
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = false
	Rating3.Star3_Service_Image_Full.Visible = false
	Rating3.Star4_Service_Image_Full.Visible = false
	Rating3.Star5_Service_Image_Full.Visible = false
end)

Rating3.Star2_Service_Full.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = true
	Rating3.Star3_Service_Image_Full.Visible = false
	Rating3.Star4_Service_Image_Full.Visible = false
	Rating3.Star5_Service_Image_Full.Visible = false
end)

Rating3.Star3_Service_Half.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = true
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = true
	Rating3.Star3_Service_Image_Full.Visible = false
	Rating3.Star4_Service_Image_Full.Visible = false
	Rating3.Star5_Service_Image_Full.Visible = false
end)

Rating3.Star3_Service_Full.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = true
	Rating3.Star3_Service_Image_Full.Visible = true
	Rating3.Star4_Service_Image_Full.Visible = false
	Rating3.Star5_Service_Image_Full.Visible = false
end)

Rating3.Star4_Service_Half.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = true
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = true
	Rating3.Star3_Service_Image_Full.Visible = true
	Rating3.Star4_Service_Image_Full.Visible = false
	Rating3.Star5_Service_Image_Full.Visible = false

end)

Rating3.Star4_Service_Full.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = true
	Rating3.Star3_Service_Image_Full.Visible = true
	Rating3.Star4_Service_Image_Full.Visible = true
	Rating3.Star5_Service_Image_Full.Visible = false
end)

Rating3.Star5_Service_Half.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = true
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = true
	Rating3.Star3_Service_Image_Full.Visible = true
	Rating3.Star4_Service_Image_Full.Visible = true
	Rating3.Star5_Service_Image_Full.Visible = false

end)

Rating3.Star5_Service_Full.MouseButton1Click:Connect(function()
	Rating3.Star1_Service_Image_Half.Visible = false
	Rating3.Star2_Service_Image_Half.Visible = false
	Rating3.Star3_Service_Image_Half.Visible = false
	Rating3.Star4_Service_Image_Half.Visible = false
	Rating3.Star5_Service_Image_Half.Visible = false
	Rating3.Star1_Service_Image_Full.Visible = true
	Rating3.Star2_Service_Image_Full.Visible = true
	Rating3.Star3_Service_Image_Full.Visible = true
	Rating3.Star4_Service_Image_Full.Visible = true
	Rating3.Star5_Service_Image_Full.Visible = true
end)

local function rating1check()
	if Rating1.Star5_Service_Image_Full.Visible == true then
		return "5"
	elseif Rating1.Star5_Service_Image_Half.Visible == true then
		return "4.5"
	elseif Rating1.Star4_Service_Image_Full.Visible == true then
		return "4"
	elseif Rating1.Star4_Service_Image_Half.Visible == true then
		return "3.5"
	elseif Rating1.Star3_Service_Image_Full.Visible == true then
		return "3"
	elseif Rating1.Star3_Service_Image_Half.Visible == true then
		return "2.5"
	elseif Rating1.Star2_Service_Image_Full.Visible == true then
		return "2"
	elseif Rating1.Star2_Service_Image_Half.Visible == true then
		return "1.5"
	elseif Rating1.Star1_Service_Image_Full.Visible == true then
		return "1"
	elseif Rating1.Star1_Service_Image_Half.Visible == true then
		return "0.5"
	end
	return "0"
end

local function rating2check()
	if Rating2.Star5_Service_Image_Full.Visible == true then
		return "5"
	elseif Rating2.Star5_Service_Image_Half.Visible == true then
		return "4.5"
	elseif Rating2.Star4_Service_Image_Full.Visible == true then
		return "4"
	elseif Rating2.Star4_Service_Image_Half.Visible == true then
		return "3.5"
	elseif Rating2.Star3_Service_Image_Full.Visible == true then
		return "3"
	elseif Rating2.Star3_Service_Image_Half.Visible == true then
		return "2.5"
	elseif Rating2.Star2_Service_Image_Full.Visible == true then
		return "2"
	elseif Rating2.Star2_Service_Image_Half.Visible == true then
		return "1.5"
	elseif Rating2.Star1_Service_Image_Full.Visible == true then
		return "1"
	elseif Rating2.Star1_Service_Image_Half.Visible == true then
		return "0.5"
	end
	return "0"
end

local function rating3check()
	if Rating3.Star5_Service_Image_Full.Visible == true then
		return "5"
	elseif Rating3.Star5_Service_Image_Half.Visible == true then
		return "4.5"
	elseif Rating3.Star4_Service_Image_Full.Visible == true then
		return "4"
	elseif Rating3.Star4_Service_Image_Half.Visible == true then
		return "3.5"
	elseif Rating3.Star3_Service_Image_Full.Visible == true then
		return "3"
	elseif Rating3.Star3_Service_Image_Half.Visible == true then
		return "2.5"
	elseif Rating3.Star2_Service_Image_Full.Visible == true then
		return "2"
	elseif Rating3.Star2_Service_Image_Half.Visible == true then
		return "1.5"
	elseif Rating3.Star1_Service_Image_Full.Visible == true then
		return "1"
	elseif Rating3.Star1_Service_Image_Half.Visible == true then
		return "0.5"
	end
	return "0"
end

Main.SendBtn.MouseButton1Click:Connect(function(rating1checked, rating2checked, rating3checked, feedback)
	rating1checked = rating1check()
	rating2checked = rating2check()
	rating3checked = rating3check()
	feedback = Main.FeedbackBox.Text
	game.ReplicatedStorage.FlightRating.RE.Main:FireServer(rating1checked)
end)

Server:

local url = "i removed the webhook from here"
local http = game:GetService("HttpService")
local frSettings = require(workspace.AS_FlightRating.README)

local ReplicatedStorage = game:GetService("ReplicatedStorage")

local folder = Instance.new("Folder", script)
folder.Name = "ratings"

ReplicatedStorage.FlightRating.RE.Main.OnServerEvent:Connect(function(plr, rating1checked, rating2checked, rating3checked, feedback)
	
	print(rating1checked)
	print(rating2checked)
	print(rating3checked)
	
	local function rating1emojiSender()
		if rating1checked == "5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId..">"
		elseif rating1checked == "4.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId..">"
		elseif rating1checked == "4" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating1checked == "3.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating1checked == "3" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating1checked == "2.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating1checked == "2" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating1checked == "1.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIConEmpty:"..frSettings.IconEmptyId..">"
		elseif rating1checked == "1" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating1checked == "0.5" then
			return "\n<:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		end
		return "\n<:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
	end
	
	local function rating2emojiSender()
		if rating2checked == "5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId..">"
		elseif rating2checked == "4.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId..">"
		elseif rating2checked == "4" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating2checked == "3.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating2checked == "3" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating2checked == "2.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating2checked == "2" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating2checked == "1.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIConEmpty:"..frSettings.IconEmptyId..">"
		elseif rating2checked == "1" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating2checked == "0.5" then
			return "\n<:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		end
		return "\n<:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
	end
	
	local function rating3emojiSender()
		if rating3checked == "5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId..">"
		elseif rating3checked == "4.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId..">"
		elseif rating3checked == "4" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating3checked == "3.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating3checked == "3" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating3checked == "2.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating3checked == "2" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating3checked == "1.5" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIConEmpty:"..frSettings.IconEmptyId..">"
		elseif rating3checked == "1" then
			return "\n<:starIconFull:"..frSettings.IconFullId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		elseif rating3checked == "0.5" then
			return "\n<:starIconHalf:"..frSettings.IconHalfId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
		end
		return "\n<:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId.."> <:starIconEmpty:"..frSettings.IconEmptyId..">"
	end
	
	local rating1sentEmoji = rating1emojiSender()
	local rating2sentEmoji = rating2emojiSender()
	local rating3sentEmoji = rating3emojiSender()
	
	local data = {
		['embeds'] = {{
			['title'] = "New Rating from "..plr.Name,
			['description'] = frSettings.Rating1..":"..rating1sentEmoji.."\n\n"..frSettings.Rating2..":"..rating2sentEmoji.."\n\n"..frSettings.Rating3..":"..rating3sentEmoji,
			['color'] = 3769131,
			['url'] = "https://www.roblox.com/users/"..plr.UserId.."/profile"
			
		}}
	}
	
	local finaldata = http:JSONEncode(data)
	http:PostAsync(url, finaldata)
end)

I get no error but when I print the rating2checked and rating3checked they return as nil. I really dont know anymore.

game.ReplicatedStorage.FlightRating.RE.Main:FireServer(rating1checked)

you forgot to rating2checked, rating3checked (and feedback)

game.ReplicatedStorage.FlightRating.RE.Main:FireServer(rating1checked,rating2checked, rating3checked,feedback)

Can you stop repeating code? you just make your scripts harder to read and your work less efficient that way(I suggest you take a look into tables and loops). Also your way of communicating with the server is inefficient, because the checks are done on the client which means they can be bypassed by exploiters. I have left a reply regarding that topic here:

1 Like