Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Having trouble getting an ice move to work in an actual roblox game rather then studio?

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)

2 comments

0

Is this a localscript? Is FE enabled? If FE is enabled, I believe you cannot do this with a localscript.

0

Filtering is not enabled.

1 answer

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

This discussion is preserved as it was. New answers, comments, and votes are closed.