sorry about the title
the firer
local player = game.Players.LocalPlayer --- this has to be in starter pack, this is a local script
local mouse = player:GetMouse()
local toggle = false
mouse.KeyDown:connect(function(key)
if not toggle and key == "x" then
game.ReplicatedStorage.dark.tp:FireServer(mouse)
end
end)
this part wont work no errors
game.ReplicatedStorage.dark.tp.OnServerEvent:Connect(function(player,mouse)
local epa = player.Character.Head:FindFirstChild("death")
if epa then
player.Character.HumanoidRootPart.CFrame = epa.CFrame
epa.Parent = workspace
epa:Remove()
end
end)

2 comments
i refuse to help with code this poorly indented
sorry about that,trying to make something really fast the code is easy thou