local Clickd = script.Parent.ClickDetector
local Button = script.Parent
local RS = game:GetService("ReplicatedStorage")
local EndFolder = RS:WaitForChild("End")
local Pillar = EndFolder.Pillar
local Radius = 250
local Baseplate = game.Workspace.Baseplate
local X -- nil value
local Y = 0
local Z -- nil value
Clickd.MouseClick:Connect(function()
print("Worked!")
local ClonedPillar = Pillar:Clone()
ClonedPillar.Parent = workspace
ClonedPillar.Position = Vector3.new(X,52.171,Z)
Baseplate.BrickColor = BrickColor.new("Brick yellow")
Baseplate.Material = Enum.Material.Slate
end)
while true do
wait()
X = math.random(-250,Radius)
Z = math.random(-250,Radius)
end
local TweenService = game:GetService("TweenService")
local TweeningInfo = TweenInfo.new(
5, -- Length
Enum.EasingStyle.Quad, -- EasingStyle
Enum.EasingDirection.Out, -- EasingDirection
0, -- Repeat count
false, -- Repeatable
1.5 -- Delay
)
local PartProperties = {
Position = Vector3.new(0,250,0)}
local Tween = TweenService:Create(Pillar,TweeningInfo,PartProperties)
for i, v in pairs(game.Workspace:GetChildren()) do
if v.Name == "Pillar" then
Tween:Play()
end
end
When the cloned Pillar appears in workspace, why does it not slowly levitate? It just appears on the baseplate and the tween does not play

2 comments
It did not work, no errors :C
I forgot to play the Tween lol, should work now