script.Parent.Touched:connect(function(hit) print(hit) end)
My actual code is irrelevant, since the event never fires, so even this doesn't work. Help??
EDIT: It seems to only not fire when the player touches it. hm
Is the script parented to a block? If not, parent it to the block.
If that dosen't work, try this:
script.Parent.Touched:Connect(function (hit) if not hit then -- if hit dosen't exist then... print "oh noes!" -- uh oh! :( return nil -- exit program end -- now this only runs if hit exists. print(hit.Name,',',hit.Parent.Name) -- should be something like "LimbName , PlayerName" end)
--it should be script.Parent.Touched:Connect(function(hit) print(hit.Name) end)