Script.respawnPoint = "" -- entity "Resspawn point"
function Script:Collision (entity, position, normal, speed)
if (entity:GetKeyValue ("name") == "Player") then
spawnpos = self.respawnPoint:GetPosition()
entity:SetPosition(spawnpos)
spawnRot = self.respawnPoint:GetRotation()
entity.script.camRotation = spawnRot
end
end
hi i was trying to have it when the player hits a place it brings them back to the area before.
i had it working but nor it kills the player sometimes when he hits the trigger.
Thanks in advance.