#the part isn't killing the player
68 messages · Page 1 of 1 (latest)
do
oh wait its just health
** You are now Level 1! **
@tall ivy
Hmm
wait wait
HMMM
ALL EARS LISTENING
script.Parent.Touched:Connect(function(hit)
if hit.Parent:FindFirstChildWhichIsA("Humanoid") then
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
local hum = game.Players:GetPlayerFromCharacter(hit.Parent)
plr.CameraMaxZoomDistance = 15
plr.CameraMinZoomDistance = 3
plr.PlayerGui.MainPlrGUI.ImageLabel.Visible = true
wait(1.3)
hum.Health = 0
plr.PlayerGui.MainPlrGUI.ImageLabel.Visible = false
end
end
end)
k you can test there
no dont
ok
i already made the script work
ok
atleast for me
ok
ok so i removed the playergui parts for testing
`script.Parent.Touched:Connect(function(hit)
local humanoid = hit.Parent:FindFirstChildWhichIsA("Humanoid")
if humanoid then
local character = humanoid.Parent
local player = game.Players:GetPlayerFromCharacter(character)
if player then
player.CameraMaxZoomDistance = 15
player.CameraMinZoomDistance = 3
wait(1.3)
humanoid.Health = 0
end
end
end)`
pwease send
add the playergui parts back
:((
what
your the worst scripter ever
why
just add
plr.PlayerGui.MainPlrGUI.ImageLabel.Visible = true
and
plr.PlayerGui.MainPlrGUI.ImageLabel.Visible = false
do u even know how to code 😂
daddy
** You are now Level 2! **
🏳️🌈
@ornate adder hit.Parent OR hit.Parent.Parent is the character
