Hello, started having the issue when the Player Part Touch events just don’t seem to work or provide feedback when they touch while on a dead state.
This only works when the player is Alive, it provides feedback when the player’s head touched something. When you die and fall to the ground into pieces, even when the head is bouncing around, it just won’t provide anymore touch feedback (or only in some very rare occasion, I dunno).
I want to get it to work with the R15 parts even when in dead state, I checked everything to see if the limbs don’t have canTouched but they do.
I thought it had something to do with my ragdoll script, so I tried it on a new place template and it still won’t work the way it is.
I’m also trying to get touch events to work locally.
If you want the scripts for whats going on with the Ui/Touch-event or anything else in the place, then this is all you’re gonna get:
repeat wait() until game.Players.LocalPlayer
repeat wait() until game.Players.LocalPlayer.Character
local char = game.Players.LocalPlayer.Character
local hum = char:WaitForChild("Humanoid")
hum.Died:Connect(function()
script.Parent.status.Text="DEAD"
script.Parent.status.TextColor3 = Color3.fromRGB(255,0,0)
end)
local function Notice()
script.Parent.TextLabel.Text="HEAD TOUCHED!"
script.Parent.Sound:Play()
wait(.1) script.Parent.TextLabel.Text=""
end
char:WaitForChild("Head").Touched:Connect(function() --This just doesn't work after dying for some reason.
Notice() --If touched then it'll provide feedback on the screen.
end)
Nothing wrong with the script obviously, its just supposed to provide feedback for when the head touches a part, but I’m just wondering if this could be an engine bug.
I tried my research but now I just have to ask here, would appreciate replies from you folks if you have any ideas on whats going on and if there’s a solution to get touch events to work, even when dead.