Is their a way that this tornado can hit others but not the local player
Note this is a Script
script.Parent.Touched:Connect(function(hit) -- local char = player.Character -- local hum = char:WaitForChild("Humanoid") local ehum = hit and hit.Parent:FindFirstChild("Humanoid") if ehum then--and ehum ~= hum then ehum:TakeDamage(4) print("owu") end end)
Touched event provides you with the part that touched in it's parameter (Where you have hit). Since hit can be any part, even your character limbs, you would want to check using if-statements to make sure hit's parent (Which could be the character model) isn't your own self.
script.Parent.Touched:Connect(function(hit) --You should check if hit.Parent is a player character before hand too local ehum = hit.Parent:FindFirstChild("Humanoid") if hit.Parent.Name ~= "Tizzel40" then ehum:TakeDamage(4) print("owu") end end)
There are also ways to get the Player from the character model using PlayersService:GetPayerFromCharacter(character)
but I don't know how relevant that is for this question.