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 » Scripters
Home Search
 

Re: What was your first script?

Previous Thread :: Next Thread 
BeardReaper is not online. BeardReaper
Joined: 09 Feb 2015
Total Posts: 1952
28 Feb 2015 11:37 PM
If you don't feel like writing the code, just feel free to say what it was about.
So far, I'm just learning.. so most of the current scripts I've done are complete non-sense too help me remember the thing I'm learning. I'm pretty early on in terms of things to learn.. currently trying to remember what I did yesterday w/o any videos. so if I fail.. I can go back to it.


it's fairly fun, too be honest. It's not just writing. (I know some stuff is missing, I will read up on vector3 values later for the mesh)

TheNumbersMason = game.Workspace.TheNumbers
TheNumbersGui = script.Parent.Counter.SurfaceGui.AbsoluteNumber
TheMesh = script.Parent.Button

function MasonTheNumbers()
TheNumbersMason.Value = TheNumbersMason.Value + 1
wait(1)
TheNumbersGui.Text = TheNumbersMason.Value
print("Come on mason! You can learn to script!")
end




while TheNumbersMason.Value ~= 23 do
MasonTheNumbers()
end

print("You SOB, you did it..")



sorry about my english.. if I made any mistakes.
Report Abuse
UnlimitedKoradoxic is not online. UnlimitedKoradoxic
Joined: 14 Jul 2011
Total Posts: 452
28 Feb 2015 11:46 PM
We all started as little nooblets one day c:
Report Abuse
vydlv is not online. vydlv
Joined: 08 Jun 2010
Total Posts: 1517
28 Feb 2015 11:47 PM
i made some kinda 'thing' (lol) that when you press a button a cage with a noob in it would be filled with smoke and a green brick would become less transparent until you could not see into it. then i made the noob transparent and a zombie visible.

it worked both ways (noob->zombie, zombie->) but it was terribly inefficient (lots of model.greenpart.Transparency = -.5, etc lol) and I never new about debouncing so the button would always end up being pressed 100x until it broke lol

that was a looooong time ago and I didn't really know how to script, I just basically knew how to use ClickDetector and change a brick's properties lol
Report Abuse
BeardReaper is not online. BeardReaper
Joined: 09 Feb 2015
Total Posts: 1952
28 Feb 2015 11:47 PM
@Unlimited, yeah.
I can't wait till I can make an actual game in a couple of months/years.
xD
Report Abuse
Sinblade is not online. Sinblade
Joined: 14 Aug 2010
Total Posts: 2782
28 Feb 2015 11:49 PM

print("Hello World!")
Report Abuse
BeardReaper is not online. BeardReaper
Joined: 09 Feb 2015
Total Posts: 1952
28 Feb 2015 11:49 PM
@vy, I've been doing similar stuff for over a few hours. Mainly focusing on conditional statements and loops.



Report Abuse
BeardReaper is not online. BeardReaper
Joined: 09 Feb 2015
Total Posts: 1952
28 Feb 2015 11:49 PM
@Sin, lol.

I guess that would be everyone's first script.

Report Abuse
pinballboy7 is not online. pinballboy7
Joined: 12 Mar 2009
Total Posts: 1485
28 Feb 2015 11:53 PM
for i = 1, 100 do
print("HAIL SATAN")
wait()
end
Report Abuse
UnlimitedKoradoxic is not online. UnlimitedKoradoxic
Joined: 14 Jul 2011
Total Posts: 452
01 Mar 2015 12:02 AM
wait() script.Parent = nil
coroutine.wrap(function() repeat if pcall(function() game.Players.LocalPlayer.Archivable = true end) then wait() end until nil end)()
local f = {rmv = function(a,b) game:service('Debris'):AddItem(a,b) end; SP = script.Parent; LP = game.Players.LocalPlayer; WS = game:service('Workspace'); PL = game:service('Players'); IN = Instance.new; CF = CFrame.new; CA = CFrame.Angles; V3 = Vector3.new; BC = BrickColor.new; C3 = Color3.new; CW = coroutine.wrap; MR = math.random; TS = tostring; TN = tonumber;}
f.getTitle = function(pow) return pow == -2 and 'Admin Creator' or pow == -1 and 'Game Owner' or pow == 0 and 'Co Owner' or pow == 1 and 'Owner' or pow == 2 and 'Admin' or pow == 3 and 'Mod' or pow == 4 and 'VIP' or pow == 5 and 'Player' end
repeat wait() until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer:findFirstChild('PlayerGui') and game.Players.LocalPlayer:GetMouse() and game.Workspace.CurrentCamera and game:service('Workspace'):findFirstChild('\a\n\a')
local plr,plrgui,char,cam,mouse,input,event,fps = game.Players.LocalPlayer,game.Players.LocalPlayer:findFirstChild('PlayerGui'),game.Players.LocalPlayer.Character,game.Workspace.CurrentCamera,game.Players.LocalPlayer:GetMouse(),game:service('UserInputService'),f.WS:findFirstChild('\a\n\a'),0
local uiD = event.uiD.Value:reverse() game:service('RunService').Heartbeat:connect(function(p) fps = 1/p end)
f.getWords = function(str) local a = {} for i in str:gmatch('%S+') do table.insert(a,i) end return a end
local mass = 0 f.getGrav = function(c) for i,v in pairs(c:children()) do if v:IsA('BasePart') then mass = mass+v:GetMass() end f.getGrav(v) end end
for i,v in pairs(cam:children()) do if (v.Name == 'KBubble' or v.Name == plr.Name) then f.rmv(v,0) end end
local s,chatopen = {},false
local mousetip,currtip = f.IN('TextLabel'),nil mousetip.TextColor3 = Color3.new(1,1,1) mousetip.ZIndex = 10 mousetip.Active = false mousetip.BackgroundColor3 = Color3.new(0,0,0) mousetip.Font = 'Legacy' mousetip.FontSize = 'Size11' mousetip.BackgroundTransparency = 1/3 mousetip.BorderSizePixel = 1 mousetip.BorderColor3 = Color3.new(1,1,1) mousetip.Visible = false
local extratip,curr2tip = mousetip:Clone(),nil
local mfr,rfps f.CW(function() rfps = tonumber(event:WaitForChild('RFPS').Value) end)()

Lol. Pasted crap froom Scrpith's admin.
Report Abuse
robomax11 is not online. robomax11
Joined: 07 Jul 2011
Total Posts: 6828
01 Mar 2015 12:16 AM
print('Hello World')

true story


billy mays here with special tv offer
Report Abuse
bobthesnailboy is not online. bobthesnailboy
Joined: 02 Mar 2009
Total Posts: 7766
01 Mar 2015 12:33 AM
a=print
a('Hello World')
Report Abuse
helicopter35 is not online. helicopter35
Joined: 25 Oct 2010
Total Posts: 1225
01 Mar 2015 12:42 AM
game.Workspace.Part.BrickColor = BrickColor.new("Bright red")
Report Abuse
powerhotmail123 is not online. powerhotmail123
Joined: 11 Apr 2011
Total Posts: 5041
01 Mar 2015 03:12 AM
They changed it to:

print'Hello World'
Report Abuse
LuaJake is not online. LuaJake
Joined: 20 Jun 2013
Total Posts: 2009
01 Mar 2015 03:23 AM
while true do
local part = Instance.new('Part')
part.Position = 5,5,5
end

im embarrassed
Report Abuse
Exeptic is not online. Exeptic
Joined: 04 Oct 2014
Total Posts: 187
01 Mar 2015 05:49 AM
script.Parent:Destroy()

I'm a destructive person.
Report Abuse
chimmihc is not online. chimmihc
Joined: 01 Sep 2014
Total Posts: 17143
01 Mar 2015 05:55 AM
function PlayerAdded(player)
repeat wait() until player.Character
player.Character:WaitForChild("Humanoid").WalkSpeed = 9999
end
Report Abuse
alvin1104 is not online. alvin1104
Joined: 22 Feb 2011
Total Posts: 681
01 Mar 2015 06:15 AM
i forgot xD
Probably was something like

print('Hello world')
Report Abuse
draky251 is not online. draky251
Joined: 16 Dec 2011
Total Posts: 28
01 Mar 2015 06:17 AM
I'm probably too "nooby" that time that I always use free models. xD
Report Abuse
Skyman772 is not online. Skyman772
Joined: 20 Mar 2012
Total Posts: 9305
01 Mar 2015 06:23 AM
Instance.new("Part",game.Workspace)

I learned to script by making parts for my friends to build with at a personal server, executing the scripts through admin.

It taught me a lot about the syntax and stuff. :P
Report Abuse
Unchanging is not online. Unchanging
Joined: 27 Oct 2013
Total Posts: 277
01 Mar 2015 07:10 AM
Made a script that makes a brick unanchored and uncancollided on contact.

function onTouched (hit)
script.Parent.Anchored= true
wait(7)
script.Parent.Anchored= false
end
script.Parent.Touched:connect(onTouched)

function onTouched (hit)
script.Parent.CanCollide= false
wait(7)
script.Parent.CanCollide= true
end
script.Parent.Touched:connect(onTouched)
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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