|
| 13 Jul 2011 12:13 AM |
function onTouched(part) local h = part.Parent:findFirstChild("Humanoid") if h~=nil then script.Parent.Parent.Name = h.Parent.Name.. "'s House." local player = game.Players:playerFromCharacter(h.Parent) if player == nil then script.Parent.Name = "Un-Owned" else print("The Owner Is Still In The Game") end end end
script.Parent.Touched:connect(onTouched)
Can you make it that when the player leaves it will make the button available again to become the owner. |
|
|
| Report Abuse |
|
|
|
| 13 Jul 2011 12:18 AM |
| Are you actually making your own games now? |
|
|
| Report Abuse |
|
|
| |
|
Pichu7245
|
  |
| Joined: 17 May 2009 |
| Total Posts: 16489 |
|
| |
|
| |
|
Pichu7245
|
  |
| Joined: 17 May 2009 |
| Total Posts: 16489 |
|
|
| 13 Jul 2011 12:23 AM |
| You asked for a script. Anyone who enters this thread and reads it has received the request. |
|
|
| Report Abuse |
|
|
| |
|
Ducksen
|
  |
| Joined: 13 Jan 2011 |
| Total Posts: 11273 |
|
| |
|
Ducksen
|
  |
| Joined: 13 Jan 2011 |
| Total Posts: 11273 |
|
|
| 13 Jul 2011 12:32 AM |
| Wait you're making a tycoon? I can help you. |
|
|
| Report Abuse |
|
|
Kirbydlx
|
  |
| Joined: 26 Dec 2009 |
| Total Posts: 5932 |
|
| |
|