It seems every time I program somthing with the .Touched:connect() function things don't work right. The function I put between () is not called and there is no error in output. it says the script runs, it will print things before and after the .Touched:connect(), but in the function called by it, nothing happens. Other scripts like landmines work, but when I change the script nothing happens! .Touched:wait() works, but I can't get the object touched out this way. I have posted my scripts on the scripting helper and all of the suggestions that come out don't help at all.
Please tell me this is a problem with me, not roblox.
Here is a sample bit of code I wrote that does nothing, not even an error:
function onTouched(hit)
print("Touched!")
end
print("Starting call")
script.Parent.Touched:connect(onTouched)
print("Call set up")
|