|
| 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 |
|
|
|
| 25 Jul 2015 10:20 PM |
I cant see too figure it out without Sleeping all night?
Anyone please?
|
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 10:21 PM |
| Set the value in the script that creates the leaderstats, derp. |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 25 Jul 2015 10:39 PM |
Thanks man!,
il Give you admin!
I Guard OT From Scrubs! |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 10:41 PM |
| Erm... were do i put this script ;-; |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 10:42 PM |
nvm
I Guard OT From Scrubs! |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 10:44 PM |
I ment a script that Give A specific player Money when that player joins to game. |
|
|
| Report Abuse |
|
|
|
| 25 Jul 2015 10:59 PM |
| http://wiki.roblox.com/index.php?title=Absolute_beginner%27s_guide_to_scripting |
|
|
| Report Abuse |
|
|