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

Bodyvelocity help, parts not floating upward when script activates?

Asked by 8 years ago

Alright so basically I put bodyvelocity in a part so I can make the part float upward but it didn't work I even tried raising the force and velocity any idea why this isn't working? Also no errors in output. here is the code

01p = script.Parent.Parent
02c = p.Character
03mouse = p:GetMouse()
04hold = false
05 
06function charge(key)
07    key:lower()
08    if key == "z" then
09        hold = true
10        while hold == true do
11            wait(3)
12            h = Instance.new("Part",game.Workspace)
13            h.Size = Vector3.new(math.random(1,2),.35,math.random(1,5.5))
14            h.BrickColor = BrickColor.new("Pastel brown")
15            h.TopSurface = "Smooth"
View all 27 lines...

Answer this question