Roblox Auto Use Speed and HighJump

public
vxpreen Jun 09, 2024 Never 72
Clone
Plaintext paste1.txt 26 lines (21 loc) | 844 Bytes
1
-- loadstring(game:HttpGet("https://pastecode.dev/raw/kkc6u7vl/paste1.txt"))()
2
3
local player = game.Players.LocalPlayer
4
local backpack = player.Backpack
5
local equipped = false
6
7
local function equipAndUseTools()
8
local speedTool = backpack:FindFirstChild("Speed")
9
local jumpTool = backpack:FindFirstChild("HighJump")
10
11
if speedTool and jumpTool then
12
-- Equip the tools if not already equipped
13
if not equipped then
14
speedTool.Parent = player.Character
15
jumpTool.Parent = player.Character
16
equipped = true
17
end
18
19
-- Use the tools
20
speedTool:Activate()
21
jumpTool:Activate()
22
end
23
end
24
25
-- Connect to the heartbeat event to run the function as frequently as possible
26
game:GetService("RunService").Heartbeat:Connect(equipAndUseTools)