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: Made My first Script

Previous Thread :: Next Thread 
SacredChakra is not online. SacredChakra
Joined: 03 Mar 2013
Total Posts: 3431
13 Jan 2014 10:19 AM
function OnTouch(Hit)
Hit.Transparency = 0.7
end

Well without training, over and over to get it.


I am learning how to script.
Report Abuse
F7D is not online. F7D
Joined: 11 Jan 2014
Total Posts: 65
13 Jan 2014 10:56 AM
Nice!

--[[My First Script
game.Workspace.Classified Name.Humanoid.MaxHealth = math.huge
]]
Report Abuse
EcIiptic is not online. EcIiptic
Joined: 12 Aug 2009
Total Posts: 13737
13 Jan 2014 11:21 AM
Mine was print("Hello, world!").

But yours is great too.
Report Abuse
Thaeh is not online. Thaeh
Joined: 05 Feb 2011
Total Posts: 7685
13 Jan 2014 11:24 AM
my first script was just a rehash of a powerup so it's like mario galaxy's spicy sauce lol
Report Abuse
SoulStealer9875 is not online. SoulStealer9875
Joined: 20 Jul 2009
Total Posts: 13119
13 Jan 2014 11:38 AM
Well done!

If you want something to progress you further, take a look at something called "Anonymous functions", these are functions that do not have names and are fired on the same time the event is called.

script.Parent.Touched:connect(function(Hit)
Hit.Transparency = 0.7
end)

~SS
Report Abuse
iWasted1000Robux is not online. iWasted1000Robux
Joined: 26 Oct 2013
Total Posts: 813
13 Jan 2014 11:40 AM
My first script was an onTouched kill script.

#nerdsunited
Report Abuse
Kingmouli is not online. Kingmouli
Joined: 28 Sep 2012
Total Posts: 1292
13 Jan 2014 11:43 AM
My first one was a print("MY FRIST SCIRPT")
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
13 Jan 2014 12:15 PM
I didn't even know I could script the following xD -

players = game.Players:GetChildren()
for i = 1,#players do
players[i]:MoveTo(Vector3.new(0,0,0)) --Position goes there :3
end


Maybe i did something wrong, but I scripted something like this a few days ago that worked. lol
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
13 Jan 2014 12:15 PM
I mean,

playersp[i].Character:MoveTo(Vector3.new(0,0,0))
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
13 Jan 2014 12:17 PM
Nope,

c.Humanoid

OR

c.Torso.CFrame
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
13 Jan 2014 12:20 PM
No. Mine works just as good. I tried this yesterday, and it worked. Deal with it.
Report Abuse
qadoory is not online. qadoory
Joined: 29 Jul 2009
Total Posts: 49
13 Jan 2014 12:21 PM
Have fun scripting ^.^

My first script was:
game.Workspace.qadoory:remove()
XD ..
Report Abuse
ThrashingThunder is not online. ThrashingThunder
Joined: 03 Oct 2011
Total Posts: 2388
13 Jan 2014 12:25 PM
That would work, but use Destroy()

People say it's better.
Report Abuse
shonclub is not online. shonclub
Joined: 05 Sep 2009
Total Posts: 1331
13 Jan 2014 01:02 PM
It works, deal with it. LOL
Report Abuse
iWasted1000Robux is not online. iWasted1000Robux
Joined: 26 Oct 2013
Total Posts: 813
13 Jan 2014 01:48 PM
I would use Kick()

#nerdsunited
Report Abuse
TheRobloxian909 is not online. TheRobloxian909
Joined: 08 Aug 2013
Total Posts: 2444
13 Jan 2014 02:39 PM
my first one:

if game.Workspace.Part.Transparency = 1 then -- here is where I didn't know about the double =
print("brick is invisible!!!!!")
--forget an end lol!!!
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