local thingcrush = script.Parent.Parent.Parent.Parent.Data.Crushing.Value
local toggle = false
local speed = script.Parent.Parent.Parent.Parent.Data.Speed.Value
local TweenServ = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(speed,Enum.EasingStyle.Linear,Enum.EasingDirection.Out,0,true,0)
local goal = {}
goal.Position = Vector3.new(-53.525, 5.15, -28.659)
goal.Size = Vector3.new(2.311, 2.045, 2.095)
goal.Orientation = Vector3.new(0, -161.35, 90)
local part = script.Parent.Parent.Parent.Parent.Upgrades.CrusherL1
function Unachor(plr)
if plr.Name == script.Parent.Parent.Parent.Parent.Data.Owner.Value then
local object = script.Parent.Parent.Parent.Box.ObjectCrushing:FindFirstChild(thingcrush)
local tween = TweenServ:Create(part, tweenInfo, goal)
tween:Play()
wait(speed - 0.8)
for _,v in pairs (object:GetChildren()) do
if v:IsA("Part") then
v.Anchored = false
end
end
end
end
script.Parent.MouseClick:connect(function(plr)
if toggle == false then
if speed == 0 then
plr:Kick("vOucH fOr COnTribUtIoN, You have been Kicked.")
end
toggle = true
Unachor(plr)
toggle = false
end
end)
So the tweening is going up instead of down (gifs below) anyone know why?

4 comments
http://robloxdev.com/articles/Writing-Clean-Code
I'll clean it once I'm done.
Also that link is dead.
Invert number? , I think Red Handle is 'X' axis. Can't remember :c