Hey! For some reason I’ve been trying to make my “VFX” or the swing effect follow the blade direction of my sword but can’t get it down. How would I go on about fixing this?
My sword:
tes - Roblox Studio (gyazo.com)
What I want it to look like:
Roblox Studio | Sword Slash Effect - YouTube
My Code
script.Parent.IsSwinging:GetPropertyChangedSignal("Value"):Connect(function()
if script.Parent.IsSwinging.Value == true then
local Slash = script.Slash:Clone()
Slash.Parent = script.Parent
Slash.CFrame = script.Parent.CFrame * CFrame.Angles(0,math.rad(90),0)
TweenRotation(Slash,-190,.3,Enum.EasingStyle.Quad)
PlayFlipbook(Slash.Decal,script.Flipbook)
Slash:Destroy()
end
end)
script.Parent would be the “Sword” itself, the sword is just 1 entire object by the way