Bulvyte
|
  |
| Joined: 21 May 2014 |
| Total Posts: 716 |
|
|
| 29 Jun 2016 09:05 AM |
Since scriptinghelpers.org is AFK im stuck on this script...
player = game.Workspace.Character
function onTouch(hit) hit.Parent.game.Players:GetPlayerFromCharacter(player) if script.Parent.Parent.Parent.Owner.Value == player then print("Owner touched da brick") end
script.Parent.Touched:connect(onTouch)
what i want is when the owner touches the bricks it should print that text when it doesn't and when someon else touches it shouldn't do anything which is good
|
|
|
| Report Abuse |
|
|
Isosta
|
  |
| Joined: 10 May 2015 |
| Total Posts: 14729 |
|
|
| 29 Jun 2016 09:07 AM |
player = game.Workspace.Character
function onTouch(hit) game.Players:GetPlayerFromCharacter(hit.Parent) if script.Parent.Parent.Parent.Owner.Value == player then print("Owner touched da brick") end
script.Parent.Touched:connect(onTouch)
please don't make a tycoon with this diabetes script
- Isosta |
|
|
| Report Abuse |
|
|
Bulvyte
|
  |
| Joined: 21 May 2014 |
| Total Posts: 716 |
|
|
| 29 Jun 2016 09:12 AM |
rofl i get a blue line at "player" and 1 end marks the bottom line with red line
|
|
|
| Report Abuse |
|
|
Bulvyte
|
  |
| Joined: 21 May 2014 |
| Total Posts: 716 |
|
|
| 29 Jun 2016 09:19 AM |
ah, nvm i added local player = game.Players:GetPlayerFromCharacter(hit.Parent) line..
|
|
|
| Report Abuse |
|
|