damagables is a table that holds objects with damagable tags. i tried something like this but im getting addempting to call method 'FindFirstChild' (a nil value)
spawn(function() if player.Character:WaitForChild("Weapon") then if damagables:FindFirstChild(mouse.Target)then mouse.Icon = "http://www.roblox.com/asset/?id=3220002314" else mouse.Icon = "http://www.roblox.com/asset/?id=94643450" end end end)
Hi, what are tou adding at the damagable table? If you are adding the Name of the object then you can try something like this:
spawn(function() if player.Character:WaitForChild("Weapon") then if damagables[mouse.Target.Name] then mouse.Icon = "http://www.roblox.com/asset/?id=3220002314" else mouse.Icon = "http://www.roblox.com/asset/?id=94643450" end end end)
I think this should work.