|
| 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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 13 Jan 2014 11:40 AM |
My first script was an onTouched kill script.
#nerdsunited |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 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 |
|
|
|
| 13 Jan 2014 12:15 PM |
I mean,
playersp[i].Character:MoveTo(Vector3.new(0,0,0)) |
|
|
| Report Abuse |
|
|
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 13 Jan 2014 12:17 PM |
Nope,
c.Humanoid
OR
c.Torso.CFrame |
|
|
| Report Abuse |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 13 Jan 2014 12:25 PM |
That would work, but use Destroy()
People say it's better. |
|
|
| Report Abuse |
|
|
shonclub
|
  |
| Joined: 05 Sep 2009 |
| Total Posts: 1331 |
|
|
| 13 Jan 2014 01:02 PM |
| It works, deal with it. LOL |
|
|
| Report Abuse |
|
|
|
| 13 Jan 2014 01:48 PM |
I would use Kick()
#nerdsunited |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|