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

I was wondering how I could "Throw" a part. How can I do that?

Asked by 4 years ago
local Tool = script.Parent
local Baseball = Tool.Handle

function plant()
    local baseball2 = Baseball:Clone() 
    local spawnPos = Baseball.Position
    baseball2.Position = Vector3.new(spawnPos.x, spawnPos.y, spawnPos.z)
    baseball2.Anchored = false
    baseball2.Parent = workspace
    baseball2.Size = Baseball.Size
    baseball2.Shape = 0
    baseball2.BottomSurface = 0
    baseball2.TopSurface = 0
    baseball2.Reflectance = 0
    baseball2.Name = "TimeBomb"
    baseball2.Locked = true
    baseball2.CanCollide = true
    baseball2.Transparency = 0
     -- How can I make the part go up in the air.
end
0
There are many ways (tweening, vectorforces, bodyforces, velocity) could you go into further detail on how it would ideally look? Benbebop 1049 — 4y
0
Yes I can send a link to what it will look like. Just a sec. I will make a picture Nistrict 44 — 4y
0
Pic of what I was saying. https://gyazo.com/59d48eb9394f8ec8580773fe424233c5 Nistrict 44 — 4y

1 answer

Log in to vote
1
Answered by
nc2r 117
4 years ago
Edited 4 years ago
local Velocity = Instance.new("BodyVelocity", baseball2)
Velocity.Velocity = Vector3.new(100, 50, 0)
Ad

Answer this question