Top.Mail.Ru
Ответы
Аватар пользователя
9мес
Аватар пользователя
Аватар пользователя
Время игр
+1

Помогите сделать Роблокс скрипт который телепоритируется к игроку и убивает его во время раунда скрипт чуть чуть сделан

local Character
local LocalRootPart
local TargetCharacter
local AutofarmEnabled = true

local function GetCharacter(character)
Character = character
if Character then
LocalRootPart = Character:WaitForChild("HumanoidRootPart")
end
end

game.Players.LocalPlayer.CharacterAdded:Connect(function(character)
GetCharacter(character)
end)

-- Connect an event here for a change in the target GUI to represent a new target


game:GetService("RunService").RenderStepped:Connect(function()

if Character and LocalRootPart then
local Distance = (LocalRootPart.Position - game.Workspace.SomethingInTheLobby).Magnitude
if Distance > 300 and TargetCharacter and AutofarmEnabled then
LocalRootPart.CFrame = TargetCharacter.HumanoidRootPart.CFrame

-- Knife kill logic
local KnifeRemote = -- Path for knife handler, either in the knife or replicated storage
if KnifeRemote then
KnifeRemote:Fire() -- i cant remember if it is a bindable or a remote so this will differ
wait(0.8)
end
end
end
end)```

скрипт чуть чуть сделан но я дальше не знаю как

По дате
По рейтингу
Аватар пользователя
Мыслитель
9мес

Делай игры на source или unreal engine 5, а не на этом г