local function Z()local Z=game.Players.LocalPlayer Z.PlayerGui.Heladeria.Shop.Visible=false end local function y()local Z=ReplicatedStorage.ShopItems.SundaeLimonFresa remoteEvent:FireServer(Z)end local function F()local Z=ReplicatedStorage.ShopItems.SundaeFresa remoteEvent:FireServer(Z)end local function g()local Z=ReplicatedStorage.ShopItems.SundaeChoco remoteEvent:FireServer(Z)end local function N()local Z=ReplicatedStorage.ShopItems.SundaeLimon remoteEvent:FireServer(Z)end
--[[local function shopMenu(otherPart)
	local player = game.Players:FindFirstChild(otherPart.Parent.Name)
	if player then
		player.PlayerGui.Heladeria.Shop.Visible = true --ScreenGui: Cambiar por nombre RestauranteUDL
		player.Character.Humanoid.WalkSpeed = 0
		player.Character.Head.Anchored = true
		player.Character.Humanoid.PlatformStand = true
		
	end
end]]

local function closeMenu()
	local player = game.Players.LocalPlayer
	player.PlayerGui.Heladeria.Shop.Visible = false --ScreenGui: Cambiar por nombre Restaurante
	--player.Character.HumanoidRootPart.CFrame = CFrame.new(close.Position.X,close.Position.Y + 3,close.Position.Z)
	--player.Character.Humanoid.WalkSpeed = 16
	--player.Character.Head.Anchored = false
	--player.Character.Humanoid.PlatformStand = false
end

local function buyTool1()
	local tool = ReplicatedStorage.ShopItems.SundaeLimonFresa
	remoteEvent:FireServer(tool)
end

local function buyTool2()
	local tool = ReplicatedStorage.ShopItems.SundaeFresa
	remoteEvent:FireServer(tool)
end

local function buyTool3()
	local tool = ReplicatedStorage.ShopItems.SundaeChoco
	remoteEvent:FireServer(tool)
end

local function buyTool4()
	local tool = ReplicatedStorage.ShopItems.SundaeLimon
	remoteEvent:FireServer(tool)
end
