#how i do this

7 messages · Page 1 of 1 (latest)

cursive spruce
#

so im trying to make a domain expansion but i need a sphere to spawn and clone itself from replicated storage and spawn to the humanoidrootpart 0,-2,0 and expand

#

i alr got the cloning part down

#

but like idk how to make it spawn at the humanoidrootpart and expand to a size but i dont want it to just go from immediate small to big i want it so go at a smooth speed like its grows

#

this is my script rn

#

game.ReplicatedStorage.DomainEvent.OnServerEvent:Connect(function(plr)

local plr = game.Players.LocalPlayer
local sphere = game.ReplicatedStorage.DomainStartUp:Clone()
sphere.Parent = workspace
sphere.CanCollide = false
sphere.Anchored = true
sphere.plr = plr.Character:WaitForChild("HumanoidRootPart").Cframe * CFrame.new(0,-2,0)

local TweenService = game:GetService("TweenService")

local tweenInfo = TweenInfo.new(
    4, --Time
    Enum.EasingStyle.Bounce, --Easing style
    Enum.EasingDirection.Out, --Easing direction
    0, --repeat count
    false, --Reverses
    0--delaytime
)

local tween = TweenService:Create(sphere, tweenInfo, {Size = Vector3.new(55, 55, 5)})
tween:Play()

end)

#

help me fix it

leaden osprey
#

@cursive spruce what errors did it show