I tried making a tween script for a portal but the tween didn't play script :
game.ReplicatedStorage.Event.Event:Connect(function()
local ts = game:GetService("TweenService")
local Portal = game.ReplicatedStorage.Portal:Clone()
Portal.Parent = workspace
Portal.Position = Vector3.new(math.random(-400,400),100,math.random(-400,400))
local tween = ts:Create(
Portal,
TweenInfo.new(3,Enum.EasingStyle.Bounce, Enum.EasingDirection.Out,0,false,0),
{Size = Vector3.new(60,60,60)}
)
tween:Play()
Portal:WaitForChild("portal"):Play()
wait(3)
local object = game.ReplicatedStorage.Objects:GetChildren()[math.random(1,#game.ReplicatedStorage.Objects:GetChildren())]:Clone()
object.Parent = workspace
object.Position = Portal.Position
game.ReplicatedStorage.ExplosionScript.Touched:Clone().Parent = object
wait(1)
local tween2 = ts:Create(
Portal,
TweenInfo.new(3,Enum.EasingStyle.Bounce, Enum.EasingDirection.In,0,false,0),
{Size = Vector3.new(0.1,0.1,0.1)}
)
tween2:Play()
end)
