botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 09:32 AM |
| I am trying to learn scripting so I can't make this yet. I am trying to make a coin that a person can get only one time, but other people can also get it one time. I have a coin but I need a script for it, If someone agrees to do this then Ill send you the model of the coin. I will pay 100-150 R$, If it works. |
|
|
| Report Abuse |
|
|
BladeXE
|
  |
| Joined: 22 Dec 2012 |
| Total Posts: 3857 |
|
|
| 11 May 2014 09:35 AM |
#ThisGurlWantsLocalParts first u need to go to the wiki, and search "Localparts" |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 09:42 AM |
| Neon I tryed your message, It has a red line (error) under ParentIsA("Humaniod)" then |
|
|
| Report Abuse |
|
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 09:43 AM |
| Wait nvm I fixed it, imma try it now,. |
|
|
| Report Abuse |
|
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
| |
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 10:17 AM |
Neon, I don't think that is the right script for this, I tried that new thing and it does not give any coins. Output says there is nothing wrong with it though. |
|
|
| Report Abuse |
|
|
ajmhm1111
|
  |
| Joined: 22 Jun 2013 |
| Total Posts: 164 |
|
|
| 11 May 2014 10:55 AM |
Hello,
Did you remember a connection line?
--ajmhm111 |
|
|
| Report Abuse |
|
|
NeonRiver
|
  |
| Joined: 12 Feb 2013 |
| Total Posts: 4936 |
|
| |
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 11:31 AM |
| There is a red error line under: if hit.Parent:IsA("Humanoid") then |
|
|
| Report Abuse |
|
|
ajmhm1111
|
  |
| Joined: 22 Jun 2013 |
| Total Posts: 164 |
|
|
| 11 May 2014 12:06 PM |
Hello,
l = script.Parent.Parent.Parent:FindFirstChild("leaderstats") --assuming coin is in workspace g = game.Workspace.Coin script.Parent.Touched:connect(function(hit) if hit.Parent:IsA("Humanoid") then l.Points.Value = l.Points.Value +1 --Change points to what it is, and change 1 also wait(.1) g:Destroy() end end)
Right there we go, that should be this thread ended.
--ajmhm1111 |
|
|
| Report Abuse |
|
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 12:13 PM |
Guys, this script is not working, I found this script that works fine, the only problem is only one person can get it, plz try to fix it,same offer remains.
local Money = script.Parent local Player function Touch(hit) if hit==nil then return end ---saves from bullets if hit.Parent:findFirstChild("Humanoid")==nil then return end ---only Humanoids can use
if game.Players:findFirstChild(hit.Parent.Name)~=nil then ---Local Player? Player = game.Players:findFirstChild(hit.Parent.Name) if Player:findFirstChild(Money.Name)==nil then Player.leaderstats["Coins"].Value = Player.leaderstats["Coins"].Value +1 ---givePoints Time :D ch=Instance.new("CFrameValue") -- No Cheating at the same egg. ch.Name = Money.Coin --Be sure that all your eggs have a different Name. ch.Parent = Player end end end script.Parent.Touched:connect(Touch)
|
|
|
| Report Abuse |
|
|
botaranng
|
  |
| Joined: 26 Dec 2012 |
| Total Posts: 454 |
|
|
| 11 May 2014 12:18 PM |
| The script above, It gives only one to you, but ONLY one person can get it. Try to fix it so that everybody can get it but it gives only one to everybody. |
|
|
| Report Abuse |
|
|