Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[Solved] Tween glitching Part randomly?

Asked by
Elixcore 1337 Moderation Voter
4 years ago
Edited 4 years ago

GIF OF PROBLEM

    local ss = game.ServerStorage.models:WaitForChild("sandstorm"):Clone()
    local _, position = conv:ray(plr.Character.HumanoidRootPart.Position + Vector3.new(0,5,0), Vector3.new(hit.p.X, plr.Character.HumanoidRootPart.Position.Y + 5, hit.p.Z), 100, game)
    ss.Position = plr.Character.HumanoidRootPart.Position + Vector3.new(0,5,0) + plr.Character.HumanoidRootPart.CFrame.lookVector * 5
    local tween = conv:tween(ss, {Position = position}, 4)
    ss.Parent = workspace
    tween:Play()

to get things out of the way: part is massless, not anchored, not collidable. hit is mouse.hit ray is between hrp and mouse with hrp's Y tween is for part, changing it's position to the one obtained by the ray and moved within 4 seconds. I have no clue what is glitching it.

if there are any additional questions I am online for the next few minutes.

1
try anchoring it should fix it Fad99 286 — 4y
0
it will not rotate if I anchor it because of rotVelcoity Elixcore 1337 — 4y
0
if i do anchor it, however, it will not glitch anymore. Elixcore 1337 — 4y
1
instead of using RotVelocity maybe you can use CFrame.Angles? Fad99 286 — 4y
View all comments (2 more)
0
Ahah, you said that right after I did it, I was about to update this post saying that it works well, thanks for your help. Elixcore 1337 — 4y
0
np Fad99 286 — 4y

Answer this question