McMrChip
|
  |
| Joined: 07 Jan 2010 |
| Total Posts: 340 |
|
|
| 06 Sep 2011 01:47 PM |
local owner = script.Parent.Parent.Parent.Owner function onHit(hit) if check ~= nil then print("A Human Has hit,FoundHumoind") local user = game.Players:GetPlayerFromCharacter(hit.Parent) if user.Name == owner.Value then local cash = user:findFirstChild("Money") cash.Value = cash.Value + script.Parent.Parent.Money.Value script.Parent.Parent.Money.Value = 0 end end end script.Parent.Touched:connect(onHit)
Im very sure that it is the function(onHit),because it does not print:A Human Has hit,FoundHumoind And the output says the script is running. |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2011 01:49 PM |
| whats "check"? i don't see it defined anywhere. |
|
|
| Report Abuse |
|
|
McMrChip
|
  |
| Joined: 07 Jan 2010 |
| Total Posts: 340 |
|
|
| 06 Sep 2011 02:10 PM |
| Thanks!I copped parts like that out of a Tycoon button I made It works now,thank you for spotting and helping me. :D |
|
|
| Report Abuse |
|
|
Miro034
|
  |
| Joined: 07 Oct 2009 |
| Total Posts: 6568 |
|
|
| 06 Sep 2011 02:17 PM |
| Is this free model? (Just asking) |
|
|
| Report Abuse |
|
|
|
| 06 Sep 2011 02:22 PM |
Just needed to define check. :Þ
|
|
|
| Report Abuse |
|
|
McMrChip
|
  |
| Joined: 07 Jan 2010 |
| Total Posts: 340 |
|
|
| 11 Sep 2011 03:33 PM |
| @Miro034 Nope,im just learning how tycoons work as I allready owned a tycoon (which was a free model tycoon kit)I felt abit cheep and lazy,so...I started to make my own! |
|
|
| Report Abuse |
|
|