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

can't move dummy to player. help?

Asked by 3 years ago

hi, i'm trying to make a Dummy move its position close to the local player.

here's the localscript i made, but it doesnt seem to work.

local TS = game:GetService("TweenService")
local root = workspace.Dummy.HumanoidRootPart

game.ReplicatedStorage.Move.OnClientEvent:Connect(function()
    TS:Create(root, TweenInfo.new(5, Enum.EasingStyle.Sine, Enum.EasingDirection.InOut),{Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position}):Play()
end)

can anyone help me?

Answer this question