Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommand
- RequestCommand:InvokeServer(";removeaccessories")
- RequestCommand:InvokeServer(";hat me 107676946962151 ")
- RequestCommand:InvokeServer(";shirt me 11108032864")
- RequestCommand:InvokeServer(";pants me 11108036913")
- RequestCommand:InvokeServer(";hat me 92466444782990 ")
- RequestCommand:InvokeServer(";face me 124202447665720")
- RequestCommand:InvokeServer(";fog 30")
- RequestCommand:InvokeServer(";fogcolor red")
- -- skybox
- loadstring(game:HttpGet("https://pastes.io/raw/john-doe-skybox"))()
- local ReplicatedStorage = game:GetService("ReplicatedStorage")
- local Players = game:GetService("Players")
- local UserInputService = game:GetService("UserInputService")
- local RequestCommand = ReplicatedStorage:WaitForChild("HDAdminHDClient").Signals.RequestCommand
- local player = Players.LocalPlayer
- local character = player.Character or player.CharacterAdded:Wait()
- local hand = character:FindFirstChild("Right Arm") -- Для R6 с пробелом
- local arm = character:FindFirstChild("Right Arm") -- Для R6 с пробелом
- local humanoid = character:FindFirstChildOfClass("Humanoid")
- local animator = humanoid:FindFirstChildOfClass("Animator")
- local attackAnim = Instance.new("Animation")
- attackAnim.AnimationId = "rbxassetid://186934658"
- local attackTrack = animator:LoadAnimation(attackAnim)
- local function attack()
- attackTrack:Play()
- local hitPlayer = nil
- -- Проверка касания руки
- local function onTouch(other)
- local otherPlayer = Players:GetPlayerFromCharacter(other.Parent)
- if otherPlayer and otherPlayer ~= player then
- hitPlayer = otherPlayer
- end
- end
- local connection
- connection = arm.Touched:Connect(onTouch)
- task.wait(0.5)
- connection:Disconnect()
- if hitPlayer then
- function KillTarget(target)
- if target and target.Character then
- local head = target.Character:FindFirstChild("Head")
- if head then
- SetLocked(head, false)
- DestroyPart(head)
- end
- end
- end
- print("получили игрока:" .. hitPlayer.Name) -- Отладочная информация
- RequestCommand:InvokeServer(";music 82500396906354")
- RequestCommand:InvokeServer(";volume 0.4")
- task.wait(1) -- Ждем окончания звука
- RequestCommand:InvokeServer(";unmusic")
- KillTarget(hitPlayer)
- else
- print("Не попали в игрока") -- Отладочная информация
- RequestCommand:InvokeServer(";music 28144425")
- RequestCommand:InvokeServer(";pitch 0.64")
- RequestCommand:InvokeServer(";volume 7")
- task.wait(1) -- Ждем окончания звука
- RequestCommand:InvokeServer(";unmusic")
- end
- end
- -- Подключаем атаку на нажатие экрана
- UserInputService.TouchStarted:Connect(function(input, gameProcessed)
- print("Нажатие экрана зафиксировано") -- Отладочная информация
- if gameProcessed then
- print("Игровой процесс уже обработан") -- Отладочная информация
- return
- end
- attack()
- end)
Advertisement
Add Comment
Please, Sign In to add comment