Hello, I have came across an issue when making a plugin. First, you make an animation. Then, you export it. Here is the script my plugin exported, which is flashing rainbow before playing the animation. (there are no background scripts running to effect this part).
--DO NOT EDIT UNLESS YOU KNOW WHAT YOU ARE DOING.
--Script generated with PartAnimator by FunFoxRR
local ts = game:GetService("TweenService");local obj = script.Parent.Parent.Parent.Parent;
script.Parent.Play.Event:Connect(function()
--for i,v in script.Parent.Parent.start_moves:GetChildren() do print(v.Name..": "..tostring(v.Value)); obj[v.Name] = v.Value end;
local t1 = ts:Create(obj, TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.In), {["CFrame"] = CFrame.new(-36.4500008, 6.50000381, 21.699995, 1, 0, 0, 0, 1, 0, 0, 0, 1),["Color"] = Color3.new(0.827451, 0.211765, 0.219608),});t1:Play();t1.Completed:Wait();--Keyframe 1
local t2 = ts:Create(obj, TweenInfo.new(1, Enum.EasingStyle.Back, Enum.EasingDirection.In), {["Color"] = Color3.new(0.647059, 0, 0.0117647),["CFrame"] = CFrame.new(-36.4500008, 6.50000381, 21.2999954, 1, 0, 0, 0, 1, 0, 0, 0, 1),});t2:Play();t2.Completed:Wait();--Keyframe 2
script.Parent.Finished:Fire()
end)
And there is the video to what is happening:
Thanks to any and all help!