local shopPart = game.Workspace.Partlocal closeMenu = game.Workspace.closePartlocal shopMenu = script.Parentlocal function open(bodyPart) local humanoid = bodyPart.Parent:FindFirstChild('Humanoid') if humanoid then shopMenu.Visible = true endendlocal function close(bodyPart) local humanoid = bodyPart.Parent:FindFirstChild('Humanoid') if humanoid then shopMenu.Visible = false endendshopPart.Touched:Connect(open)closeMenu.Touched:Connect(close)local Button1 = script.Parentlocal part = game.Workspace.Partlocal BOOSTED_JUMP_POWER = 200local buy = falselocal function item1() if buy == false then buy = true else buy = false end endlocal function give(bodyPart) local humanoid = bodyPart.Parent:FindFirstChild('Humanoid') if humanoid and buy then local currentJumpPower = humanoid.JumpPower if currentJumpPower < BOOSTED_JUMP_POWER then humanoid.JumpPower = BOOSTED_JUMP_POWER wait(10) humanoid.JumpPower = currentJumpPower buy = false end endendButton1.MouseButton1Click:Connect(item1)part.Touched:Connect(give)local Button2 = script.Parentlocal speedPart = game.Workspace.Partlocal BOOSTED_SPEEED_POWER = 200local buy = falselocal function item2() if buy == false then buy = true else buy = false end endlocal function give(otherPart) local partParent = otherPart.Parent local humanoid = partParent:FindFirstChildWhichIsA("Humanoid") if humanoid and buy then local currentSpeed = humanoid.WalkSpeed if currentSpeed < BOOSTED_SPEEED_POWER then humanoid.WalkSpeed = BOOSTED_SPEEED_POWER wait(10) humanoid.WalkSpeed = currentSpeed buy = false end endendButton2.MouseButton1Click:Connect(item2)speedPart.Touched:Connect(give)local Button3 = script.Parentlocal part = game.Workspace.Partlocal buy = falselocal function item3() if buy == false then buy = true else buy = false end endlocal function onPartTouch(otherPart) local partParent = otherPart.Parent local humanoid = partParent:FindFirstChild("Humanoid") if humanoid and buy then -- Set player's health to 0 humanoid.Health = 0 buy = false endendpart.Touched:Connect(onPartTouch)Button3.MouseButton1Click:Connect(item3)local function onPlayerJoin(player) local leaderstats = Instance.new("Folder") leaderstats.Name = "leaderstats" leaderstats.Parent = player local gold = Instance.new("IntValue") gold.Name = "Gold" gold.Value = 50 gold.Parent = leaderstatsend game.Players.PlayerAdded:Connect(onPlayerJoin)