|
Title... I think doing this is gonna error...
game.Workspace..Humanoid.Health = 0 |
|
|
No name model? Is that even possible? |
|
|
If it is possible, this would be your best bet:
workspace[""].Humanoid.Health = 0 |
|
EverstoneJoin Date: 2009-08-10 Post Count: 2989 |
Err...
game.Workspace[""].Humanoid.Health = 0 |
|
|
Yea, its for a NPC for talking, when the letters are over there head, and I'm already using the Dialogs, so im making it 2 ways. |
|
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
@Everstone
workspace
Workspace
game.Workspace
game.workspace
Game.Workspace
Game.workspace
All of them work. |
|
HotThothForum ModeratorJoin Date: 2010-08-24 Post Count: 1176 |
Two other things to try might be game.Workspace:FindFirstChild("") or game.Workspace.[""], although I would think the best solution would probably be to not have a no-name model that needs to be globally found. Let me know if any of those work, as I've never tried any of those. |
|
HotThothForum ModeratorJoin Date: 2010-08-24 Post Count: 1176 |
Wow, that was a lot of replies very quickly... |
|
|
Wait, it does work, but glitchy-like :o it sometimes work, but not all the time |
|
EverstoneJoin Date: 2009-08-10 Post Count: 2989 |
WHAT!?!
Dangit Spectrum. You corrected me again. I never knew you could do that. |
|
SpectrumwJoin Date: 2009-08-04 Post Count: 13510 |
for i, v in pairs(Workspace:GetChildren()) do
if v:IsA("Model") and v.Name:len() < 1 then
v.Humanoid.Health = 0
end end |
|
|
@Spect
You did it the long way, the [""] works, now that I configure some changes |
|