local creator = Instance.new('ObjectValue', p.Parent.Enemy) creator.Name = "creator" creator.Value = script.Parent.Parent wait(4) creator:Destroy()
when i make the value of that objectvalue = script.Parent.Parent ---- (which is my character model)
does it just take the name of my character model? or is it my actual character model id. like, if i put
game.Players:FindFirstChild(creator.Value)
would it return my character model or my player?
But you can do this...to find the player from the creator.Value
local player = game.Players:GetPlayerFromCharacter(creator.Value)
That will only work if the creator.Value is a character.