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

How do I get the part to move? [closed]

Asked by 7 years ago

How do I get the part to either move to where I click, sit in the center of my Torso or even just stay in my hand? Any help would be great.

tool = script.Parent
part = script.Parent.Part
handle = script.Parent.Handle

function Use()
part.CFrame = CFrame.new(handle.Position)
part.Shape = "Ball"
part.Transparency = 0

wait(0.2)

part.BrickColor = BrickColor.new("Really black")

    for i=1,10 do

        wait(0.5)
        part.Anchored=true
        part.Size = part.Size + Vector3.new(5,5,5)
        wait(1)
        part.Size = part.Size - Vector3.new(5,5,5)
    end
    wait(5)
end

tool.Activated:connect(Use)
0
Would you like a moving platform? Or just a brick that doesn't automatically move? RobloxEmotes 3 — 7y

Closed as Non-Descriptive by antonio6643

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?