task.wait(5)
local purple = game.ServerStorage.PurpleSphereVFX3:Clone()
purple.Parent = game.Workspace
purple:PivotTo(sphereVFX31["8"].CFrame)
local purpleSizeTweenInfo = TweenInfo.new(
2, -- Time animating
Enum.EasingStyle.Quad, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- Repitions
false, -- Reverse post tween?
0 -- Delay time
)
local purpleSizeTween1 = ts:Create(purple.Inner,purpleSizeTweenInfo,{Size=Vector3.new(4.28,4.28,4.28)})
purpleSizeTween1:Play()
local purpleSizeTween2 = ts:Create(purple.Outer1,purpleSizeTweenInfo,{Size=Vector3.new(5.74,5.77,5.75)})
purpleSizeTween2:Play()
local purpleSizeTween3 = ts:Create(purple.Outer2,purpleSizeTweenInfo,{Size=Vector3.new(5.74,5.77,5.75)})
purpleSizeTween3:Play()
local purpleSizeTween4 = ts:Create(purple.Outer3,purpleSizeTweenInfo,{Size=Vector3.new(7.11,8.18,3)})
purpleSizeTween4:Play()
local purpleSizeTween5 = ts:Create(purple.Outer4,purpleSizeTweenInfo,{Size=Vector3.new(6.17,6.68,6.77)})
purpleSizeTween5:Play()
local function waitUnanchor()
task.wait(0.5)
humanoidRootPart.Anchored = false
end
task.spawn(waitUnanchor)
local function purpleShootTween()
task.wait(1)
local purpleShootTweenInfo = TweenInfo.new(
5, -- Time animating
Enum.EasingStyle.Quad, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- Repitions
false, -- Reverse post tween?
0 -- Delay time
)
local purpleShootGoal = {
Position = humanoidRootPart.Position + humanoidRootPart.CFrame.LookVector * 1000
}
local purpleShootTween1 = ts:Create(purple.Inner, purpleShootTweenInfo, purpleShootGoal)
purpleShootTween1:Play()
local purpleShootTween2 = ts:Create(purple.Outer1, purpleShootTweenInfo, purpleShootGoal)
purpleShootTween2:Play()
local purpleShootTween3 = ts:Create(purple.Outer2, purpleShootTweenInfo, purpleShootGoal)
purpleShootTween3:Play()
local purpleShootTween4 = ts:Create(purple.Outer3, purpleShootTweenInfo, purpleShootGoal)
purpleShootTween4:Play()
local purpleShootTween5 = ts:Create(purple.Outer4, purpleShootTweenInfo, purpleShootGoal)
purpleShootTween5:Play()
end
task.spawn(purpleShootTween)
local RunService = game:GetService("RunService")
local purpleOverlapParameters = OverlapParams.new()
RunService.Heartbeat:Connect(function()
local purpleHitContents = workspace:GetPartBoundsInBox(purple.Inner.CFrame, purple.Inner.Size, purpleOverlapParameters)
local hits = {}
for i,v in pairs(purpleHitContents) do
local hit = v
if hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name then
if not hit.Parent.Humanoid:FindFirstChild(player.Name) then
return
end
hits[hit.Parent.Name] = true
hit.Parent:FindFirstChild("Humanoid"):TakeDamage(250)
wait(4)
hits[hit.Parent.Name] = false
end
end
end)
game.Debris:AddItem(sphereVFX31, 1)
game.Debris:AddItem(sphereVFX32, 1)
game.Debris:AddItem(purple, 10)
end)
thats part of the code used in the video