|
| 09 Sep 2013 08:54 PM |
| well i just started making games and i am making a game called ROBLOX Fishing. i need to know a script, where if your holding a fish and it touches the object it gives you 1 point (in this i call it coins)? i dont know if any of you know this but please help |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2013 08:58 PM |
to make it easier:
when the fish touches the part "bin collector" it gives you a coin, on the leaderboard. |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2013 09:00 PM |
fish.touchy.part[binclleter].then,{blingbling}.moneys.end()
Thou creeping bat-fowling bugbear! |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2013 09:03 PM |
@super
is the {blingbling} thing supposed to be the money, can i rename it? |
|
|
| Report Abuse |
|
|
Arkose
|
  |
| Joined: 26 May 2013 |
| Total Posts: 745 |
|
|
| 09 Sep 2013 09:05 PM |
@Stealth
He's trolling..
partyoutouch = game.Workspace.Part --replace with whatever
--put this in fish
script.Parent.Touched:connect(function(hit) if hit.Name == (partyoutouch).Name end end)
Something like that. |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2013 09:06 PM |
@arkose
Thanks, i will feature you in my credits for that |
|
|
| Report Abuse |
|
|
|
| 09 Sep 2013 09:07 PM |
| Ok first of all, super's script is not even Lua. Second of all, you would use the .Touched event in a function to check if the object's name is "Fish" and if it is then award the player holding the fish 1 coin. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2013 04:05 PM |
@savior Okay.
also @arkose,
Is there a part in there where it gives you 1 coin (stat on leaderboard)? |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2013 04:10 PM |
partyoutouch = game.Workspace.Part --replace with whatever
--put this in fish
script.Parent.Touched:connect(function(hit) if hit.Name == (partyoutouch).Name then local name=hit.Parent.Name local person=Game.Players:FindFirstChild(name) if person then person.leaderstats.Coins.Value=person.leaderstats.Coins.Value+1 --replace Coins with whatever the currency's name is end end end) |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2013 04:12 PM |
partyoutouch = game.Workspace.Part --replace with whatever
--put this in fish
script.Parent.Touched:connect(function(hit) if hit.Name == (partyoutouch).Name then a=game.Players:findFirstChild(hit.Name) if a then partyoutouch:remove()--didnt use destroy just in case a.leaderstats.coins = a.leaderstats.coins + 1 end end end)
that should work try it not 100% sure though |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2013 04:22 PM |
@funny
That was more helpful, Ima put you in credits for that. |
|
|
| Report Abuse |
|
|
| |
|
| |
|
08C
|
  |
| Joined: 26 Jan 2013 |
| Total Posts: 847 |
|
| |
|