-
What do you want to achieve?
I want an object to to tween shortly after a remote event is fired. -
What is the issue? Include screenshots / videos if possible!
I don’t understand why I’m getting this error.
-
What solutions have you tried so far?
I’ve looked on the dev forum for solutions, but none exist.
left.OnServerEvent:Connect(function(plr, pow)
local info = TweenInfo.new(0.2, Enum.EasingStyle.Linear, Enum.EasingDirection.InOut, 0, false, 0)
if tool:FindFirstChild("WeldConstraint") and db then
local p = {"A", "B"} -- These gets overwritten into the part names.
tool:FindFirstChild("WeldConstraint"):Destroy()
local Des = game.Workspace.BallPositions:GetDescendants()
for i, v in pairs(Des) do
if v:isA("BasePart") then
p[i] = v
end
end
haveBall.Value = false
db = false
for i, v in pairs(p) do
-- The Problem Code (start) --
local part = ballPosition[p[i]]
-- The Problem Code (end) --
local Tween1 = TS:Create(part, info, ballPosition[p[i + 1]].Position)
Tween1:Play()
wait(0.2)
end
end
wait(3)
db = true
end)
Anything Helps.