Nicoehh
|
  |
| Joined: 18 Nov 2014 |
| Total Posts: 119 |
|
|
| 02 Jan 2017 12:22 PM |
| How to find out who is the last player to touch the item and how to add hes name in StringValue? |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 02 Jan 2017 12:27 PM |
local part = script.Parent local val = part.StringValue
part.Touched:connect(function(hit) local player = game.Players:GetPlayerFromCharacter(hit.Parent) if player then val.Value = player.Name end end)
|
|
|
| Report Abuse |
|
|
Nicoehh
|
  |
| Joined: 18 Nov 2014 |
| Total Posts: 119 |
|
| |
|