A Roblox Community
Would you like to react to this message? Create an account in a few clicks or log in to continue.

A Roblox Community

A community of Robloxians who want to learn to script and build on Roblox Studio.
 
HomeLatest imagesRegisterLog in
If you're a experienced coder make some tutorials! It would really help the site grow.
Make sure you read the rules(Which can be found by clicking here)
If you're a beginner at coding, try some tutorials.
We have many Moderators/Admins watching this site. Contact them with Questions.
Let us know what your favorite sport is. By clicking here to vote (Click here)
This site is becoming inactive. Lets make it active.
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Top posters
blueymaddog
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
naknak
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
Supernapalm
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
m27frogy
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
slayer9365
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
myrco919
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
branefreez
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
ninga95
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
CloneTrooper787
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
raboy117
How Can I Improve This Script? Vote_lcapHow Can I Improve This Script? Voting_barHow Can I Improve This Script? Vote_rcap 
Top posting users this month
No user
Latest topics
» Where to go from here.
How Can I Improve This Script? EmptySeptember 14th 2020, 1:20 pm by MrNicNac

» Send me an Email
How Can I Improve This Script? EmptySeptember 14th 2020, 1:16 pm by MrNicNac

» [v1.6.0.0] Lua Script Obfuscator [No Bytecode]
How Can I Improve This Script? EmptyJuly 6th 2015, 7:38 pm by m27frogy

» New Site Possibly
How Can I Improve This Script? EmptyJuly 6th 2015, 4:16 pm by m27frogy

» Ambassador!
How Can I Improve This Script? EmptyApril 15th 2015, 11:40 pm by naknak

» Boop - Tag
How Can I Improve This Script? EmptyApril 13th 2015, 9:46 pm by naknak

» Vip Class Script
How Can I Improve This Script? EmptyApril 13th 2015, 4:54 pm by naknak

» Who's active?!
How Can I Improve This Script? EmptyApril 13th 2015, 4:52 pm by naknak

» Genesis Point
How Can I Improve This Script? EmptyJuly 17th 2014, 7:04 pm by branefreez

» Reward System
How Can I Improve This Script? EmptyJuly 17th 2014, 5:41 am by m27frogy

» Script Request
How Can I Improve This Script? EmptyJuly 10th 2014, 11:43 am by naknak

» local scripts?
How Can I Improve This Script? EmptyJuly 10th 2014, 11:39 am by naknak

» Project: Reconstruction [Died]
How Can I Improve This Script? EmptyJuly 10th 2014, 11:36 am by naknak

» Hi. I am new here
How Can I Improve This Script? EmptyApril 26th 2014, 4:01 pm by altshiftkey

» What's your favorite sport?
How Can I Improve This Script? EmptyJanuary 1st 2014, 2:13 pm by m27frogy

» FlashLight Script
How Can I Improve This Script? EmptyJanuary 1st 2014, 2:11 pm by m27frogy

» Gun Making! [READ DESC]
How Can I Improve This Script? EmptyJanuary 1st 2014, 2:10 pm by m27frogy

» Hi, I am new here!
How Can I Improve This Script? EmptyNovember 26th 2013, 3:33 pm by Keanu73

» Improve Coding
How Can I Improve This Script? EmptyOctober 26th 2013, 1:12 pm by pook03

» Simple Button
How Can I Improve This Script? EmptySeptember 1st 2013, 6:19 pm by branefreez


 

 How Can I Improve This Script?

Go down 
5 posters
AuthorMessage
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

How Can I Improve This Script? Empty
PostSubject: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 3rd 2011, 3:35 pm

It doesn't even work, but the idea is close.... sorta. If you know how to fix/Improve it then please tell. I made the script myself, i just copied the connection line stuff cause' i've not really done any message scripts before.

Team Creator Script

ok = false
function onChatted(msg, speaker)

if (msg:sub(1,7) == "create/") then
for i,v in pairs(game.Teams:GetChildren()) do
if v.TeamColor ~= speaker.TeamColor then
ok = true
end
end
if ok == true then
t = Instance.new"Team"
t.Name = msg:sub(8,18)
t.Parent = game.Teams
owner = Instance.new"StringValue"
owner.Name = "Owner"
owner.Value = speaker.Name
end
elseif (msg:sub(1,5) == "name/") then
for i,v in pairs(game.Teams:GetChildren()) do
if v.Owner.Value == speaker.Name then
v.Name = msg:sub(6,16)
end
end
elseif (msg:sub(1,5) == "color/") then
for i,v in pairs(game.Teams:GetChildren()) do
if v.Owner.Value == speaker.Name then
v.TeamColor = BrickColor.new(msg:sub(6,20))
end
end
end
end

function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, newPlayer) end)
end

game.Players.ChildAdded:connect(onPlayerEntered)
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 6th 2011, 10:05 am

Anyone?
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 6th 2011, 2:47 pm

I'll try and help later, currently I don't have any access to roblox.
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 7th 2011, 10:08 am

Sorry, I can't help. I can't work with the Chatted events...
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 7th 2011, 12:34 pm

Thanks it is not really necessary. I was just trying to make a fun thing in-game. Naknak you are really smart! Are you in college?
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 7th 2011, 5:20 pm

i think this it a big problem. syntax error, idk, only looked at the script for a few seconds...
Code:
function onPlayerEntered(newPlayer)
newPlayer.Chatted:connect(function(msg, recipient) onChatted(msg, newPlayer) end)
end
maybe if u fix this up a bit
Back to top Go down
http://hackthissite.org
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 7th 2011, 10:17 pm

No, but I am smarter than the average guy
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 8th 2011, 11:44 am

Same.
Back to top Go down
Supernapalm
Expert Scripter
Expert Scripter
avatar


Posts : 393
Join date : 2011-01-17

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 8th 2011, 8:36 pm

hey. now that i notice ur title (lol) i just wanted to point out that i actually thought about making a script like this for some strategy war game. just... just saying. dont panic
Back to top Go down
http://hackthissite.org
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 11th 2011, 11:25 am

This place is so much nicer then the roblox forums.
Back to top Go down
m27frogy
The Garbageman
m27frogy


Posts : 336
Join date : 2011-06-23

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 11th 2011, 5:18 pm

We try to be. Send me a PM with any questions either here or on ROBLOX.
Back to top Go down
naknak
Administrator
Administrator
naknak


Posts : 878
Join date : 2010-07-30

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyJuly 12th 2011, 5:03 pm

Roblox's forumers are too judgemental
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyFebruary 4th 2012, 7:27 am

don't ya think that sentance is a bit hypocritical?
I think that this site is better for help because it isn't filled with noobs that spam...
Back to top Go down
Sethalonian
Intermediate Scripter
Intermediate Scripter
Sethalonian


Posts : 63
Join date : 2011-06-10
Age : 26

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyFebruary 4th 2012, 11:19 am

XD true true
Back to top Go down
blueymaddog
Administrator
Administrator
blueymaddog


Posts : 1081
Join date : 2010-12-09
Age : 25

How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? EmptyFebruary 4th 2012, 11:24 am

lol we need more members so there is like at least 1 person on at any one time :3
Back to top Go down
Sponsored content





How Can I Improve This Script? Empty
PostSubject: Re: How Can I Improve This Script?   How Can I Improve This Script? Empty

Back to top Go down
 
How Can I Improve This Script?
Back to top 
Page 1 of 1
 Similar topics
-
» My first script *morph*
» Script Help
» The Local Script: A Robloxian's Worst Nightmare
» C++ script
» Another C++ Script

Permissions in this forum:You cannot reply to topics in this forum
A Roblox Community :: Questions and Help :: Scripting-
Jump to: