Hi!
How i can make a part moves his X position with easing??
Pleas title you posts with a description that describes your issue. “Someone can help me” or “my script doesn’t work” don’t tell us what your problem is.
Anchored Parts can be moved with Tweens and hte EasingStyle can be selected there.
The scripting Support forum is used for asking people to help with scripts that you’ve already tried making. It isn’t for asking someone to make you a script.
local mouse = script.Parent
local part = mouse.Parent
mouse.MouseHoverEnter:Connect(function()
part.Position = Vector3.new(71, 21.929, -169.428)
wait(0.1)
part.Position = Vector3.new(72, 21.929, -169.428)
wait(0.1)
part.Position = Vector3.new(73, 21.929, -169.428)
wait(0.1)
part.Position = Vector3.new(74, 21.929, -169.428)
wait(0.1)
part.Position = Vector3.new(75, 21.929, -169.428)
wait(0.1)
part.Position = Vector3.new(76, 21.929, -169.428)
wait(0.1)
part.CanCollide = false
end)
this is code also not working
I want to be more smooth like easing and work
If you put three backticks (```) before and after your script when you copy it into your post it will be automatically formatted to look correct.
What is the script inside? local mouse = script.parent doesn’t tell us where the script is in your game.
If the script isn’t working then there should be a warning in the Output Window in Studio. If you don’t have it open then go into the View tab at the top of Studio and select it. It will give error messages that tell you what’s going wrong with your script.
A part.Position is just a number value, not a Vector3 value.
Hey! Can you please put this into a code block for readability?
```lua
```
local TweenService = game:GetService("TweenService")
local Mouse = script.Parent
local part = script.Parent.Parent
local goal = {}
goal.Position = Vector3.new(1000, 21.929, -169.428)
local tweenInfo = TweenInfo.new(5,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0)
Mouse.MouseHoverEnter:Connect(function()
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
end)
i want to make tween and smooth but its not working
instead of tweening just use a loop
local mouse = script.Parent
local part = mouse.Parent
while wait(0.1) do
--if you choose to tween put it here
part.Position = Vector3.new(part.Position.X + 1, 21.929, -169.428)
end
if you choose to do it with the mouse thing i see in your other post, use this snippet:
local mouse = script.Parent
local part = mouse.Parent
mouse.MouseHoverEnter:Connect(function()
--do your tweening here
part.Position = Vector3.new(part.Position.X + 1, 21.929, -169.428)
end)
dont forget to use a local script if your using the mouse hover method
And @librashards,
If you use MouseHoverEnter that only works with ClickDetectors, so you’d have to put a ClickDetector in each Part.
What exactly isn’t working? You need to provide more details.
local tweens = game:GetService("TweenService")
local players = game:GetService("Players")
local player = players.LocalPlayer
local mouse = player:GetMouse()
local part = Instance.new("Part")
part.Anchored = true
part.Parent = workspace
mouse.TargetFilter = part
mouse.Move:Connect(function()
local tween = tweens:Create(part, TweenInfo.new(0.5, Enum.EasingStyle.Linear), {Position = mouse.Hit.Position})
tween:Play()
end)
local TweenService = game:GetService("TweenService")
local Mouse = script.Parent
local part = script.Parent.Parent
local goal = {}
goal.Position = Vector3.new(1000, 21.929, -169.428) ---- This dont working
local tweenInfo = TweenInfo.new(5,Enum.EasingStyle.Quint,Enum.EasingDirection.Out,0,false,0)
Mouse.MouseHoverEnter:Connect(function() --- I think this function dont working.
local tween = TweenService:Create(part, tweenInfo, goal)
tween:Play()
end)
Is Mouse a click detector? Make sure it is.
Yeah. It is a click detector. And its not working
Well that exact script you posted is working fine for me.

How i can make as a local script?
You can’t, as it’s inside the workspace container.
move local tween = TweenService:Create(part, tweenInfo, goal)
outside of the event. So move it right above Mouse.MouseHoverEnter:Connect(function()
That wouldn’t change the script’s functionality, unless that recommendation is purely for performance purposes.
It would change the script’s functionality. You created it to get from (current pos) to goal in 5 seconds.
Then lets say during that 5 seconds you trigger the MouseHoverEnter event a second time. Then you create it to go from (current pos), which is now changed, to goal in 5 seconds. It would start moving much slower.
I’m guessing you edited the reply while I was replying/shortly after I replied.