Trying a make a part float up and down
local AllDragons = {script.Parent.DragonC,script.Parent.DragonV,script.Parent.DragonX,script.Parent.DragonY,script.Parent.DragonZ}
local Upflat = script.Parent.DragonV
local TweenService = game:GetService("TweenService")
local Ftwwen = TweenInfo.new(
3.6,
Enum.EasingStyle.Cubic,
Enum.EasingDirection.Out,
3,
true,
.5
)
local partProp = {
CFrame = CFrame.new(Upflat.Position + Vector3.new(0,math.random-1,3),0);
Transparency = 0.5
}
local tween = TweenService:Create(Upflat,Ftwwen,partProp)
tween:Play()

1 comment
You need to execute the 'random' function of the mathematics class in order to actually retrieve a PRNG number, otherwise you're just referring to the method itself.