generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Not giving score

Previous Thread :: Next Thread 
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
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
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
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
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 06:59 PM
Not a free model and yes, i am a very bad scripter
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 07:08 PM
your script dosnt work btw
Report Abuse
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
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
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 07:11 PM
Still removes the score
Report Abuse
Drybones3363 is not online. Drybones3363
Joined: 16 Aug 2013
Total Posts: 1547
09 Jun 2014 07:17 PM
the script that i gave u removes the score or script?
(it shouldn't remove anything)
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 07:18 PM
When i touch it after a few seconds it removes the clicks
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 07:21 PM
Only the ones it adds
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 07:23 PM
It only removes the score it adds*
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 07:32 PM
bump
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 08:49 PM
bump
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 09:05 PM
pweas
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 09:13 PM
why wont u guise halp me
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 09:24 PM
bump number 9001
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
09 Jun 2014 09:52 PM
why wont u halp me
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
10 Jun 2014 10:05 AM
wat about now?
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
10 Jun 2014 10:06 AM
FREE MODLES11111
Report Abuse
maxomega3 is not online. 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
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
10 Jun 2014 10:07 AM
w0w 0mg 7hx f0r all 7h3 h3lp! No but srsly canz u fix it
Report Abuse
Duelingwarlord is not online. Duelingwarlord
Joined: 15 Feb 2010
Total Posts: 22333
10 Jun 2014 10:08 AM
lrn2script
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
10 Jun 2014 10:08 AM
Hmm... Ill look into my other scripts
Report Abuse
maxomega3 is not online. 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
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
10 Jun 2014 10:10 AM
Ill learn to script better sometime...
Report Abuse
jeremy2003ko is not online. jeremy2003ko
Joined: 11 Feb 2010
Total Posts: 583
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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image