--tweens the aura up and down as well as rotate it
--variables
local tweenServ = game:GetService("TweenService")
local upPosition = script.Parent.Position + Vector3.new(0, 3, 0)
local downPosition = script.Parent.Position
--creating movement tween
local tweenInfUp = TweenInfo.new(
3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.InOut,
-1,
true,
0
)
local tweenUp = tweenServ:Create(script.Parent, tweenInfUp, {Position = upPosition})
tweenUp:Play()
--rcreating rotation tween
local tweenInfRotate = TweenInfo.new(
3,
Enum.EasingStyle.Linear,
Enum.EasingDirection.In,
-1,
false,
0
)
local tweenRotate = tweenServ:Create(script.Parent, tweenInfRotate, {Orientation = Vector3.new(0, 360, 0)})
tweenRotate:Play()
I have this script inside of the handle in an accessory. When I play the game, it doesn’t move- but when I switch to the server, it works fine.
Notes:
-The accessory is inside of a humanoid
-The humanoid is not always a member of workspace, and ends up being cloned into it (regardless it still works on the server and not the client)