how do i make it so when a player touches a brick they get respawned?
The above answer will kill the player. But if you want to make the character instantly respawn without falling apart you would use this:
script.Parent.Touched:Connect(function(hit) local player = game.Players:FindFirstChild(hit.Parent.Name) if player then player:LoadCharacter() end end)
Hopefully that worked out for you. If you liked this answer please thumbs up and accept as your answer.
All the best,
PrismaticFruits - obviously a very talented scripter
You are just asking for a kill brick script:
--Variables-- local Brick = script.Parent --End-- --Code-- local function PlayerTouched(Part) local Parent = Part.Parent if game.Players:GetPlayerFromCharacter(Parent) then Parent.Humanoid.Health = 0 end end Brick.Touched:connect(PlayerTouched)