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

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

plar = game.Players.LocalPlayer
char = plar.Character
mouse = plar:GetMouse() 
charge = false
function okd(key)
    key = key:lower()
if charge == true then 
    return 
    elseif key == "r" then
    charge = true
        local Ice = Instance.new("Part")
        Ice.Shape = "Ball"
        Ice.CanCollide = true
        Ice.TopSurface = "Smooth"
        Ice.BottomSurface = "Smooth"
        Ice.BrickColor = BrickColor.new("Pastel light blue")
        Ice.Material = "Ice"
        Ice.Parent = workspace
        Ice.CFrame = char.Torso.CFrame * CFrame.new(0,-5,-5)
        local BV = Instance.new("BodyVelocity")
        BV.maxForce = Vector3.new(math.huge, math.huge, math.huge)
        BV.velocity = plar.Character.Torso.CFrame.upVector * 80
        BV.Parent = Ice
        wait(.1)
        BV.velocity = plar.Character.Torso.CFrame.lookVector * 80
        charge = false
end
end
mouse.KeyDown:connect(okd)
0
Is this a localscript? Is FE enabled? If FE is enabled, I believe you cannot do this with a localscript. FrostTaco 90 — 8y
0
Filtering is not enabled. BossVsLegend -4 — 8y

1 answer

Log in to vote
0
Answered by 8 years ago

I think its because you didn't set the position of the Ice move.

Ad

Answer this question