Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Why is my npc only targeting R6 players? [Solved]

Asked by 6 years ago
Edited 6 years ago

Hey everyone, I am using the shade from the Forbidden Box Gear and it currently is only going after R6 players, not R15. I realize that R15 players don't have a torso so I've changed line 258 from: local t=h.Parent:FindFirstChild("Torso") to local t=h.Parent:FindFirstChild("UpperTorso"), but it still seems to be going after R6 players only. I've used the search tool to find all the "Torsos" within the script but the other ones seem to be related to the shade's torso, not the torso of other players.

001--Made by Stickmasterluke
002 
003--Shade Script
004 
005 
006sp=script.Parent
007lastattack=0
008nextrandom=0
009nextsound=0
010nextjump=0
011chasing=false
012 
013variance=3
014 
015damage=15
View all 308 lines...

Thanks for your help.

1
use the player's HumanoidRootPart so it would work for R6 and R15 User#23365 30 — 6y
0
I've set so my game is R15 only, but I'll try that. Crazycat4360 115 — 6y
0
but its recommended to use it User#23365 30 — 6y
0
Wow, that fixed it. I'm surprised. Thanks Crazycat4360 115 — 6y

Answer this question