Good morning fellow (much better),scripters! Its going great but i have a problem....
I'm writing a piece of code which is not working at one point! I want to try and make it post a part's name so i can get its parent - but instead it shows a table the output is literally table: 34F44CB8... Can anyone explain this to me?
-goku:D
local player = game.Players.LocalPlayer
local desaa = false
punchanimation = Instance.new("Animation")
punchanimation.AnimationId = "http://www.roblox.com/Asset?ID=2497648378"
local ipit = game:GetService("UserInputService")
local char = game.Workspace:WaitForChild(player.Name)
ipit.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.E and desaa == false then
desaa = true
local fadfa = char.Humanoid:LoadAnimation(punchanimation)
fadfa:Play()
wait(1.9)
local touched = char.RightHand:GetTouchingParts() --table parts here
print(touched)
desaa = false
end
end)

1 comment
line 19 and 20 ? GetTouchingParts returns an array