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 » Scripters
Home Search
 

Re: A really really long script

Previous Thread :: Next Thread 
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
24 Feb 2016 03:03 AM
Er.. I just wanted the intro part of the script but apparently I somehow got it mixed up with the character customization and now I need the character customization to be removed.
Btw, it's in a localscript called FadeOut if you need more information
Script:

wait()

local ling = 0
local skin = nil
local vest = nil
local perk = nil
local hair = nil
local color = nil
local outfit = nil
local player = Game.Players.LocalPlayer
local content = Game:GetService("ContentProvider")
Game.StarterGui:SetCoreGuiEnabled("PlayerList", false)

local maximo = content.RequestQueueSize
local requesto = 1
local lbar = script.Parent:WaitForChild("Frame"):WaitForChild("Loading"):WaitForChild("Bar"):WaitForChild("Blue")
repeat
wait(1/4)
requesto = content.RequestQueueSize
lbar.Size = UDim2.new((1 - requesto/maximo)*4, 0, 0, 5)
until requesto <= maximo*3/4

lbar.Size = UDim2.new(1, 0, 0, 5)
local frame = script.Parent:WaitForChild("Frame")
local loading = frame:WaitForChild("Loading")
local blackscreen = frame:WaitForChild("Black")
local blacktop = frame:WaitForChild("BlackTop")
local blackbottom = frame:WaitForChild("BlackBottom")
local title = frame:WaitForChild("Title")
local dualpoint = frame:WaitForChild("Dualpoint")
local presents = dualpoint:WaitForChild("Presents")

local trackfocus = Game.Workspace.CameraTrack.TrackFocus
local trackstart = Game.Workspace.CameraTrack.TrackStart
local trackend = Game.Workspace.CameraTrack.TrackEnd
local camera = Game.Workspace.CurrentCamera

player.Character:WaitForChild("NewHead")
player:WaitForChild("playerstats")
script.Parent.Parent.Intro:Play()
script.Parent.Frame.Skip.Visible = true

camera.CameraType = "Scriptable"
camera.CameraSubject = nil
camera.CoordinateFrame = CFrame.new(trackstart.Position, trackfocus.Position)
local gmult = Game.Workspace:FindFirstChild("Anchored Objects"):FindFirstChild("Trees/Foliage"):FindFirstChild("GM").Value

function Lerp(val1, val2, dist)
return val1*(1-dist) + val2*dist end

local roads = Game.Workspace:FindFirstChild("Anchored Objects").Plates.Roads:GetChildren()
model = Instance.new("Model")
model.Name = "FakeRoads"
model.Parent = camera

for y = 1, #roads do
local fakeroad = roads[y]:clone()
fakeroad.CFrame = roads[y].CFrame + Vector3.new(0,0.2,0)
fakeroad.Parent = model
end

function Skip()
if player.playerstats.character.Value == 0 then
tutorial = Game.Lighting.Tutorial:clone()
else
tutorial = Game.Lighting.FakeTutorial:clone()
if player.playerstats.character.skin.Value == 1 then skin = 125 end
if player.playerstats.character.skin.Value == 2 then skin = 18 end
if player.playerstats.character.skin.Value == 3 then skin = 217 end
if player.playerstats.character.skin.Value == 4 then skin = 192 end
player.Character:findFirstChild("Left Arm").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Right Arm").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Left Leg").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Right Leg").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Torso").BrickColor = BrickColor.new(skin)
if player.Character:findFirstChild("Body Colors") then
player.Character:findFirstChild("Body Colors").LeftArmColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").RightArmColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").LeftLegColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").RightLegColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").TorsoColor = BrickColor.new(skin)
end
player.Character.NewHead.Handle.BrickColor = BrickColor.new(skin)

if player.playerstats.character.vest.Value == 1 then vest = Game.Lighting.PlayerVests.Standard:clone() end
if player.playerstats.character.vest.Value == 2 then vest = Game.Lighting.PlayerVests.Tactical:clone() end
if player.playerstats.character.vest.Value == 3 then vest = Game.Lighting.PlayerVests.Heavy:clone() end
_G.AttachAccessory(vest, player.Character.Torso, CFrame.new(0,1.47+player.Character.Head.Size.Y/2,0))

local perk1 = player.playerstats.character.perk1
local perk2 = player.playerstats.character.perk2
if perk1.Value == 1 or perk2.Value == 1 then end
if perk1.Value == 2 or perk2.Value == 2 then
script.Parent.Parent.Survival.Hunger.WaitTime.Value = 15
script.Parent.Parent.Survival.Thirst.WaitTime.Value = 12
end
if perk1.Value == 3 or perk2.Value == 3 then
local adrenaline = Game.Lighting.Vitality:clone()
adrenaline.Disabled = false
adrenaline.Parent = script.Parent.Parent.Survival
end
if perk1.Value == 4 or perk2.Value == 4 then
local p = player.Character.Head:GetChildren()
local ninjalooloo = Game.Lighting.NinjaVal:clone()
ninjalooloo.Parent = player.Character.Torso
for o = 1, #p do
if p[o].className == "Sound" then
if p[o].SoundId == "rbxasset://sounds/swoosh.wav" then
p[o].Volume = 0.03
end
if p[o].SoundId == "rbxasset://sounds/button.wav" then
p[o].Volume = 0.02
end
if p[o].SoundId == "rbxasset://sounds/action_footsteps_plastic.mp3" then
p[o].Volume = 0.05
end
end
end
end

if player.playerstats.character.vestcolor.Value == 1 then color = 26 end
if player.playerstats.character.vestcolor.Value == 2 then color = 208 end
if player.playerstats.character.vestcolor.Value == 3 then color = 199 end
if player.playerstats.character.vestcolor.Value == 4 then color = 192 end
if player.playerstats.character.vestcolor.Value == 5 then color = 21 end
if player.playerstats.character.vestcolor.Value == 6 then color = 106 end
if player.playerstats.character.vestcolor.Value == 7 then color = 24 end
if player.playerstats.character.vestcolor.Value == 8 then color = 141 end
if player.playerstats.character.vestcolor.Value == 9 then color = 23 end
if player.playerstats.character.vestcolor.Value == 10 then color = 104 end
if player.playerstats.character.vestcolor.Value == 11 then color = 1003 end
if player.playerstats.character.vestcolor.Value == 12 then color = 194 end
if player.playerstats.character.vestcolor.Value == 13 then color = 1022 end
if player.playerstats.character.vestcolor.Value == 14 then color = 28 end
if player.playerstats.character.vestcolor.Value == 15 then color = 217 end
if player.playerstats.character.vestcolor.Value == 16 then color = 18 end
if player.playerstats.character.vestcolor.Value == 17 then color = 101 end
if player.playerstats.character.vestcolor.Value == 18 then color = 1007 end
if player.playerstats.character.vestcolor.Value == 19 then color = 105 end
if player.playerstats.character.vestcolor.Value == 20 then color = 1014 end
if player.playerstats.character.vestcolor.Value == 21 then color = 226 end
if player.playerstats.character.vestcolor.Value == 22 then color = 1008 end
if player.playerstats.character.vestcolor.Value == 23 then color = 102 end
if player.playerstats.character.vestcolor.Value == 24 then color = 1011 end
if player.playerstats.character.vestcolor.Value == 25 then color = 9 end
if player.playerstats.character.vestcolor.Value == 26 then color = 1016 end
local bodyarmor = player.Character:findFirstChild("thisisarmor",true).Parent
local d = bodyarmor:GetChildren()
for i = 1, #d do
if d[i].className == "Part" then
d[i].BrickColor = BrickColor.new(color)
end
end

local color = Color3.new(1,1,1)
if player.playerstats.character.haircolor.Value == 1 then color = Vector3.new(1,1,1) end
if player.playerstats.character.haircolor.Value == 2 then color = Vector3.new(1,0.85,0.5) end
if player.playerstats.character.haircolor.Value == 3 then color = Vector3.new(0.8,0.6,0.4) end
if player.playerstats.character.haircolor.Value == 4 then color = Vector3.new(0.6,0.4,0.25) end
if player.playerstats.character.haircolor.Value == 5 then color = Vector3.new(0.35,0.2,0.1) end
if player.playerstats.character.haircolor.Value == 6 then color = Vector3.new(1,0.4,0.2) end
if player.playerstats.character.haircolor.Value == 7 then color = Vector3.new(0.7,0.3,0.2) end
if player.playerstats.character.haircolor.Value == 8 then color = Vector3.new(0.2,0.15,0.15) end
if player.playerstats.character.haircolor.Value == 9 then color = Vector3.new(1,0,0) end
if player.playerstats.character.haircolor.Value == 10 then color = Vector3.new(0,1,0) end
if player.playerstats.character.haircolor.Value == 11 then color = Vector3.new(0,0,1) end
if player.playerstats.character.haircolor.Value == 12 then color = Vector3.new(0.8,0.1,0.8) end
if player.playerstats.character.haircolor.Value == 13 then color = Vector3.new(1,0.1,0.4) end
if player.playerstats.character.haircolor.Value == 14 then color = Vector3.new(0,0,0.3) end
if player.playerstats.character.haircolor.Value == 15 then color = Vector3.new(0.4,0.6,0.3) end
if player.playerstats.character.haircolor.Value == 16 then color = Vector3.new(0,0,0) end

local hair = nil
if player.playerstats.character.hair.Value == 2 then hair = Game.Lighting.Hair.Normal:clone() end
if player.playerstats.character.hair.Value == 3 then hair = Game.Lighting.Hair.Flat:clone() end
if player.playerstats.character.hair.Value == 4 then hair = Game.Lighting.Hair.Messy:clone() end
if player.playerstats.character.hair.Value == 5 then hair = Game.Lighting.Hair.Spiky:clone() end
if player.playerstats.character.hair.Value == 6 then hair = Game.Lighting.Hair.Swept:clone() end
if player.playerstats.character.hair.Value == 7 then hair = Game.Lighting.Hair.Long:clone() end
if player.playerstats.character.hair.Value == 8 then hair = Game.Lighting.Hair.Longer:clone() end
if player.playerstats.character.hair.Value == 9 then hair = Game.Lighting.Hair.Bun:clone() end
if player.playerstats.character.hair.Value == 10 then hair = Game.Lighting.Hair.Afro:clone() end
if hair and _G.Deobfuscate(player.playerstats.character.hat.Value) == 0 and _G.Deobfuscate(player.playerstats.character.accessory.Value) ~= 8009 then
_G.AttachAccessory(hair, player.Character.Head, CFrame.new(0,player.Character.Head.Size.Y/2,0))
hair.Handle.Mesh.VertexColor = color
end

local shirt = Instance.new("Shirt")
local pants = Instance.new("Pants")
if player.playerstats.character.shirt:FindFirstChild("ObjectID") then
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=" .. player.playerstats.character.shirt.ObjectID.Shirt.Value
end
if player.playerstats.character.pants:FindFirstChild("ObjectID") then
pants.PantsTemplate = "http://www.roblox.com/asset/?id=" .. player.playerstats.character.pants.ObjectID.Pants.Value
end
shirt.Name = "GameShirt"
pants.Name = "GamePants"
shirt.Parent = player.Character
pants.Parent = player.Character

local hat = nil
local hats = Game.Lighting.Hats
if player.playerstats.character.hat:FindFirstChild("ObjectID") then
local hid = _G.Deobfuscate(player.playerstats.character.hat.ObjectID.Value)
if hid == 7001 then
hat = hats:FindFirstChild("CowlBlack"):clone()
elseif hid == 7002 then
hat = hats:FindFirstChild("CowlGreen"):clone()
elseif hid == 7003 then
hat = hats:FindFirstChild("Ranger"):clone()
elseif hid == 7004 then
hat = hats:FindFirstChild("Fedora"):clone()
elseif hid == 7005 then
hat = hats:FindFirstChild("Bowler"):clone()
elseif hid == 7006 then
hat = hats:FindFirstChild("Biker"):clone()
elseif hid == 7007 then
hat = hats:FindFirstChild("BrimmedBrown"):clone()
elseif hid == 7008 then
hat = hats:FindFirstChild("BrimmedBlack"):clone()
elseif hid == 7009 then
hat = hats:FindFirstChild("PilotBlack"):clone()
elseif hid == 7010 then
hat = hats:FindFirstChild("PilotGreen"):clone()
elseif hid == 7011 then
hat = hats:FindFirstChild("Beanie"):clone()
elseif hid == 7012 then
hat = hats:FindFirstChild("Cowboy"):clone()
elseif hid == 7013 then
hat = hats:FindFirstChild("RedBeret"):clone()
elseif hid == 7014 then
hat = hats:FindFirstChild("Ushanka"):clone()
elseif hid == 7015 then
hat = hats:FindFirstChild("TrinityBeret"):clone()
elseif hid == 7016 then
hat = hats:FindFirstChild("BallisticDesert"):clone()
elseif hid == 7017 then
hat = hats:FindFirstChild("BallisticJungle"):clone()
elseif hid == 7018 then
hat = hats:FindFirstChild("BallisticUrban"):clone()
elseif hid == 7019 then
hat = hats:FindFirstChild("BallisticSpecOps"):clone()
end
if hat then
if player.Character:FindFirstChild("thisishair", true) then
player.Character:FindFirstChild("thisishair", true).Parent:Destroy()
end
hat.Handle.CFrame = player.Character.Head.CFrame*CFrame.new(0,player.Character.Head.Size.Y/2,0)*hat.Handle.AttachmentPoint.Value:inverse()
local weldo = Instance.new("Weld")
weldo.Part0 = player.Character.Head
weldo.Part1 = hat.Handle
local CJ = CFrame.new(player.Character.Head.Position)
local C0 = player.Character.Head.CFrame:inverse()*CJ
local C1 = hat.Handle.CFrame:inverse()*CJ
weldo.C0 = C0
weldo.C1 = C1
weldo.Parent = hat.Handle
hat.Parent = player.Character
end
end

if player.Character:FindFirstChild("thisisaccessory", true) then
player.Character:FindFirstChild("thisisaccessory", true).Parent:Destroy()
end
local acc = nil
if player.playerstats.character.accessory:FindFirstChild("ObjectID") then
local aid = _G.Deobfuscate(player.playerstats.character.accessory.ObjectID.Value)
if aid == 8001 then
acc = hats:FindFirstChild("ShadesBlack"):clone()
elseif aid == 8002 then
acc = hats:FindFirstChild("BandanaBlack"):clone()
elseif aid == 8003 then
acc = hats:FindFirstChild("Eyepatch"):clone()
elseif aid == 8004 then
acc = hats:FindFirstChild("Firefighter"):clone()
elseif aid == 8005 then
acc = hats:FindFirstChild("ShadesGrey"):clone()
elseif aid == 8006 then
acc = hats:FindFirstChild("HornRimmed"):clone()
elseif aid == 8007 then
acc = hats:FindFirstChild("MaskMercenary"):clone()
elseif aid == 8008 then
acc = hats:FindFirstChild("MaskMime"):clone()
elseif aid == 8009 then
if player.Character:FindFirstChild("thisishair", true) then
player.Character:FindFirstChild("thisishair", true).Parent:Destroy()
end
acc = hats:FindFirstChild("MaskSpecOps"):clone()
elseif aid == 8010 then
acc = hats:FindFirstChild("BandanaRed"):clone()
elseif aid == 8011 then
acc = hats:FindFirstChild("BandanaRenegade"):clone()
elseif aid == 8012 then
acc = hats:FindFirstChild("MaskHockey"):clone()
elseif aid == 8013 then
acc = hats:FindFirstChild("MaskPhantom"):clone()
elseif aid == 8014 then
acc = hats:FindFirstChild("BandanaSkull"):clone()
end
if acc then
acc.Handle.CFrame = player.Character.Head.CFrame*CFrame.new(0,player.Character.Head.Size.Y/2,0)*acc.Handle.AttachmentPoint.Value:inverse()
local weldo = Instance.new("Weld")
weldo.Part0 = player.Character.Head
weldo.Part1 = acc.Handle
local CJ = CFrame.new(player.Character.Head.Position)
local C0 = player.Character.Head.CFrame:inverse()*CJ
local C1 = acc.Handle.CFrame:inverse()*CJ
weldo.C0 = C0
weldo.C1 = C1
weldo.Parent = acc.Handle
acc.Parent = player.Character
end
end
end
model:Destroy()
--Game.StarterGui:SetCoreGuiEnabled("PlayerList", true)
player.PlayerGui:WaitForChild("MyGroup").M0.Visible = true
player.Character.Torso.Anchored = false
camera.CameraType = "Custom"
camera.CameraSubject = player.Character.Humanoid
tutorial.Parent = player.PlayerGui
script.Parent:Destroy()
end

script.Parent.Frame.Skip.MouseButton1Down:connect(function () script.Parent.Parent.Intro:Stop(); Skip() end)

for g = 1, 30 do
wait(1/30)
loading.TextTransparency = g/30
lbar.Parent.BackgroundTransparency = g/30
lbar.BackgroundTransparency = g/30
end
loading.Visible = false
lbar.Parent.Visible = false

wait(2)
for g = 1, 30 do
wait(1/30)
dualpoint.TextTransparency = (30 - g)/30
end
wait(1)
for g = 1, 30 do
wait(1/30)
presents.TextTransparency = (30 - g)/30
end
wait(3)
for g = 1, 30 do
wait(1/30)
dualpoint.TextTransparency = g/30
presents.TextTransparency = g/30
end

wait(1)

for g = 1, 420 do
wait(1/30)
camera.CoordinateFrame = CFrame.new(Lerp(trackstart.Position, trackend.Position, g/420), trackfocus.Position)
if g > 0 and g <= 90 then
local modg = g - 0
blackbottom.Position = UDim2.new(0,0,0.5 + modg/300)
blacktop.Position = UDim2.new(0,0,-0.5 - modg/300)
elseif g > 120 and g <= 150 then
local modg = g - 120
title.ImageTransparency = (30 - modg)/30
elseif g > 360 and g <= 390 then
local modg = g - 360
blackscreen.BackgroundTransparency = (30 - modg)/30
end
end

Skip()
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
24 Feb 2016 03:06 AM
And apparently the script was given to my friend and he really likes apocalypse rising and he wanted to do a similar version of it but he scrapped it now and now he wants the intro
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
24 Feb 2016 02:44 PM
Bumpity Bump bump bump!
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
25 Feb 2016 06:45 PM
I bump you, you bump, please try answer my question.
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
25 Feb 2016 06:45 PM
Roses are bump
Violets are bump
Please answer dis question
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
25 Feb 2016 06:46 PM
Never gonna bump you up
Never gonna bump you down
Never gonna bump around and bump you..
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
25 Feb 2016 06:47 PM
God save our gracious bump
May it bump over us
God save the bump
Report Abuse
Crimsonal is not online. Crimsonal
Joined: 23 Apr 2011
Total Posts: 1795
25 Feb 2016 07:09 PM
Here's why you have no replies XD

1. It's too long
2. It's too long
3. It's too long

and guess what?

4. It's too long!
Report Abuse
ForeverDev is not online. ForeverDev
Joined: 04 Oct 2008
Total Posts: 13300
25 Feb 2016 07:13 PM
only long because it could be MASSIVELY simplified
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
25 Feb 2016 11:05 PM
THEN SIMPLIFY IT.
Report Abuse
Haschwalth is not online. Haschwalth
Joined: 30 Sep 2009
Total Posts: 24661
25 Feb 2016 11:07 PM
But that's not our job to simplify it.
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
26 Feb 2016 03:37 AM
Well, I did my best to compress everything, but I compressed it into one script where the character customization is so I need your help to fix it. And I'm not the best scripter you see everyday.
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
26 Feb 2016 07:17 AM
To the idiot who said "It's too long four times";
That wasn't funny at all. He needs help and you're going "XD NO REPLIES". How heartless.
Report Abuse
xlaser23 is not online. xlaser23
Joined: 10 Dec 2011
Total Posts: 20341
26 Feb 2016 07:19 AM
"That wasn't funny at all. He needs help and you're going "XD NO REPLIES". How heartless.
"

moron ur doing the same by trying to flame

why dont u help him smart ass



http://www.roblox.com/xla-item?id=290739801http://www.roblox.com/aser-item?id=290739819http://www.roblox.com/23-item?id=290739831 R$308 Tx162 (づ ゚ ³ ゚)づ
Report Abuse
colbert2677 is not online. colbert2677
Joined: 28 Feb 2010
Total Posts: 1380
26 Feb 2016 07:23 AM
Oh dear, a numbnut kid. From C&G I propose.

Anyway, there could be a few problems with the script.

1. Check if your variables were properly instantiated
2. Make use of yield functions
3. Overlook your script many times

I'm on a phone so I can't critically analyze the script.
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Feb 2016 08:29 AM
God, learn how to use loop. Jesus christ
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
26 Feb 2016 08:36 AM
where do you get off coming onto a public forum and telling people what to do? nobody has to simplify it for you lol

-=Robo=-
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
26 Feb 2016 08:38 AM
If they expect any help at all you must make it simplified for the reader instead of posting 1000 lines of code and expect us to find the problem within that without giving a specific area of code to look at.
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
26 Feb 2016 10:01 AM
Well thats no use of going to the forums asking for help in scripting
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
26 Feb 2016 06:54 PM
All I said is to remove character customization, which apparently is in the script. What I want is the intro and then after that it spawns onto the spawnpoint
Report Abuse
robocu3 is not online. robocu3
Joined: 13 Mar 2009
Total Posts: 6485
26 Feb 2016 08:33 PM
Do it yourself.

-=Robo=-
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
27 Feb 2016 07:35 PM
>Says do it yourself
>Asks help in the forums
>Most posts gets help
>"Do it your self"
>how is this even a help center
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
27 Feb 2016 07:39 PM
Okay, here. I tried to remove the character customization but it's not working

Script:

wait()

local ling = 0
local skin = nil
local vest = nil
local perk = nil
local hair = nil
local color = nil
local outfit = nil
local player = Game.Players.LocalPlayer
local content = Game:GetService("ContentProvider")
Game.StarterGui:SetCoreGuiEnabled("PlayerList", false)

local maximo = content.RequestQueueSize
local requesto = 1
local lbar = script.Parent:WaitForChild("Frame"):WaitForChild("Loading"):WaitForChild("Bar"):WaitForChild("Blue")
repeat
wait(1/4)
requesto = content.RequestQueueSize
lbar.Size = UDim2.new((1 - requesto/maximo)*4, 0, 0, 5)
until requesto <= maximo*3/4

lbar.Size = UDim2.new(1, 0, 0, 5)
local frame = script.Parent:WaitForChild("Frame")
local loading = frame:WaitForChild("Loading")
local blackscreen = frame:WaitForChild("Black")
local blacktop = frame:WaitForChild("BlackTop")
local blackbottom = frame:WaitForChild("BlackBottom")
local title = frame:WaitForChild("Title")
local dualpoint = frame:WaitForChild("Dualpoint")
local presents = dualpoint:WaitForChild("Presents")

local trackfocus = Game.Workspace.CameraTrack.TrackFocus
local trackstart = Game.Workspace.CameraTrack.TrackStart
local trackend = Game.Workspace.CameraTrack.TrackEnd
local camera = Game.Workspace.CurrentCamera

player.Character:WaitForChild("NewHead")
player:WaitForChild("playerstats")
script.Parent.Parent.Intro:Play()
script.Parent.Frame.Skip.Visible = true

camera.CameraType = "Scriptable"
camera.CameraSubject = nil
camera.CoordinateFrame = CFrame.new(trackstart.Position, trackfocus.Position)
local gmult = Game.Workspace:FindFirstChild("Anchored Objects"):FindFirstChild("Trees/Foliage"):FindFirstChild("GM").Value

function Lerp(val1, val2, dist)
return val1*(1-dist) + val2*dist end

local roads = Game.Workspace:FindFirstChild("Anchored Objects").Plates.Roads:GetChildren()
model = Instance.new("Model")
model.Name = "FakeRoads"
model.Parent = camera

for y = 1, #roads do
local fakeroad = roads[y]:clone()
fakeroad.CFrame = roads[y].CFrame + Vector3.new(0,0.2,0)
fakeroad.Parent = model
end

function Skip()
if player.playerstats.character.Value == 0 then
tutorial = Game.Lighting.Tutorial:clone()
else
tutorial = Game.Lighting.FakeTutorial:clone()
if player.playerstats.character.skin.Value == 1 then skin = 125 end
if player.playerstats.character.skin.Value == 2 then skin = 18 end
if player.playerstats.character.skin.Value == 3 then skin = 217 end
if player.playerstats.character.skin.Value == 4 then skin = 192 end
player.Character:findFirstChild("Left Arm").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Right Arm").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Left Leg").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Right Leg").BrickColor = BrickColor.new(skin)
player.Character:findFirstChild("Torso").BrickColor = BrickColor.new(skin)
if player.Character:findFirstChild("Body Colors") then
player.Character:findFirstChild("Body Colors").LeftArmColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").RightArmColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").LeftLegColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").RightLegColor = BrickColor.new(skin)
player.Character:findFirstChild("Body Colors").TorsoColor = BrickColor.new(skin)
end
player.Character.NewHead.Handle.BrickColor = BrickColor.new(skin)

if player.playerstats.character.vest.Value == 1 then vest = Game.Lighting.PlayerVests.Standard:clone() end
if player.playerstats.character.vest.Value == 2 then vest = Game.Lighting.PlayerVests.Tactical:clone() end
if player.playerstats.character.vest.Value == 3 then vest = Game.Lighting.PlayerVests.Heavy:clone() end
_G.AttachAccessory(vest, player.Character.Torso, CFrame.new(0,1.47+player.Character.Head.Size.Y/2,0))

local perk1 = player.playerstats.character.perk1
local perk2 = player.playerstats.character.perk2
if perk1.Value == 1 or perk2.Value == 1 then end
if perk1.Value == 2 or perk2.Value == 2 then
script.Parent.Parent.Survival.Hunger.WaitTime.Value = 15
script.Parent.Parent.Survival.Thirst.WaitTime.Value = 12
end
if perk1.Value == 3 or perk2.Value == 3 then
local adrenaline = Game.Lighting.Vitality:clone()
adrenaline.Disabled = false
adrenaline.Parent = script.Parent.Parent.Survival
end
if perk1.Value == 4 or perk2.Value == 4 then
local p = player.Character.Head:GetChildren()
local ninjalooloo = Game.Lighting.NinjaVal:clone()
ninjalooloo.Parent = player.Character.Torso
for o = 1, #p do
if p[o].className == "Sound" then
if p[o].SoundId == "rbxasset://sounds/swoosh.wav" then
p[o].Volume = 0.03
end
if p[o].SoundId == "rbxasset://sounds/button.wav" then
p[o].Volume = 0.02
end
if p[o].SoundId == "rbxasset://sounds/action_footsteps_plastic.mp3" then
p[o].Volume = 0.05
end
end
end
end

if player.playerstats.character.vestcolor.Value == 1 then color = 26 end
if player.playerstats.character.vestcolor.Value == 2 then color = 208 end
if player.playerstats.character.vestcolor.Value == 3 then color = 199 end
if player.playerstats.character.vestcolor.Value == 4 then color = 192 end
if player.playerstats.character.vestcolor.Value == 5 then color = 21 end
if player.playerstats.character.vestcolor.Value == 6 then color = 106 end
if player.playerstats.character.vestcolor.Value == 7 then color = 24 end
if player.playerstats.character.vestcolor.Value == 8 then color = 141 end
if player.playerstats.character.vestcolor.Value == 9 then color = 23 end
if player.playerstats.character.vestcolor.Value == 10 then color = 104 end
if player.playerstats.character.vestcolor.Value == 11 then color = 1003 end
if player.playerstats.character.vestcolor.Value == 12 then color = 194 end
if player.playerstats.character.vestcolor.Value == 13 then color = 1022 end
if player.playerstats.character.vestcolor.Value == 14 then color = 28 end
if player.playerstats.character.vestcolor.Value == 15 then color = 217 end
if player.playerstats.character.vestcolor.Value == 16 then color = 18 end
if player.playerstats.character.vestcolor.Value == 17 then color = 101 end
if player.playerstats.character.vestcolor.Value == 18 then color = 1007 end
if player.playerstats.character.vestcolor.Value == 19 then color = 105 end
if player.playerstats.character.vestcolor.Value == 20 then color = 1014 end
if player.playerstats.character.vestcolor.Value == 21 then color = 226 end
if player.playerstats.character.vestcolor.Value == 22 then color = 1008 end
if player.playerstats.character.vestcolor.Value == 23 then color = 102 end
if player.playerstats.character.vestcolor.Value == 24 then color = 1011 end
if player.playerstats.character.vestcolor.Value == 25 then color = 9 end
if player.playerstats.character.vestcolor.Value == 26 then color = 1016 end
local bodyarmor = player.Character:findFirstChild("thisisarmor",true).Parent
local d = bodyarmor:GetChildren()
for i = 1, #d do
if d[i].className == "Part" then
d[i].BrickColor = BrickColor.new(color)
end
end

local color = Color3.new(1,1,1)
if player.playerstats.character.haircolor.Value == 1 then color = Vector3.new(1,1,1) end
if player.playerstats.character.haircolor.Value == 2 then color = Vector3.new(1,0.85,0.5) end
if player.playerstats.character.haircolor.Value == 3 then color = Vector3.new(0.8,0.6,0.4) end
if player.playerstats.character.haircolor.Value == 4 then color = Vector3.new(0.6,0.4,0.25) end
if player.playerstats.character.haircolor.Value == 5 then color = Vector3.new(0.35,0.2,0.1) end
if player.playerstats.character.haircolor.Value == 6 then color = Vector3.new(1,0.4,0.2) end
if player.playerstats.character.haircolor.Value == 7 then color = Vector3.new(0.7,0.3,0.2) end
if player.playerstats.character.haircolor.Value == 8 then color = Vector3.new(0.2,0.15,0.15) end
if player.playerstats.character.haircolor.Value == 9 then color = Vector3.new(1,0,0) end
if player.playerstats.character.haircolor.Value == 10 then color = Vector3.new(0,1,0) end
if player.playerstats.character.haircolor.Value == 11 then color = Vector3.new(0,0,1) end
if player.playerstats.character.haircolor.Value == 12 then color = Vector3.new(0.8,0.1,0.8) end
if player.playerstats.character.haircolor.Value == 13 then color = Vector3.new(1,0.1,0.4) end
if player.playerstats.character.haircolor.Value == 14 then color = Vector3.new(0,0,0.3) end
if player.playerstats.character.haircolor.Value == 15 then color = Vector3.new(0.4,0.6,0.3) end
if player.playerstats.character.haircolor.Value == 16 then color = Vector3.new(0,0,0) end

local hair = nil
if player.playerstats.character.hair.Value == 2 then hair = Game.Lighting.Hair.Normal:clone() end
if player.playerstats.character.hair.Value == 3 then hair = Game.Lighting.Hair.Flat:clone() end
if player.playerstats.character.hair.Value == 4 then hair = Game.Lighting.Hair.Messy:clone() end
if player.playerstats.character.hair.Value == 5 then hair = Game.Lighting.Hair.Spiky:clone() end
if player.playerstats.character.hair.Value == 6 then hair = Game.Lighting.Hair.Swept:clone() end
if player.playerstats.character.hair.Value == 7 then hair = Game.Lighting.Hair.Long:clone() end
if player.playerstats.character.hair.Value == 8 then hair = Game.Lighting.Hair.Longer:clone() end
if player.playerstats.character.hair.Value == 9 then hair = Game.Lighting.Hair.Bun:clone() end
if player.playerstats.character.hair.Value == 10 then hair = Game.Lighting.Hair.Afro:clone() end
if hair and _G.Deobfuscate(player.playerstats.character.hat.Value) == 0 and _G.Deobfuscate(player.playerstats.character.accessory.Value) ~= 8009 then
_G.AttachAccessory(hair, player.Character.Head, CFrame.new(0,player.Character.Head.Size.Y/2,0))
hair.Handle.Mesh.VertexColor = color
end

local shirt = Instance.new("Shirt")
local pants = Instance.new("Pants")
if player.playerstats.character.shirt:FindFirstChild("ObjectID") then
shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=" .. player.playerstats.character.shirt.ObjectID.Shirt.Value
end
if player.playerstats.character.pants:FindFirstChild("ObjectID") then
pants.PantsTemplate = "http://www.roblox.com/asset/?id=" .. player.playerstats.character.pants.ObjectID.Pants.Value
end
shirt.Name = "GameShirt"
pants.Name = "GamePants"
shirt.Parent = player.Character
pants.Parent = player.Character

local hat = nil
local hats = Game.Lighting.Hats
if player.playerstats.character.hat:FindFirstChild("ObjectID") then
local hid = _G.Deobfuscate(player.playerstats.character.hat.ObjectID.Value)
if hid == 7001 then
hat = hats:FindFirstChild("CowlBlack"):clone()
elseif hid == 7002 then
hat = hats:FindFirstChild("CowlGreen"):clone()
elseif hid == 7003 then
hat = hats:FindFirstChild("Ranger"):clone()
elseif hid == 7004 then
hat = hats:FindFirstChild("Fedora"):clone()
elseif hid == 7005 then
hat = hats:FindFirstChild("Bowler"):clone()
elseif hid == 7006 then
hat = hats:FindFirstChild("Biker"):clone()
elseif hid == 7007 then
hat = hats:FindFirstChild("BrimmedBrown"):clone()
elseif hid == 7008 then
hat = hats:FindFirstChild("BrimmedBlack"):clone()
elseif hid == 7009 then
hat = hats:FindFirstChild("PilotBlack"):clone()
elseif hid == 7010 then
hat = hats:FindFirstChild("PilotGreen"):clone()
elseif hid == 7011 then
hat = hats:FindFirstChild("Beanie"):clone()
elseif hid == 7012 then
hat = hats:FindFirstChild("Cowboy"):clone()
elseif hid == 7013 then
hat = hats:FindFirstChild("RedBeret"):clone()
elseif hid == 7014 then
hat = hats:FindFirstChild("Ushanka"):clone()
elseif hid == 7015 then
hat = hats:FindFirstChild("TrinityBeret"):clone()
elseif hid == 7016 then
hat = hats:FindFirstChild("BallisticDesert"):clone()
elseif hid == 7017 then
hat = hats:FindFirstChild("BallisticJungle"):clone()
elseif hid == 7018 then
hat = hats:FindFirstChild("BallisticUrban"):clone()
elseif hid == 7019 then
hat = hats:FindFirstChild("BallisticSpecOps"):clone()
end
if hat then
if player.Character:FindFirstChild("thisishair", true) then
player.Character:FindFirstChild("thisishair", true).Parent:Destroy()
end
hat.Handle.CFrame = player.Character.Head.CFrame*CFrame.new(0,player.Character.Head.Size.Y/2,0)*hat.Handle.AttachmentPoint.Value:inverse()
local weldo = Instance.new("Weld")
weldo.Part0 = player.Character.Head
weldo.Part1 = hat.Handle
local CJ = CFrame.new(player.Character.Head.Position)
local C0 = player.Character.Head.CFrame:inverse()*CJ
local C1 = hat.Handle.CFrame:inverse()*CJ
weldo.C0 = C0
weldo.C1 = C1
weldo.Parent = hat.Handle
hat.Parent = player.Character
end
end

if player.Character:FindFirstChild("thisisaccessory", true) then
player.Character:FindFirstChild("thisisaccessory", true).Parent:Destroy()
end
local acc = nil
if player.playerstats.character.accessory:FindFirstChild("ObjectID") then
local aid = _G.Deobfuscate(player.playerstats.character.accessory.ObjectID.Value)
if aid == 8001 then
acc = hats:FindFirstChild("ShadesBlack"):clone()
elseif aid == 8002 then
acc = hats:FindFirstChild("BandanaBlack"):clone()
elseif aid == 8003 then
acc = hats:FindFirstChild("Eyepatch"):clone()
elseif aid == 8004 then
acc = hats:FindFirstChild("Firefighter"):clone()
elseif aid == 8005 then
acc = hats:FindFirstChild("ShadesGrey"):clone()
elseif aid == 8006 then
acc = hats:FindFirstChild("HornRimmed"):clone()
elseif aid == 8007 then
acc = hats:FindFirstChild("MaskMercenary"):clone()
elseif aid == 8008 then
acc = hats:FindFirstChild("MaskMime"):clone()
elseif aid == 8009 then
if player.Character:FindFirstChild("thisishair", true) then
player.Character:FindFirstChild("thisishair", true).Parent:Destroy()
end
acc = hats:FindFirstChild("MaskSpecOps"):clone()
elseif aid == 8010 then
acc = hats:FindFirstChild("BandanaRed"):clone()
elseif aid == 8011 then
acc = hats:FindFirstChild("BandanaRenegade"):clone()
elseif aid == 8012 then
acc = hats:FindFirstChild("MaskHockey"):clone()
elseif aid == 8013 then
acc = hats:FindFirstChild("MaskPhantom"):clone()
elseif aid == 8014 then
acc = hats:FindFirstChild("BandanaSkull"):clone()
end
if acc then
acc.Handle.CFrame = player.Character.Head.CFrame*CFrame.new(0,player.Character.Head.Size.Y/2,0)*acc.Handle.AttachmentPoint.Value:inverse()
local weldo = Instance.new("Weld")
weldo.Part0 = player.Character.Head
weldo.Part1 = acc.Handle
local CJ = CFrame.new(player.Character.Head.Position)
local C0 = player.Character.Head.CFrame:inverse()*CJ
local C1 = acc.Handle.CFrame:inverse()*CJ
weldo.C0 = C0
weldo.C1 = C1
weldo.Parent = acc.Handle
acc.Parent = player.Character
end
end
end
model:Destroy()
--Game.StarterGui:SetCoreGuiEnabled("PlayerList", true)
player.PlayerGui:WaitForChild("MyGroup").M0.Visible = true
player.Character.Torso.Anchored = false
camera.CameraType = "Custom"
camera.CameraSubject = player.Character.Humanoid
tutorial.Parent = player.PlayerGui
script.Parent:Destroy()
end

script.Parent.Frame.Skip.MouseButton1Down:connect(function () script.Parent.Parent.Intro:Stop(); Skip() end)

for g = 1, 30 do
wait(1/30)
loading.TextTransparency = g/30
lbar.Parent.BackgroundTransparency = g/30
lbar.BackgroundTransparency = g/30
end
loading.Visible = false
lbar.Parent.Visible = false

wait(2)
for g = 1, 30 do
wait(1/30)
dualpoint.TextTransparency = (30 - g)/30
end
wait(1)
for g = 1, 30 do
wait(1/30)
presents.TextTransparency = (30 - g)/30
end
wait(3)
for g = 1, 30 do
wait(1/30)
dualpoint.TextTransparency = g/30
presents.TextTransparency = g/30
end

wait(1)

for g = 1, 420 do
wait(1/30)
camera.CoordinateFrame = CFrame.new(Lerp(trackstart.Position, trackend.Position, g/420), trackfocus.Position)
if g > 0 and g <= 90 then
local modg = g - 0
blackbottom.Position = UDim2.new(0,0,0.5 + modg/300)
blacktop.Position = UDim2.new(0,0,-0.5 - modg/300)
elseif g > 120 and g <= 150 then
local modg = g - 120
title.ImageTransparency = (30 - modg)/30
elseif g > 360 and g <= 390 then
local modg = g - 360
blackscreen.BackgroundTransparency = (30 - modg)/30
end
end

Skip()
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
27 Feb 2016 07:40 PM
er wrong script
Report Abuse
IosifStaIin is not online. IosifStaIin
Joined: 24 Nov 2014
Total Posts: 45
27 Feb 2016 07:41 PM
It's this script:

local loading = frame:WaitForChild("Loading")
local blackscreen = frame:WaitForChild("Black")
local blacktop = frame:WaitForChild("BlackTop")
local blackbottom = frame:WaitForChild("BlackBottom")
local title = frame:WaitForChild("Title")
local dualpoint = frame:WaitForChild("Dualpoint")
local presents = dualpoint:WaitForChild("Presents")

local trackfocus = Game.Workspace.CameraTrack.TrackFocus
local trackstart = Game.Workspace.CameraTrack.TrackStart
local trackend = Game.Workspace.CameraTrack.TrackEnd
local camera = Game.Workspace.CurrentCamera

player.Character:WaitForChild("NewHead")
player:WaitForChild("playerstats")
script.Parent.Parent.Intro:Play()
script.Parent.Frame.Skip.Visible = true

camera.CameraType = "Scriptable"
camera.CameraSubject = nil
camera.CoordinateFrame = CFrame.new(trackstart.Position, trackfocus.Position)
local gmult = Game.Workspace:FindFirstChild("Anchored Objects"):FindFirstChild("Trees/Foliage"):FindFirstChild("GM").Value

function Lerp(val1, val2, dist)
return val1*(1-dist) + val2*dist end

local roads = Game.Workspace:FindFirstChild("Anchored Objects").Plates.Roads:GetChildren()
model = Instance.new("Model")
model.Name = "FakeRoads"
model.Parent = camera

for y = 1, #roads do
local fakeroad = roads[y]:clone()
fakeroad.CFrame = roads[y].CFrame + Vector3.new(0,0.2,0)
fakeroad.Parent = model
end

model:Destroy()
--Game.StarterGui:SetCoreGuiEnabled("PlayerList", true)
player.PlayerGui:WaitForChild("MyGroup").M0.Visible = true
player.Character.Torso.Anchored = false
camera.CameraType = "Custom"
camera.CameraSubject = player.Character.Humanoid
tutorial.Parent = player.PlayerGui
script.Parent:Destroy()
end

script.Parent.Frame.Skip.MouseButton1Down:connect(function () script.Parent.Parent.Intro:Stop(); Skip() end)

for g = 1, 30 do
wait(1/30)
loading.TextTransparency = g/30
lbar.Parent.BackgroundTransparency = g/30
lbar.BackgroundTransparency = g/30
end
loading.Visible = false
lbar.Parent.Visible = false

wait(2)
for g = 1, 30 do
wait(1/30)
dualpoint.TextTransparency = (30 - g)/30
end
wait(1)
for g = 1, 30 do
wait(1/30)
presents.TextTransparency = (30 - g)/30
end
wait(3)
for g = 1, 30 do
wait(1/30)
dualpoint.TextTransparency = g/30
presents.TextTransparency = g/30
end

wait(1)

for g = 1, 420 do
wait(1/30)
camera.CoordinateFrame = CFrame.new(Lerp(trackstart.Position, trackend.Position, g/420), trackfocus.Position)
if g > 0 and g <= 90 then
local modg = g - 0
blackbottom.Position = UDim2.new(0,0,0.5 + modg/300)
blacktop.Position = UDim2.new(0,0,-0.5 - modg/300)
elseif g > 120 and g <= 150 then
local modg = g - 120
title.ImageTransparency = (30 - modg)/30
elseif g > 360 and g <= 390 then
local modg = g - 360
blackscreen.BackgroundTransparency = (30 - modg)/30
end
end

Skip()
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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