iiSquare
|
  |
| Joined: 01 Apr 2012 |
| Total Posts: 390 |
|
|
| 28 Aug 2016 03:28 PM |
How would I make a script so that when you touch a part that it finds the player in "Players"?
------------------------------------------------------------------------------------------------------------------------------------------------ You just got nae nae'd |
|
|
| Report Abuse |
|
|
RoflBread
|
  |
| Joined: 18 Jun 2009 |
| Total Posts: 3803 |
|
|
| 28 Aug 2016 03:29 PM |
player = game.Players:GetPlayerFromCharacter(hit.parent)
if player ~= nil then
end |
|
|
| Report Abuse |
|
|
gIoam
|
  |
| Joined: 23 Jul 2015 |
| Total Posts: 310 |
|
|
| 28 Aug 2016 03:30 PM |
script.Parent.Touched:connect(function(p) local player = game.Players:GetPlayerFromCharacter(p.Parent) if player then end end) |
|
|
| Report Abuse |
|
|
Repsej112
|
  |
| Joined: 22 Jan 2013 |
| Total Posts: 205 |
|
|
| 28 Aug 2016 03:32 PM |
part.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player==true then --code end) |
|
|
| Report Abuse |
|
|
Repsej112
|
  |
| Joined: 22 Jan 2013 |
| Total Posts: 205 |
|
| |
|
iiSquare
|
  |
| Joined: 01 Apr 2012 |
| Total Posts: 390 |
|
|
| 28 Aug 2016 03:34 PM |
Yeah thanks I got it now.
------------------------------------------------------------------------------------------------------------------------------------------------ You just got nae nae'd |
|
|
| Report Abuse |
|
|