Hello, what happens is that I have a script in a block that makes that if you touch it it kills you, but the problem is that when you touch it it takes up to 2 seconds to die, and I don’t know what it might be, here is the script to see if you find any errors. Thanks (I’m new to Roblox Forum)
function onTouched(part)
local h = part.Parent:findFirstChild("Humanoid")
if h~=nil then
h.Health = h.Health-100
end
end
script.Parent.Touched:connect(onTouched)
Yes, but is there a way that I can only reduce your health by 100? Since some players have 200 lives with GamePass and the idea of GamePass is that you don’t die with a single touch (Sorry if you don’t understand me, I speak Spanish and I don’t know how to write in English)
The common issue comes from the form of replication lag. Your character on the server is actually behind and it is interpolating your position based on your input. This is because of the common practice of client-server model.