Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Whenever you kill some1 u get tped back to ur spawn?

Can anyone tell me how to make a dueling place where if you kill someone, you get teleported back to your spawn?

2 comments

0

This isn't a script request site, but I digress, Don't ask for scripts here though, but I'll answer your question, with a bit of info Do you want the player to die when they kill someone? or do you want them to just be tped back to spawn?

0

@ayuu1234 I want them to just be tped back to spawn.

1 answer

✓ Accepted answer
game:GetService("Players").ChildAdded:Connect(function(p)
	p.CharacterAppearanceLoaded:Connect(function(c)
		c:SetPrimaryPartCFrame(CFrame.new(path.to.players.spawn.Position))
	end
end

Sources: https://developer.roblox.com/en-us/api-reference/event/Player/CharacterAppearanceLoaded https://developer.roblox.com/en-us/api-reference/function/Model/SetPrimaryPartCFrame

Hope this gives you a good understanding.

2 comments

0

@SpiralRBX will this make the killer tp back to spawn when he kills someone

0

no it didnt work smh

This discussion is preserved as it was. New answers, comments, and votes are closed.