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 » Roblox » All Things ROBLOX
Home Search
 

Re: Learning scripting.

Previous Thread :: Next Thread 
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 02:13 AM
Lets = "Egg Hunt will be fun this year!"
Var2 = print("The "..Lets.." not really")

Does it seem like a good script?

Here, I'll add some stuff to it.

Lets = "Egg Hunt will be fun this year!"
Var2 = print("The "..Lets.." not really")
Var3 = Instance.new("Part", game.Workspace)
Anchor = game.Workspace.Part.Anchored == true
Lock = game.Workspace.Part.Locked == true
wait(5)
Var6 = Var3:Destroy()
Report Abuse
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 02:14 AM
Tested the Anchor and Lock variable and didn't seem to work, it's correct...
Report Abuse
Sirenoob is not online. Sirenoob
Joined: 14 Dec 2012
Total Posts: 4967
10 Jun 2015 02:14 AM
in mother russia scripting learns you
#EXPOSED

improtant PSA: https://www.youtube.com/watch?v=wt1_9tHO4IU
Report Abuse
TC8950 is not online. TC8950
Joined: 09 May 2010
Total Posts: 4925
10 Jun 2015 02:14 AM
I don't think you're doing it right
Report Abuse
tigerace is not online. tigerace
Joined: 28 Jul 2009
Total Posts: 484
10 Jun 2015 02:15 AM
I got a good script too, but it's kinda broken can you help me?

instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text =


Report Abuse
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 02:15 AM
Me neither, TC.
Report Abuse
Sirenoob is not online. Sirenoob
Joined: 14 Dec 2012
Total Posts: 4967
10 Jun 2015 02:16 AM
u r mising variables
#exposed

improtant PSA: https://www.youtube.com/watch?v=wt1_9tHO4IU
Report Abuse
Ariphael is not online. Ariphael
Joined: 08 Apr 2015
Total Posts: 2103
10 Jun 2015 02:19 AM
When you are inserting an instance and assigning an instance to a variable. It's more practical to use the variable name.

This is what I'm talking about:

Var3 = Instance.new("Part", game.Workspace)


Also, '==' is used to check if a statment is true and '=' is used to change a variable or property.

Var3.Part.Anchored = true
Var3.Locked = true




This is a triumph,
Report Abuse
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 02:19 AM
Okay, I'm doing this now.
Var1 = game.Workspace.Player.Head.BrickColor == BrickColor.random()

Says Player is not a valid member of Workspace but it clearly is because I can see the model in workspace. This is weird.
Report Abuse
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 02:20 AM
@Ari, thanks
Report Abuse
Ariphael is not online. Ariphael
Joined: 08 Apr 2015
Total Posts: 2103
10 Jun 2015 02:22 AM
"Var1 = game.Workspace.Player.Head.BrickColor == BrickColor.random()"

I think you should access Player under the 'Players' service.

game.Players.Player.Character.Head.BrickColor = Brickcolor.Random()


This is a triumph,
Report Abuse
Ariphael is not online. Ariphael
Joined: 08 Apr 2015
Total Posts: 2103
10 Jun 2015 02:23 AM
@slap np


This is a triumph,
Report Abuse
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 02:27 AM
Studio is obviously screwed up. None of them works.

00:27:05.749 - Player is not a valid member of Players
Report Abuse
Ariphael is not online. Ariphael
Joined: 08 Apr 2015
Total Posts: 2103
10 Jun 2015 02:30 AM
game.Players.Player1


This is a triumph,
Report Abuse
3ZD is not online. 3ZD
Joined: 09 Jun 2014
Total Posts: 10253
10 Jun 2015 02:56 AM
g = game.Workspace:GetChildren()
for i = 1,#g do
if g[i].ClassName == "Part" then
g[i].Name = "bye"
end
end
Report Abuse
TC8950 is not online. TC8950
Joined: 09 May 2010
Total Posts: 4925
10 Jun 2015 02:58 AM
@3Z

why change every part in work space "bye"
Report Abuse
3ZD is not online. 3ZD
Joined: 09 Jun 2014
Total Posts: 10253
10 Jun 2015 02:58 AM
BYE
Report Abuse
misterfan is not online. misterfan
Joined: 03 Feb 2014
Total Posts: 15250
10 Jun 2015 02:59 AM
print("Hello world!")
ha im baws


"hi u ok" - ATR
Report Abuse
TC8950 is not online. TC8950
Joined: 09 May 2010
Total Posts: 4925
10 Jun 2015 02:59 AM
ok
Report Abuse
3ZD is not online. 3ZD
Joined: 09 Jun 2014
Total Posts: 10253
10 Jun 2015 03:00 AM
while wait() and p.Character['Torso'] do
t=t+.1
dist=(heart.Position-p.Character['Torso'].Position).magnitude-heartMesh.Scale.X*.72
local g=1+math.max(0,(500-dist)/10)^(1/2)+math.cos(t)/10
for _,v in pairs(p.Character:GetChildren()) do
if v:IsA('Part') then
m=v['Mesh']
m.Scale=Vector3.new(1,g,1)
end
end
end
Report Abuse
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 03:00 AM
Hey, Many things are wrong with
instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text = instance.new("Reply")thread.Workspace)
Reply.text =

1. Reply isn't an advanced object.
2. Workspace should go first, and thread is not a parent.
3. Reply.text =, there is no value.
Report Abuse
SlapperXI is not online. SlapperXI
Joined: 22 Dec 2014
Total Posts: 1439
10 Jun 2015 03:02 AM
Btw, why spam
Reply.text = instance.new("Reply")thread.Workspace)
when you could just
Reply.text = instance.new("Reply")thread.Workspace)
end

Great scripter.
Report Abuse
TC8950 is not online. TC8950
Joined: 09 May 2010
Total Posts: 4925
10 Jun 2015 03:02 AM
@3Z

math is icky
which is why I can't create anything useful with scripting
Report Abuse
3ZD is not online. 3ZD
Joined: 09 Jun 2014
Total Posts: 10253
10 Jun 2015 03:03 AM
If you're bad at math use a calculator.
Report Abuse
TC8950 is not online. TC8950
Joined: 09 May 2010
Total Posts: 4925
10 Jun 2015 03:03 AM
@Slapper

Reply.text = instance.new("Reply")thread.Workspace)

to

local post = Reply.Text = Instance.new("Reply")
post.Parent = thread.Workspace
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Roblox » All Things ROBLOX
   
 
   
  • 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