Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

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

Asked by
A_quib -3
2 years ago

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

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? ayuu1234 0 — 2y
0
@ayuu1234 I want them to just be tped back to spawn. A_quib -3 — 2y

Closed as Not Constructive by Spjureeedd, 2_MMZ, RAFA1608, and NGC4637

This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.

Why was this question closed?

1 answer

Log in to vote
0
Answered by
SpiralRBX 224 Moderation Voter
2 years ago
Edited 2 years ago
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.

0
@SpiralRBX will this make the killer tp back to spawn when he kills someone A_quib -3 — 2y
0
no it didnt work smh A_quib -3 — 2y
Ad