Hey everyone, recently I made a noob that “mines” a rock constantly with this script:
wait()
local TweenService = game.TweenService
while true do
TweenService:Create(script.Parent,TweenInfo.new(1),{Orientation = Vector3.new(-50,180,0)}):Play()
wait(1)
TweenService:Create(script.Parent,TweenInfo.new(1),{Orientation = Vector3.new(0,180,0)}):Play()
end
It never seemed to work, and would just do this to the noob:
Anything is appreciated, thanks!
SPEEEEEEEEN
Where’s the script parented from? The Noob’s Model
or the HumanoidRootPart
?
HumanoidRootPart
Also here’s how it’s welded and stuff:

My guess is that since the RootPart
is welded to everything, it’s gonna affect every part of the model as well (Plus it seems to be moving sideways as well so you might’ve tweened it the wrong direction)
I think I’d just make an animation instead, and loop it so that it plays fairly well
I don’t know how I didn’t think of making an animation for it…
1 Like
LOL it’s fine, I can also give you a sample code to play the animation as well so that it can work:
local Animation = Instance.new("Animation")
Animation.AnimationId = "rbxassetid://something" --Just change "something" to the ID when you publish the animation
local Animator = script.Parent.Humanoid:WaitForChild("Animator")
Animator:LoadAnimation(Animation)
Animation:Play()
Animation.Looped = true
2 Likes