Skip to content

Instantly share code, notes, and snippets.

@lamarmarshall
Created January 6, 2025 00:28
Show Gist options
  • Save lamarmarshall/1e0851657494a0b3947466be379f31a2 to your computer and use it in GitHub Desktop.
Save lamarmarshall/1e0851657494a0b3947466be379f31a2 to your computer and use it in GitHub Desktop.
Roblox, lua, tween
local part = script.Parent
local tweenService = game:GetService("TweenService")
local tweenInfo = TweenInfo.new(3.0, Enum.EasingStyle.Linear, Enum.EasingDirection.Out, -1, true, 0.2)
local tween = tweenService:Create(part, tweenInfo, {Position = part.Position + Vector3.new(0, 20, 0)})
tween:Play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment