Skip to content

Development-Cat-RobloxDev/Roblox_OneLine_TweenModule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Roblox_OneLine_TweenModule

その名の通り、Roblox内でのTweenを一行で済ませるModuleです。

どのように使う?

このように使います(実際の例)↓

local ServerScriptService = game:GetService("ServerScriptService")
local CustomEasingModule = require(ServerScriptService:WaitForChild("CustomEasingModule"))

CustomEasingModule.NewTween(Part,"Size",Vector3.new(10,10,10),Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,3)

どこに置いてもよろしいです〜 Server・Clientの両方で使えます。 CustomEasingModule.NewTween()でTweenを作成、 CustomEasingModule.NewTweenPlay()で作成したTweenを再生、 CustomEasingModule.NewTweenAndPlay()で、作成から再生まで一括でします。

記述方法

()の中に、"Instance, PropertiesName, PropertiesGoal, EasingStyle, EasingDirection, Repeat, Duration" として書きます、あとは慣れですね〜

最後に

MITで使えるので、ご自由にお使いください〜

About

RobloxでのTweenの操作を、Module取得以外の一行で済ませるModuleです。

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages