Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Spawning Script
- local ServerStorage = game:GetService("ServerStorage")
- local RS = game:GetService("RunService")
- local WSP = game:GetService("Workspace")
- local Live = WSP:WaitForChild("Live")
- local TweenService = game:GetService("TweenService")
- function sub(...)
- coroutine.wrap(...)()
- end
- local RandomizedColor = {
- "Alder",
- "Black"
- }
- while wait(math.random(10, 20)) do
- local HollowSpawns = math.random(1,39)
- if not workspace.Live:FindFirstChild("Hollow"..HollowSpawns) then
- local tppart = workspace.World.HollowSpawns["Part"..HollowSpawns]
- local Garganta = game.ServerStorage.Assets.Garganta:Clone()
- Garganta.Parent = workspace.FX
- Garganta.CFrame = tppart.CFrame * CFrame.new(0,100,0)
- local GoalSize = Garganta.Size
- local GoalCFrame = Garganta.CFrame
- Garganta.Size = Vector3.new(24, 0, 0.05)
- game.Debris:AddItem(Garganta,5)
- local Sound = script.GargantaSound:Clone()
- Sound.Parent = Garganta
- Sound.Pitch = 1.15 * math.random(.9, 1.11)
- Sound:Play()
- game.Debris:AddItem(Sound, Sound.TimeLength)
- delay(.1,function()
- Garganta.Transparency = 0
- TweenService:Create(Garganta, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
- Size = Vector3.new(23.3, 12.471, 0.05),
- CFrame = GoalCFrame --* CFrame.new(0,1.5,0)
- }):Play()
- wait(1)
- local hollow = game.ServerStorage.HollowMobs["Hollow"..math.random(1,3)]:Clone()
- hollow.Name = "Hollow"..HollowSpawns
- hollow.Parent = workspace.Live
- hollow:SetPrimaryPartCFrame(tppart.CFrame*CFrame.new(0,100,0))
- local PickedColor = BrickColor.new(RandomizedColor[math.random(1, #RandomizedColor)])
- sub(function()
- for i,v in pairs(hollow:GetChildren()) do
- if v:IsA("BasePart") and v.Name ~= "HumanoidRootPart" then
- v.BrickColor = PickedColor
- end
- end
- end)
- end)
- delay(3,function()
- TweenService:Create(Garganta, TweenInfo.new(1, Enum.EasingStyle.Linear, Enum.EasingDirection.In), {
- Size = Vector3.new(23.3, .05, 0.05),
- CFrame = GoalCFrame --* CFrame.new(0,1.5,0)
- }):Play()
- end)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement