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 » Scripters
Home Search
 

Re: I need help making a Leaderboard Value Changer By Name

Previous Thread :: Next Thread 
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:20 PM
this is currently the script im using To add Points To the LEADERBOARD when touched

local ting = 0

function onTouched(hit)

if ting == 0 then
ting = 1
check = hit.Parent:FindFirstChild("Humanoid")

if check ~= nil then

local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:findFirstChild("leaderstats")

if stats ~= nil then
local Points = stats:findFirstChild("Points")
Points.Value = Points.Value +400
wait(20)
end

end

ting = 0
end

end

script.Parent.Touched:connect(onTouched)



I need a This script to Give Money To SPECIFIC PLAYERS WHEN THEY JOIN THE GAME
(kinda like and admin)


Report Abuse
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:20 PM

I cant see too figure it out without Sleeping all night?

Anyone please?
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
25 Jul 2015 10:21 PM
Set the value in the script that creates the leaderstats, derp.
Report Abuse
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:23 PM
please just give me a script?
i cant figure it out!

Did not sleep Last night.


I Guard OT From Scrubs!
Report Abuse
Claof is not online. Claof
Joined: 24 Jul 2014
Total Posts: 1709
25 Jul 2015 10:25 PM
I don't know what you mean, like, leaderboard money on touch?




Very useful script made by me: http://www.roblox.com/Claofs-Multi-Script-item?id=261416189
Report Abuse
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:28 PM
This script goes into a brick, When you touch that brick. it gives you money
(the "ping" is just a timer to Stop spamming of the moeny giver)

I want is This same consept.

Istead, When a Player On the List joins, it gives them... lets say 10,000 money to the leaderboard.

possible can this script also give you money when a player on the list says ... "add/money"?

Andd..... possible if a player Has an iteam? (Ex. VIP shirt)

Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
25 Jul 2015 10:32 PM
local allowedUserIds = {game.CreatorId, some other dude's userId, another one, etc}

local ting = false

function checkIfAllowed(plr)
for i, v in pairs(allowedUserIds) do
if plr.userId == v then return true end
end
return false
end

function onTouched(hit)

if ting == false then
ting = true
check = hit.Parent:FindFirstChild("Humanoid")

if check and game.Players:GetPlayerFromCharacter(hit.Parent) then

local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:FindFirstChild("leaderstats")

if stats and checkIfAllowed(user) then
local Points = stats:findFirstChild("Points")
Points.Value = Points.Value +400
wait(20)
end

end

ting = 0
end

end

script.Parent.Touched:connect(onTouched)

Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
25 Jul 2015 10:34 PM
local allowedUserIds = {game.CreatorId, some other dude's userId, another one, etc}

local ting = false

function checkIfAllowed(plr)
for i, v in pairs(allowedUserIds) do
if plr.userId == v then return true end
end
return false
end

function onTouched(hit)

if ting == false then
ting = true
check = hit.Parent:FindFirstChild("Humanoid")

if check and game.Players:GetPlayerFromCharacter(hit.Parent) then

local user = game.Players:GetPlayerFromCharacter(hit.Parent)
local stats = user:FindFirstChild("leaderstats")

if stats and checkIfAllowed(user) then
local Points = stats:findFirstChild("Points")
Points.Value = Points.Value +400
wait(20)
end

end

ting = false
end

end

script.Parent.Touched:connect(onTouched)

forgot to make ting false once the player receives money again
Report Abuse
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:39 PM
Thanks man!,

il Give you admin!


I Guard OT From Scrubs!
Report Abuse
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:41 PM
Erm... were do i put this script ;-;
Report Abuse
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:42 PM
nvm



I Guard OT From Scrubs!
Report Abuse
pischokiller is not online. pischokiller
Joined: 16 Dec 2011
Total Posts: 3902
25 Jul 2015 10:44 PM



I ment a script that Give A specific player Money when that player joins to game.
Report Abuse
nQqzRYVpIKA5jLP is not online. nQqzRYVpIKA5jLP
Joined: 05 Mar 2015
Total Posts: 4135
25 Jul 2015 10:59 PM
http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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