Having trouble getting an ice move to work in an actual roblox game rather then studio?
Asked by
8 years ago Edited 8 years ago
It only spawns in the middle of the map, instead of going up then
shooting out
01 | plar = game.Players.LocalPlayer |
03 | mouse = plar:GetMouse() |
09 | elseif key = = "r" then |
11 | local Ice = Instance.new( "Part" ) |
14 | Ice.TopSurface = "Smooth" |
15 | Ice.BottomSurface = "Smooth" |
16 | Ice.BrickColor = BrickColor.new( "Pastel light blue" ) |
18 | Ice.Parent = workspace |
19 | Ice.CFrame = char.Torso.CFrame * CFrame.new( 0 ,- 5 ,- 5 ) |
20 | local BV = Instance.new( "BodyVelocity" ) |
21 | BV.maxForce = Vector 3. new( math.huge , math.huge , math.huge ) |
22 | BV.velocity = plar.Character.Torso.CFrame.upVector * 80 |
25 | BV.velocity = plar.Character.Torso.CFrame.lookVector * 80 |
29 | mouse.KeyDown:connect(okd) |