--BROUGHT TO YOU BY RobloxScripter.com!--
--Options
local Method = "Sword" --Fist/Claws/Sword/Scythe
_G.Enabled = true
--Services
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Players = game:GetService("Players")
local TweenService = game:GetService("TweenService")
print()
--Instances
local Map = workspace.Map
local Mobs = workspace.Mobs
local Remotes = ReplicatedStorage.Remotes
local Client = Players.LocalPlayer
--#region Functions
local spawn, wait = task.spawn, task.wait
local FireServer = Instance.new("RemoteEvent").FireServer
local InvokeServer = Instance.new("RemoteFunction").InvokeServer
function Call(self : RemoteEvent | RemoteFunction, ... : any) --Caching the FireServer and InvokeServer functions for optimization
local Method = if self:IsA("RemoteEvent") then FireServer else InvokeServer
return spawn(Method, self, ...)
end
function Teleport(Position : Vector3, Offset : Vector3, Speed : number)
local Distance = Client:DistanceFromCharacter(Position + (Offset or Vector3.zero))
if Distance 0 then
local Remote = Chest:WaitForChild("Add_To_Inventory")
for _,Drop in Chest:WaitForChild("Drops"):GetChildren() do
Call(Remote, Drop.Name)
end
end
wait(3)
end
end)