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: Is this right?

Previous Thread :: Next Thread 
ethanstar99 is not online. ethanstar99
Joined: 22 Nov 2008
Total Posts: 82
01 Sep 2012 05:15 PM
I made this for my RPG charater. It is suposed to make a shockwave evrey 20 seconds or so that damages humaniods.
If you think it is broken, post the fixed in comments, if you think its correct, please post saying so.

local torso = script.Parent.Torso
local waitt = 20
local waitt2 = 1
local waitt3 = 3
local dmgscript = script.Parent.Torso.dmgscript:Clone()
while true do
wait (waitt)
script.Parent.Head.Reflectance = 1
wait (waitt3)
script.Parent.Head.Reflectance = 0
local brick = InstnceNew:("Brick")
brick.Color = ("Really Black")
brick.Position = torso.Position
brick.Size = 1,1,1
brick.Anchored = true
brick.CanCollide = false
brick.Transparency = 0.5
dmgscript.Parent = brick
wait (waitt2)
brick.Size = 3,1,3
wait (waitt2)
brick.Size = 4,1,4
wait (waitt2)
brick.Size = 5,1,5
brick:Remove()
end
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 05:17 PM
Skimming it, the sizes are off.

Vector3.new(0,0,0)

Is how you set a new size

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
Stealthah is not online. Stealthah
Joined: 18 Aug 2012
Total Posts: 288
01 Sep 2012 05:17 PM
Test it before posting.
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 05:17 PM
Maybe you should test it

~xXTheRobotXx, Cyborg of OT~
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 05:18 PM
Are you guys blind?? Big newbie mistake with sizes

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
Stealthah is not online. Stealthah
Joined: 18 Aug 2012
Total Posts: 288
01 Sep 2012 05:21 PM
No chop, same thing with color, he cant say color = ("colorname")

dont work like that bro.
Report Abuse
ethanstar99 is not online. ethanstar99
Joined: 22 Nov 2008
Total Posts: 82
01 Sep 2012 05:28 PM
Well then how do i get it to change color to Realy black?
brick.Color = "Realy Black"
?
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 05:28 PM
Heh, I forgot to look at that part >.<, I just focused on size...\

Take back the blind comment

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
Stealthah is not online. Stealthah
Joined: 18 Aug 2012
Total Posts: 288
01 Sep 2012 05:29 PM
spelling is a start.
Report Abuse
WhoBloxedWho is not online. WhoBloxedWho
Joined: 25 Mar 2009
Total Posts: 4611
01 Sep 2012 05:29 PM
YOu need to use BrickColor.new()


brick.BrickColor = BrickColor.new("Really black")
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 05:29 PM
To change a color you do


Brick.BrickColor = BrickColor.new("Color name")

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
Stealthah is not online. Stealthah
Joined: 18 Aug 2012
Total Posts: 288
01 Sep 2012 05:29 PM
i'm sorry but where did you learn that?

instncenew:

?!?
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 05:30 PM
Ok OP, learn to spell, then come back at scripting.

(>•д•)> ¤ ¤ † KMXD 2.0 † ¤ ¤ [SHG Tier~ nil] (^•д•^) [KMXD Stole this sig] <(•д•<)
Report Abuse
ethanstar99 is not online. ethanstar99
Joined: 22 Nov 2008
Total Posts: 82
01 Sep 2012 05:37 PM
I learned InstenceNew:(ThingYouwant to insert)
With a virus that made a unachored lavabrick apear over my base, my freind benokt had sent it to me.
I did not save.

OK, ill try all of that. BTW your right, i can't spell. I make up for it by using gramer.

Can someone corect the hole thing and post in comments? I really need it.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
01 Sep 2012 05:40 PM
Enjoy your crap....

local torso = script.Parent.Torso
local waitt = 20
local waitt2 = 1
local waitt3 = 3
local dmgscript = script.Parent.Torso.dmgscript:Clone()
while true do
wait (waitt)
script.Parent.Head.Reflectance = 1
wait (waitt3)
script.Parent.Head.Reflectance = 0
local brick = Instance.new("Brick", Workspace)
brick.BrickColor = BrickColor.Black()
brick.Position = torso.Position
brick.Size = Vector3.new(1,1,1)
brick.Anchored = true
brick.CanCollide = false
brick.Transparency = 0.5
dmgscript.Parent = brick
wait (waitt2)
brick.Size = Vector3.new(3,1,3)
wait (waitt2)
brick.Size = Vector3.new(4,1,4)
wait (waitt2)
brick.Size = Vector3.new(5,1,5)
brick:Destroy()
end

"Is there an Omega Power script out there that can be used in, oh I don't know, Script Builder?" - Noob
Report Abuse
BobbyisLOLZ is not online. BobbyisLOLZ
Joined: 17 Aug 2010
Total Posts: 8045
01 Sep 2012 05:41 PM
You made some grammar mistakes.. I'll* and I.
Report Abuse
ethanstar99 is not online. ethanstar99
Joined: 22 Nov 2008
Total Posts: 82
01 Sep 2012 06:19 PM
His head changes Transparency but no brick apears. I did not chage the name of Workspace.
Report Abuse
ethanstar99 is not online. ethanstar99
Joined: 22 Nov 2008
Total Posts: 82
01 Sep 2012 06:23 PM
Im sorry, his head changes Reflectance, not Transparency
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 06:24 PM
brick.Position = game.Workspace.Player.Torso.Position

ehhhh

~xXTheRobotXx, Cyborg of OT~
Report Abuse
ethanstar99 is not online. ethanstar99
Joined: 22 Nov 2008
Total Posts: 82
01 Sep 2012 06:40 PM
@Above
brick.Poistion = game.Workspace.ethanstar99.Torso
is the same as
script.Parent.Torso
It is in my charater.
Report Abuse
xXTheRobotXx is not online. xXTheRobotXx
Joined: 05 May 2012
Total Posts: 13343
01 Sep 2012 06:41 PM
Try using GetPlayerFromCharacter:

~xXTheRobotXx, Cyborg of OT~
Report Abuse
ethanstar99 is not online. ethanstar99
Joined: 22 Nov 2008
Total Posts: 82
02 Sep 2012 08:20 AM
@Above
I dont know how. Wasnt that important annyway. Oh well.
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