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: I need a very, very simple script.

Previous Thread :: Next Thread 
muscleguy43 is not online. muscleguy43
Joined: 06 Nov 2011
Total Posts: 51
30 Jun 2014 01:15 PM
All I need is a block that when touched, gives x amount of "Points" on the leaderboard. That's it. Also the leaderboard would be very, very appreciated as well.
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
30 Jun 2014 01:18 PM
get out

but here is mah script

function createleaderboord
local b = instonce.new('ledorbord')
b.parent = ledorbord
end
createleaderboord()

function award(p, amt)
local money = p.lederbord.money
money.value = money.value + amt
end

script.parunt.touched:CONNECT(FUNCTION(oopsIusedCaps)
local thing = oopsIusedCaps.Parent
if thing:findFirstChild('humanoid') then
local p = game.plyrs:getplyrfromcharctur(thing)
award(p, 5)
end
end)

siggys r stupid
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
30 Jun 2014 01:20 PM
-- leaderstats


game.Players.PlayerAdded:connect(function(player)
local leaderstat = Instance.new("IntValue",player)
leaderstat.Name = "leaderstats"
local points = Instance.new("IntValue",leaderstat)
points.Name = "Points"
end)
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
30 Jun 2014 01:21 PM
thx very much but mine actualy gives point also.

siggys r stupid
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
30 Jun 2014 01:22 PM
-- Points giver
amountPoints = 0 -- Amounts of points to recieved when touch the part

script.Parent.Touched:connect(function(hit)
if hit.Parent then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then
stats = player:FindFirstChild("leaderstats"):FindFirstChild("Points")
if stats then
stats.Value = stats.Value + amountPoints
end
end
end
end)
Report Abuse
Barite is not online. Barite
Joined: 25 Jun 2014
Total Posts: 1319
30 Jun 2014 01:22 PM
partNameHere.Touched:connect(function(hit)
if hit.Parent:findFirstChild("Humanoid") and hit.Parent:findFirstChild("leaderstats") then
hit.Parent.leaderstats.Points.Value = hit.Parent.leaderstats.Points.Value + x
end)
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
30 Jun 2014 01:23 PM
-- Put the points giver thingy inside a part that you want to giff people points when they touch it.
Report Abuse
BusyCityGuy is not online. BusyCityGuy
Joined: 17 Aug 2012
Total Posts: 2144
30 Jun 2014 01:29 PM
Robomax. Get out, you troll. Giving him this script does no good at all... how much effort did you put in to screwing it up? Be nice, have a heart, and help him the way he really needs.

-The [Guy]
Report Abuse
super10099 is not online. super10099
Joined: 30 Jan 2010
Total Posts: 1102
30 Jun 2014 01:38 PM
@Barite

why u trying to find leaderstats inside a character?
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