--[[
if hasModel then
	script.Parent.Text = "ON"
	button.BackgroundColor3 = Color3.new(0, 255, 0)
elseif not hasModel then
	button.Text = "OFF"
	button.BackgroundColor3 = Color3.new(255, 0, 0)
end
--]]


button.MouseButton1Click:Connect(function()
	if RS.Models:FindFirstChild("Mesh") then
		button.Text = "ON"
		button.BackgroundColor3 = Color3.new(0, 255, 0)
		event:FireServer("on")
	elseif not RS.Models:FindFirstChild("Mesh") then
		button.Text = "OFF"
		button.BackgroundColor3 = Color3.new(255, 0, 0)
		event:FireServer("off")
	end
end)
