|
| 09 Jun 2014 06:54 PM |
It gives me the 100 clicks and then removes it.
function onTouched(hit) local h = hit.Parent:findFirstChild("Humanoid") if (h ~= nil) then local thisplr = game.Players:findFirstChild(h.Parent.Name) if (thisplr ~= nil) then if hit.Parent:FindFirstChild("Humanoid") ~= nil then script.Parent:Remove() lds = thisplr:FindFirstChild("leaderstats") if lds ~= nil then cs = lds:FindFirstChild("Clicks") if cs ~= nil then cs.Value = cs.Value + 100 end end end end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2014 06:57 PM |
function onTouched(hit) local h = hit.Parent:findFirstChild("Humanoid") if (h ~= nil) then local thisplr = game.Players:findFirstChild(h.Parent) if (thisplr ~= nil) then lds = thisplr:FindFirstChild("leaderstats") if lds ~= nil then cs = lds:FindFirstChild("Clicks") if cs ~= nil then cs.Value = cs.Value + 100 end end end end end
script.Parent.Touched:connect(onTouched)
--is this a free model and can u even script? |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2014 06:59 PM |
| Not a free model and yes, i am a very bad scripter |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2014 07:08 PM |
| your script dosnt work btw |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2014 07:09 PM |
oops use this
function onTouched(hit) local h = hit.Parent:findFirstChild("Humanoid") if (h ~= nil) then local thisplr = game.Players:GetPlayerFromCharacter(h.Parent) if (thisplr ~= nil) then lds = thisplr:FindFirstChild("leaderstats") if lds ~= nil then cs = lds:FindFirstChild("Clicks") if cs ~= nil then cs.Value = cs.Value + 100 end end end end end
script.Parent.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jun 2014 07:17 PM |
the script that i gave u removes the score or script? (it shouldn't remove anything) |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2014 07:18 PM |
| When i touch it after a few seconds it removes the clicks |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jun 2014 07:23 PM |
| It only removes the score it adds* |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 10 Jun 2014 10:06 AM |
| If some values are being removed, then this script isn't doing it. Something else may be affecting the leaderboard. |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 10:07 AM |
| w0w 0mg 7hx f0r all 7h3 h3lp! No but srsly canz u fix it |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Jun 2014 10:08 AM |
| Hmm... Ill look into my other scripts |
|
|
| Report Abuse |
|
|
maxomega3
|
  |
| Joined: 11 Jun 2010 |
| Total Posts: 10668 |
|
|
| 10 Jun 2014 10:09 AM |
| Dueling is kind of being rude today, but you should check any other scripts for signs of manipulating the leaderboard. |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 10:10 AM |
| Ill learn to script better sometime... |
|
|
| Report Abuse |
|
|
|
| 10 Jun 2014 10:22 AM |
| Can I post my other scripts so someone can look at them? I have no idea what to look for because I didnt make the script and im a new scripter (99% sure I didnt sopy the game off 1waffle1) |
|
|
| Report Abuse |
|
|