So i made a game where you crucifie nextbots after that they respawn or teleport to spawnpoint well i did the teleporting script but they just hover on the air they fly Please help. (Dont know coding that much)
heres the script
while true do
wait()
if game.Workspace:FindFirstChild("Active") then
script.Parent.HumanoidRootPart.Position = game.Workspace.Active.Active.EnemyPart.Position
script.Parent.HumanoidRootPart.Anchored = true
game.Workspace.Active.Active.Start.Value = true
script.Parent.HumanoidRootPart.Position = game.Workspace.Active.Active.EnemyPart.Position
script.Parent.HumanoidRootPart.Anchored = false
script.Parent.Head.PlaySound:Stop()
script.Parent.Head.Footsteps:Stop()
wait(10)
workspace.Enemies.A60.HumanoidRootPart.CFrame = 5.153, 33.796, -73.092
end
end
İt did not work and also the crucifix capture did not work
heres the humanoid script
while true do
wait()
if game.Workspace:FindFirstChild("Active") then
script.Parent.HumanoidRootPart.Position = game.Workspace.Active.Active.EnemyPart.Position
script.Parent.HumanoidRootPart.Anchored = true
game.Workspace.Active.Active.Start.Value = true
script.Parent.HumanoidRootPart.Position = game.Workspace.Active.Active.EnemyPart.Position
script.Parent.HumanoidRootPart.Anchored = false
script.Parent.Head.PlaySound:Stop()
script.Parent.Head.Footsteps:Stop()
workspace.Enemies.A60.HumanoidRootPart.CFrame = CFrame.new(5.153, 33.796, -73.092)
wait(10)
end
end
heres the crucifix teleport script
repeat wait() until script.Parent.Start.Value == true
local Part = script.Parent.EnemyPart
local EnemyPart = script.Parent.Prepare
local EnemyPart2 = script.Parent.Oooh
local Service = game:GetService("TweenService")
local Close = TweenInfo.new(3, Enum.EasingStyle.Back, Enum.EasingDirection.Out,0,false,0)
local Close2 = TweenInfo.new(25, Enum.EasingStyle.Back, Enum.EasingDirection.Out,0,false,0)
local Close3 = TweenInfo.new(15, Enum.EasingStyle.Back, Enum.EasingDirection.Out,0,false,0)
local Close4 = TweenInfo.new(250, Enum.EasingStyle.Back, Enum.EasingDirection.Out,0,false,0)
local Tween2 = Service:Create(Part, Close4, {CFrame = EnemyPart2.CFrame})
local Tween = Service:Create(Part, Close, {CFrame = EnemyPart.CFrame})
wait(2)
Tween:Play()
wait(1)
Tween2:Play()
wait(2)
script.Parent:Destroy()