#What is the best way to check if a part is part of character

1 messages · Page 1 of 1 (latest)

open bramble
#
local function Hit(plr : Players, Position : Vector3)
    Connection = RunService.Heartbeat:Connect(function(dt)
        local result = Raycast(plr, Position)
        if result and result.Instance:IsDescendantOf("Model") then
            
        end
    end)
end
open bramble
#

thx 🙂

crisp tiger
#

if your using r6. there should be 6 parts. r15. 15 parts

prisma haven
crisp tiger
#

could be done in both

#

but imo manually is easier for me

open bramble
prisma haven
open bramble
#

will it cause error if part.parent is just a regular part?

spare nacelleBOT
#

studio** You are now Level 3! **studio

prisma haven
open bramble
#

okay thx

open bramble
#

is there a way to get the player directly?

warm mason
#

unless you meant game.players.getplayerfromuserid(player.userid) or something

open bramble
#

i got a raycast
i want a way to check is result instance is a character model

warm mason
open bramble
#

i just want the play model

warm mason
#

hit.parent?

open bramble
#

but how do i check if that is the character?

warm mason
#

i'm confused

open bramble
#

oh i got do that

#

ty!

#

i meant that only give the player tho

#

ik i got do plr.character but is therea faster way?