Have you tried placing 2 ally dummies? Do they say both dummies are allies?
Not really but I’d assume that it’d be fixed from my code? You can try it & see if the results you get are different
Weird, It’s still the exact same…
This might be something to do with roblox?
Either that or you may need to remove 1 of your Events? Let me double-check in Studio again
The events shouldn’t be a problem, Since the first one only checks when the NPC is first spawned, And the second one checks whenever an npc is spawned after they themselves have been spawned.
Strange, on my side it just works perfectly fine
I don’t know what you’ve really changed (All I did was add the same objects, just changed the “TeamColor” to a blue’ish color
All i have is my NPCs have the default color in teamcolor, Because it gets changed as soon as they spawn, This is truely very odd
Okay so, I tried just assigned the player as the owner and using that to determine if it is an enemy or ally, And it STILL is thinking the ally is an enemy.
Are evil dummy and dummy supposed to be enemies?
If so, then isn’t it correct for friendly dummy to say that their enemy is evil dummy, and also correct for evil dummy to say that dummy is their enemy, and that they are their own ally?
One thing I’d look at is to make sure that the code that builds these AllyTable and EnemyTable entries is not run before the team color is set. But not seeing the part which sets the colors I can’t really be sure how it is being done.
Well, In my game i place 2 NPCs of the same owner, and same team color, And both tests make them say that they are eachother’s enemies which isn’t correct.
The only other alternate way I could think of is using the old chase script, but I’m not sure if that would be a valid alternate in your scenario here
Could you try adding a couple more prints? I don’t know what else to think of at this point sadly
That’s all the prints i can do ¯_(ツ)_/¯
I can put a print where it finds a npc, But we know that part works correctly.
Hm, could I send you my place file? Maybe you could replicate & find the difference there perhaps?
Yeah, We could try that, I’ll check it out
Thisisaweirdoccurance.rbxl (26.6 KB)
From what I understand, you should only see the “Allies” table printed out when you spawn in 2 Allies
in the ReplicatedStorage
Strange, It works for you perfectly fine…
Well now i’m even more confused on why this is happening.
How/when/where do you set their team color when you spawn them?
I first clone them into the workspace then set their ownership
EDIT: After realising how stupid i was, I fixed the issue by setting the teamcolor before putting them in workspace… Thanks for the help guys
Never thought it was just infront of me