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: Merge

Previous Thread :: Next Thread 
Airennor is not online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
27 Dec 2013 09:03 AM
How could I merge all these scripts into one...

Script 1:
function Added(Model)
if game.Players:findFirstChild(Model.Name) ~= nil and Model:findFirstChild("Humanoid") ~= nil then
wait(2)
local colors = Model:findFirstChild("Body Colors")
if colors == nil then return end
Model.Head.BrickColor = colors.HeadColor
Model.Torso.BrickColor = colors.TorsoColor
local LA = Model:findFirstChild("Left Arm")
local RA = Model:findFirstChild("Right Arm")
local LL = Model:findFirstChild("Left Leg")
local RL = Model:findFirstChild("Right Leg")
LA.BrickColor = colors.LeftArmColor
RA.BrickColor = colors.RightArmColor
LL.BrickColor = colors.LeftLegColor
RL.BrickColor = colors.RightLegColor
end
end


game.Workspace.ChildAdded:connect(Added)


Script 2:
while true do
wait(1)
local m = script.Parent:GetChildren()
for i = 1, #m do

if m[i].className == "Hat" then
m[i]:Remove()

end

end
end


Script 3:
while true do
wait()
for i,v in pairs(game.Workspace:GetChildren()) do
if v.className == "Tool" then
v:Remove()
end

end

end


Script 4:
while true do
for inx, val in pairs(game.Players:GetPlayers()) do
if val:FindFirstChild("PlayerGui") then
if val.PlayerGui:FindFirstChild("HealthGUI") then
val.PlayerGui.HealthGUI:Remove()
end
end
end
wait()
end


Script 5:
l = game:service("Lighting")
while true do
wait(1)
l:SetMinutesAfterMidnight(l:GetMinutesAfterMidnight()+0.1)

end


---Thanks to all replies!
Report Abuse
Airennor is not online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
27 Dec 2013 09:18 AM
.
Report Abuse
Airennor is not online. Airennor
Joined: 31 Oct 2012
Total Posts: 1607
27 Dec 2013 09:33 AM
Anyone?
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