Hello! I've been tried to make it so that, whenever reaching less than 20 HP, a ProximityPrompt will appear on the head of the person with low HP and will give the possibility to anyone except himself to suck his blood, which is done through another variable system that I do not require help with... I tried it with my friend but he says he cannot see it! Why?
--ServerScript in ServerScriptService
game.Players.PlayerAdded:Connect(function(plr)
plr.CharacterAdded:Wait()
local humanoid = plr.Character:WaitForChild("Humanoid")
local db = false
local walkspeed = tonumber(humanoid.WalkSpeed)
humanoid.HealthChanged:Connect(function()
if humanoid.Health <= 20 then
humanoid.WalkSpeed = 0
game.ReplicatedStorage.RemoteEvents.Draining:FireAllClients(plr)
else
humanoid.WalkSpeed = walkspeed
end
end)
end)
--LocalScript in StarterCharacterScripts
game.ReplicatedStorage.RemoteEvents.Draining.OnClientEvent:Connect(function(plr)
local script1 = script.Drain:Clone()
script1.Parent = plr.Character.Head
wait(15)
script1:Destroy()
end)
--Script used to suck the blood. (Not really necessary but I will still put it here.
script.Parent.TriggerEnded:Connect(function(plr)
local sucker = plr
local sucked = script.Parent.Parent.Parent
if plr.Name ~= sucked.Name then
sucker.Character:WaitForChild("Values").Blood.Blood.Value += 60
print("SUCKING ON"..sucked.."DONE BY"..sucker.." AMOUNT:"..sucker.Character.Blood.Blood.Value)
sucked:WaitForChild("Humanoid").Health = 0
else
end
end)
Please help!

1 comment
Why don't you just put the proximity prompt to the player's head on the server instead of on the client?