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: Script Maker

Previous Thread :: Next Thread 
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:07 AM
Could someone make me a script when you touch a brick it gives you 1337 points?
Report Abuse
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:10 AM
PM me if you can.
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
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
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:11 AM
I dont know how to script.
Report Abuse
ElectricBlaze is not online. ElectricBlaze
Joined: 18 Jul 2011
Total Posts: 22930
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
Cachinnation is not online. Cachinnation
Joined: 21 Aug 2011
Total Posts: 1797
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
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
10 Sep 2011 10:12 AM
Copy&Paste either mine or his script into your game.
Report Abuse
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:13 AM
where do you paste it
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
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
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:18 AM
wont let me type
Report Abuse
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:21 AM
please help.
Report Abuse
Artixlol9999 is not online. Artixlol9999
Joined: 11 Sep 2010
Total Posts: 915
10 Sep 2011 10:22 AM
learn to script first xD
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
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
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:24 AM
where do I type?!
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
10 Sep 2011 10:24 AM
You type.. in.. the.. script.
Report Abuse
BobGeorgenworn909 is not online. BobGeorgenworn909
Joined: 03 Apr 2008
Total Posts: 1161
10 Sep 2011 10:25 AM
Script copying for dummies:
http://wiki.roblox.com/index.php/Script_Creation_Walkthrough
Report Abuse
rockerbob09 is not online. rockerbob09
Joined: 30 Apr 2010
Total Posts: 1124
10 Sep 2011 10:27 AM
thx.
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