menu
Roblox Forum Archive
Home
User Search
Forums
Donate
search
settings
Home
User Search
Forums
Donate
launch
Go to User Dashboard
Forums
Scripting Helpers
Do I put a TouchEnded inside a Touched event?
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right
Do I put a TouchEnded inside a Touched event?
Falq
Join Date: 2007-12-31
Post Count: 2521
#140843991
Saturday, July 19, 2014 2:14 PM GMT
?
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Inspectial
Join Date: 2012-10-07
Post Count: 1018
#140844064
Saturday, July 19, 2014 2:15 PM GMT
no. function onTouch(hit) --code here end script.Parent.Touched:connect(onTouch)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Falq
Join Date: 2007-12-31
Post Count: 2521
#140844106
Saturday, July 19, 2014 2:16 PM GMT
no i mean if i want to use touchended do i put it in a touched event and this is betr script.Parent.Touched:connect(function(hit) end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Inspectial
Join Date: 2012-10-07
Post Count: 1018
#140844172
Saturday, July 19, 2014 2:17 PM GMT
i don't think so.
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
ScottRhode
Join Date: 2013-03-23
Post Count: 866
#140848239
Saturday, July 19, 2014 3:28 PM GMT
TouchEnded is an event just as much as touched. Workspace.Part.TouchEnded:connect
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
Notunknown99
Join Date: 2008-09-05
Post Count: 25360
#140848302
Saturday, July 19, 2014 3:29 PM GMT
script.Parent.Touched:connect(function(obj) print(obj.Name .. ' touched ' .. script.Parent.Name) end) script.Parent.TouchEnded:connect(function(obj) print(obj.Name .. ' stopped touching ' .. script.Parent.Name) end)
Go to point in time
arrow_right
10 minutes before
5 minutes before
At time of posting
5 minutes after
10 minutes after
more_horiz
chevron_left
chevron_left
chevron_left
of
1
chevron_right
chevron_right
chevron_right