Just a shot in the dark on the lag but maybe its the debounce
Hello, I just would like to tell you, body velocity is now depreceated. Use Linear Velocity instead! With an attachment and linear velocity you can get the same result as body velocity.
Uhh wdym? i’m not using any debounce rn
I don’t know how to use Linear velocity, i watched a tutorial, tried it and it didn’t work too. and how i would go about using that with lookVector?
I believe you need to use a debounce.
If u mean that, the problem happens because you spam it, i did it only one time and it didn’t work
Okay great question (Also I’m pretty sure lookVector is depreceated lol)
local Attachment = Instance.new("Attachment")
Attachment.Parent = MagmaModel.PrimaryPart
local LinearVelocity = Instance.new("LinearVelocity")
LinearVelocity.VectorVelocity = HumanoidRootPart.CFrame.LookVector * 100
LinearVelocity.Attachment0 = Attachment
LinearVelocity.Parent = Attachment --It's always good to put .Parent at the very end for performance reasons
Hopes this helps!
Can you post your revised script of the one shown in your video
This is what it happens with your code:
If you don’t mind can you make a file I think it would be easier. Also I think @RMofSBI can help you the most.
This is the entire code:
-- // Variables \\ --
local RemoteEvent = script.Parent
local TweenService = game:GetService("TweenService")
local Debris = game:GetService("Debris")
local Debounce = false
RemoteEvent.OnServerEvent:Connect(function(player, AbilityModule)
-- // More variables...
local Character = player.Character
local Humanoid = Character:FindFirstChild("Humanoid")
local HumanoidRootPart = Character:FindFirstChild("HumanoidRootPart")
---------------------------------------------
-- // Functionality \\ --
if Debounce == false then
local MagmaModel = script.Parent.VFX.FistVFX:Clone()
MagmaModel.Parent = game.Workspace
MagmaModel.PrimaryPart.CFrame = HumanoidRootPart.CFrame * CFrame.new(0,3,-10) * CFrame.Angles(0,math.rad(90),0)
local Attachment = Instance.new("Attachment")
Attachment.Parent = MagmaModel.PrimaryPart
local LinearVelocity = Instance.new("LinearVelocity")
LinearVelocity.VectorVelocity = HumanoidRootPart.CFrame.LookVector * 100
LinearVelocity.Attachment0 = Attachment
LinearVelocity.Parent = Attachment
local MagmaModelChildrens = MagmaModel:GetChildren()
local TweenInfo1 = TweenInfo.new(
0.5,
Enum.EasingStyle.Quad,
Enum.EasingDirection.InOut,
-1,
true,
0
)
for i,v in pairs(MagmaModelChildrens) do
if v:IsA("BasePart") then
local Goal = {
Size = v.Size + Vector3.new(0.5,0.5,0.5)
}
local TweenSizeAnimation = TweenService:Create(v,TweenInfo1,Goal):Play()
end
end
end
end)
Nice I looked at the name and it’s your fix VFX??? Looks nice btw!
Yea i’m learning blender. Uhh you can look at the scripts in StarterPack
So after investigating I realized that the problem isn’t the linear velocity. When I copied and pasted the object it works fine it moved. So something is holding it back.
All the parts are welded to the Part2 (the primary part) and aren’t anchored, you can go check the properties, maybe that’s the problem??
Ahaha! I removed the tween and it moved!
Ohhhhhh nice, but i need the tween Also can you show me the code you modified?
If I can get it right then I should make it so it doesn’t affect it.
What are you using the tween for? Sorry im mobile and limited at the moment.