while wait() do
for i,v in pairs(workspace.Enemies:GetChildren()) do
v.Humanoid.Touched:Connect(function(hit)
if deb == false then
local player = players:GetPlayerFromCharacter(hit.Parent)
if not player then return end
deb = true
print("Enemy Touched by: "..player.Name)
startBattle:FireServer()
end
end)
end
end
CFrame consists of a Vector3 position AND it’s orientation. To move a model without changing it’s orientation, you can simply do the following in the server script: