How could I make it so that when a player is hit by an explosion, the player hit teleports to a different area of the game

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Keep it simple and clear!
    I want a player that gets hit by an explosion to teleport to a different position
  2. What is the issue? Include screenshots / videos if possible!
    I can’t figure out how to do so and the solution I’ve tried did not teleport anything and it had no output at all.
  3. What solutions have you tried so far? Did you look for solutions on the Developer Hub?
    I’ve tried making an Explosion.Hit to get a character and teleport the character’s HumanoidRootPart’s CFrame to a different part in the Workspace’s CFrame. I did indeed look for solutions on the Developer Hub.

How would I go about doing this?

Can you give us your Explosion.Hit function?

Can you give us your script? We need to see your script to fix it

humanoid:TakeDamage(10)
game.Players.PlayerAdded:Connect(function(player)
humanoid.Parent:FindFirstChild("HumanoidRootPart").CFrame = workspace.tp.CFrame

That’s the part of the script that is not working. If I replace the part after humanoid:TakeDamage(10) to something like humanoid.Parent:FindFirstChild(“HumanoidRootPart”).Anchored = true that works fine.

I got it. I just messed something up with PlayerAdded.

1 Like