|
| 10 Sep 2011 10:07 AM |
| Could someone make me a script when you touch a brick it gives you 1337 points? |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2011 10:10 AM |
local enabled = true
script.Parent.Touched:connect(function(hit) if enabled and hit.Parent:FindFirstChild("Humanoid") then enabled = false local you = game.Players:FindFirstChild(hit.Parent.Name) you.leaderstats.Points.Value = you.leaderstats.Points.Value + 1337 wait(5) enabled = true end end) |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 10:11 AM |
Since this is a short script, I'll help you, but remember - do not ask for requests in this forum.
local deb = false script.Parent.Touched:connect(function(hit) if not deb then deb = true local p = game.Players:GetPlayerFromCharacter(hit.Parent) if p then if p.:findFirstChild("leaderstats") then p.leaderstats.Points.Value = p.leaderstats.Points.Value + 1337 wait(3) deb = false end end end end)
-Like an __AWESOME__ boss |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 10:11 AM |
| I dont know how to script. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 10:11 AM |
Oops, typo:
local deb = false script.Parent.Touched:connect(function(hit) if not deb then deb = true local p = game.Players:GetPlayerFromCharacter(hit.Parent) if p then if p:findFirstChild("leaderstats") then p.leaderstats.Points.Value = p.leaderstats.Points.Value + 1337 wait(3) deb = false end end end end)
-Like an __AWESOME__ boss |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 10:12 AM |
| Make a .Touched connection line, then check to see if it has a humanoid, then check to see if it has an IntValue named 'Points', or whatever it's called. Then, just plan add the points and finish |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 10:12 AM |
| Copy&Paste either mine or his script into your game. |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2011 10:15 AM |
Open Output. Open Explorer.
Type:
lol = Instance.new("Script", game.Workspace) Now a script should appear. Double click. Paste.
nubb'd ftw |
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
|
| 10 Sep 2011 10:22 AM |
Open your game in Roblox Studio in EDIT mode!
Open Output. Open Explorer.
Type:
lol = Instance.new("Script", game.Workspace) Now a script should appear. Double click. Paste.
wat! |
|
|
| Report Abuse |
|
|
| |
|
|
| 10 Sep 2011 10:24 AM |
| You type.. in.. the.. script. |
|
|
| Report Abuse |
|
|
|
| 10 Sep 2011 10:25 AM |
Script copying for dummies: http://wiki.roblox.com/index.php/Script_Creation_Walkthrough |
|
|
| Report Abuse |
|
|
| |
|