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: Basic Script (One of my first)

Previous Thread :: Next Thread 
Sparky9171 is not online. Sparky9171
Top 100 Poster
Joined: 23 Dec 2007
Total Posts: 10582
12 Jul 2012 09:18 PM
p = Instance.New(Fire)
p.Parent = game.Workspace.NAME.Torso


I just wanna know if that would work. Also:


if NAME.New
then game.Players.NAME:remove()


I'm new to this stuff so... Yeah.
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
12 Jul 2012 09:24 PM
Yes, the first one was close, try this:
p = Instance.new("Fire") --Since the name is a string, you need to put "" around it, and new isn't capitalized.
p.Parent = game.Workspace.NAME.Torso
Then you would need to define the heat and size.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
12 Jul 2012 09:24 PM
p = Instance.new("Fire",game.Workspace.PersonsName.Torso)

if game.Players:FindFirstChild("NAMEHERE") then game.Players["NAMEHERE"]:Destroy() end
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
12 Jul 2012 09:32 PM
^Person's*
Report Abuse
Sparky9171 is not online. Sparky9171
Top 100 Poster
Joined: 23 Dec 2007
Total Posts: 10582
12 Jul 2012 09:38 PM
So


p = Instance.new("Fire")
p.Parent = game.Workspace.NAME.Torso


How would you make it a command like in an admin script?
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
12 Jul 2012 09:43 PM
@Sparky, well that makes it a LOT more complicated..
I won't be doing this right with the chat handler but my best try:
function playerentered(newplayer)
function chatted(chat)
if string.sub(chat, 1,5) == "fire/" then
person = string.sub(chat,6)
plr = game.Players:FindFirstChild(person)
p = Instance.new("Fire", plr.Character.Torso)
p.Heat = 100
p.Size = 100
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, recipient, newPlayer) end)
end
end

game.Players.PlayerAdded:connect(onPlayerEntered)
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
13 Jul 2012 12:08 AM
mama, I swear, Person's*... Why would I put that Person'sName in a script? I don't want them thinking you can use ' within a name(without [""] or FindFirstChild(""))...
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
13 Jul 2012 12:50 AM
cease, you were using 'persons' so it would just be multiple persons so you were doing this if you explain it out in words: multiple persons names
And you can't do:
game.Workspace.ColourTheoryceaslesssoulmamaguyrey107WhiteRain.Character
So unless you put 'person's' it would mean multiple persons.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
13 Jul 2012 12:12 PM
mama, everyone besides you know what I meant, you are very stupid...
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
13 Jul 2012 12:57 PM
@Cease
Instance.new("Fire", workspace.PersonsName.Torso)
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
13 Jul 2012 12:59 PM
@getkoed; He said like in an admin script.

game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg)
if msg:lower():sub(1,4) == "fire" then
local fire = Instance.new("Fire",game.Workspace.NameHere.Torso)
end
end)
end)
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
13 Jul 2012 01:01 PM
get, same thing, nimrod...
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
13 Jul 2012 01:01 PM
Hey mamaguy, did you read the title of this section of the forum? It's Scripting Helpers if you didn't. That doesn't involve posting just so you can slam someone on a error as little as that.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
13 Jul 2012 01:01 PM
Jesus, thank you, epic!
Report Abuse
ItsAllGord is not online. ItsAllGord
Joined: 04 Jul 2012
Total Posts: 40
13 Jul 2012 01:05 PM
For the first one, you could just do this:

Instance.new("Fire").Parent = game.Workspace.NAME.Torso

But your line would work too
Report Abuse
getkoed is not online. getkoed
Joined: 18 Feb 2010
Total Posts: 2298
13 Jul 2012 01:09 PM
CeaselessSoul, shh, my script is shorter.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
13 Jul 2012 01:12 PM
"game.Workspace.ColourTheoryceaslesssoulmamaguyrey107WhiteRain.Character"
Why is my name in there?
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
13 Jul 2012 01:39 PM
^Because I couldn't think of anyone else >:o
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
13 Jul 2012 01:40 PM
@Epic, but this is also grammar helpers.
Everywhere in my world is Grammar Helpers.
Report Abuse
epicfail22 is not online. epicfail22
Joined: 25 Sep 2009
Total Posts: 3739
13 Jul 2012 01:44 PM
You world doesn't include everbody else's.
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
13 Jul 2012 01:47 PM
I don't know whether to be happy or a bit frightened that people over the internet think about me. A bit creepy...
Report Abuse
mamaguy is not online. mamaguy
Joined: 07 Oct 2010
Total Posts: 7073
13 Jul 2012 01:50 PM
@Epic, so we're in different worlds right now?
Cool.
@White, He's climbin in your windows He's snatchin your people up Tryna em so y'all need to
Hide your kids, Hide your wife Hide your kids, Hide your wife Hide your kids, Hide your wife and hide your husband Cuz they're rapin errbody out here
You don't have to come and confess We're lookin for you We gon find you We gon find you
So you can run and tell that, Run and tell that Run and tell that, homeboy Home, home, homeboy
We got your t-shirt You done left fingerprints and all You are so dumb Rou are really dumb--for real [ From: http://www.metrolyrics.com/bed-intruder-lyrics-antoine-dodson.html ]
The man got away leaving behind evidence
I was attacked by some idiot in the projects So dumb, So dumb, So dumb, So
He's climbin in your windows He's snatchin your people up Tryna em so y'all need to
Hide your kids, Hide your wife Hide your kids, Hide your wife Hide your kids, Hide your wife and hide your husband Cuz they're rapin errbody out here
You don't have to come and confess We're lookin for you We gon find you We gon find you
So you can run and tell that, Run and tell that Run and tell that, homeboy Home, home, homeboy
Report Abuse
WhiteRain is not online. WhiteRain
Joined: 24 Apr 2010
Total Posts: 2723
13 Jul 2012 01:51 PM
Nice spam and offsite link there.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
13 Jul 2012 01:54 PM
mama, you can't free style nor rap, there's supposed to be a rhythm, not just words...
Report Abuse
Sparky9171 is not online. Sparky9171
Top 100 Poster
Joined: 23 Dec 2007
Total Posts: 10582
13 Jul 2012 01:54 PM
When did this turn into a flame war?

-{20% Cooler}-
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