#the part isn't killing the player

68 messages · Page 1 of 1 (latest)

tall ivy
#

you can try doing this:
local hum = game.Players:GetPlayerFromCharacter(hit.Parent)

ornate adder
#

k

#

alright it works

#

its just i dont know what the thing is

tall ivy
#

do

ornate adder
#

oh wait its just health

tall ivy
#

hum.Health = 0

#

yes

#

did it work?

ornate adder
reef zealotBOT
#

studio** You are now Level 1! **studio

ornate adder
#

@tall ivy

tall ivy
#

Hmm

ornate adder
#

it prints output

#

;((

tall ivy
#

wait wait

ornate adder
#

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)
tall ivy
#

ok i modified the code

#

let me try the code in my studio

ornate adder
#

hang on

#

ill send you a download

#

with smg

tall ivy
#

ok

#

wait

ornate adder
#

k you can test there

tall ivy
#

no dont

ornate adder
#

ok

tall ivy
#

i already made the script work

ornate adder
#

ok

tall ivy
#

atleast for me

ornate adder
#

ok

tall ivy
#

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)`

ornate adder
#

pwease send

tall ivy
#

add the playergui parts back

ornate adder
#

:((

tall ivy
#

what

ornate adder
#

your the worst scripter ever

tall ivy
#

why

#

just add
plr.PlayerGui.MainPlrGUI.ImageLabel.Visible = true
and
plr.PlayerGui.MainPlrGUI.ImageLabel.Visible = false

ornate adder
#

ok

#

WAHT VIRUS DID YOU ADD

#

IT CRASHES MY ROBLOX EVERY TIME

tall ivy
#

??!?!?!?

#

HOW

ornate adder
#

YOUR A BTC

#

ME HOPE YOU DIE

#

IM GETTING YOU BANNED

tall ivy
#

do u even know how to code 😂

ornate adder
#

uh

#

i am med

#

oh and btw

#

are you bottom

#

or top

tall ivy
#

?

#

wdym

#

bottom or top

#

@ornate adder

ornate adder
#

daddy

reef zealotBOT
#

studio** You are now Level 2! **studio

tall ivy
#

"daddy"

tall ivy
mortal ginkgo
#

@ornate adder hit.Parent OR hit.Parent.Parent is the character