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: Functions and services

Previous Thread :: Next Thread 
shadowsoulforever is not online. shadowsoulforever
Joined: 28 Sep 2011
Total Posts: 635
28 Oct 2011 02:54 PM
--Varibles--
local p=game.Players
local w=game.Workspace
local l=game.Lighting
--Services--
game:GetService("Teams")
--Functions--
function newString(stringparent,stringname,stringvalue)
string=Instnce.new("StringValue",stringparent)
string.Name=stringname
string.Value=stringvalue
end
function onEnter(player)
newString(player,"Play","true")
end
function newMessage(var,text,duration)
local message=Instance.new(var,game.Workspace)
message.Text=text
wait(duration)
message:remove()
end
function newTeam(teamname,teamcolor)
local team=Instance.new("Team",game.Teams)
team.Name=teamname
team.TeamColor=BrickColor.new(teamcolor)
end
function giveItem(itemname)
tool=l.Tools[itemname]:Clone()
playerget=p:GetChildren()
for i=1,#playerget do
if playerget[i].Play.Value=="true" then
tool.Parent=playerget[i].Backpack
else
--nothing
end
end
end
function newModel(modelparent,modelname,input)
model=Instance.new("Model",modelparent)
model.Name=modelname
input.Parent=model
end
game.Players.PlayerAdded:connect(onEnter)






Some functions made by me.
Report Abuse
micol2242 is not online. micol2242
Joined: 13 Nov 2010
Total Posts: 4732
28 Oct 2011 02:59 PM
So this matters to us because...
Report Abuse
shadowsoulforever is not online. shadowsoulforever
Joined: 28 Sep 2011
Total Posts: 635
28 Oct 2011 03:04 PM
Noobs may use it :3
Report Abuse
InsaaneDaark is not online. InsaaneDaark
Joined: 13 Oct 2011
Total Posts: 474
28 Oct 2011 03:07 PM
The room full of people who care!

http://www.roblox.com/Room-Full-of-People-Who-Care-item?id=55074217
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