--BROUGHT TO YOU BY RobloxScripter.com!--
-- Get the LocalPlayer
local lpplayer = game:GetService("Players").LocalPlayer
-- Check if the LocalPlayer has a character
local character = lpplayer.Character or lpplayer.CharacterAdded:Wait()
-- Find LocalScripts with "Control" in their name and disable them
local function ToggleControl(bool)
for _, script in ipairs(character:GetChildren()) do
if script:IsA("LocalScript") and string.find(script.Name:lower(), "control") then
script.Enabled = bool
end
end
end
local function hitPlayer(player)
local targetPosition = player.Character:GetBoundingBox().Position
local teleportPosition = Vector3.new(targetPosition.X, targetPosition.Y, targetPosition.Z)
character:SetPrimaryPartCFrame(CFrame.new(teleportPosition))
local args = {
[1] = "Base Horn Hit",
[2] = player.Character.Head
}
game:GetService("ReplicatedStorage"):WaitForChild("RemoteEvent8"):FireServer(unpack(args))
end
if not workspace:FindFirstChild("SafeArea") then
local platform = Instance.new("Part")
platform.Position = Vector3.new(0, 100, 0) -- Adjust the position as needed
platform.Anchored = true
platform.Size = Vector3.new(10, 1, 10) -- Adjust the size as needed
platform.Name = "SafeArea"
platform.Parent = workspace
end
local UserInputService = game:GetService("UserInputService")
UserInputService.InputBegan:Connect(function(input, isProcessed)
if input.KeyCode == Enum.KeyCode.F and not isProcessed then
ToggleControl(false)
for _, targetPlayer in ipairs(game.Players:GetPlayers()) do
if targetPlayer ~= lpplayer and targetPlayer.Character and not targetPlayer.Character:FindFirstChild("NewGiraffeControl") and targetPlayer.Character:FindFirstChild("Head") then
local startTime = tick() -- Get the current time
while targetPlayer.Character.Humanoid2.Health > 0 and (tick() - startTime < 10) do
hitPlayer(targetPlayer)
wait() -- Adjust the delay between hits if needed
end
end
end
character:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0, 105, 0)))
ToggleControl(true)
end
end)