I’m making a revive system using a proximity prompt, but when I use LoadCharacter, everything under it doesn’t print.
script.Parent.Triggered:Connect(function(plr)
if script.Parent.Parent:IsA("Model") then
if plr.Name == script.Parent.Parent.Parent.Name then
print("himself")
end
-- elseif plr.Character.Humanoid.Health == 0 then
-- print("nope")
else
local character = script.Parent.Parent.Parent
local player = game.Players:GetPlayerFromCharacter(character)
local Position = player.Character.UpperTorso.CFrame
local part = Instance.new("Part")
part.Name = character.Name
part.Parent = game.Workspace
part.CFrame = plr.Character.HumanoidRootPart.CFrame
part.Anchored = true
part.Transparency = 0
part.CanCollide = false
player:LoadCharacter()
print("hi")
end
end)