I have already made a script it works but not well.The Ball comes out but it doesnt go forward it goes to the air until its aroud the level of my head and it disapears. the Projectile (Ball) that is shoots is not achored and is in replicated storage in Folder named Wandstuff. IN the Part(The ball) is Vanish Script and BodyVelocity. If you can help me it would be awesome
This is the script in Starter Packs, Magic wand tools LocalScript Called MAIN SCRIPT
wait(3) local Player = game.Players.LocalPlayer local mouse = Player:GetMouse()
function Clicked(mouse) script.UseWand:FireServer() end
function ConnectFunction(mouse) mouse.Button1Down:Connect(Clicked) end
script.Parent.Equipped:Connect(ConnectFunction)
And this is the one Inside The Local Script MAIN SCRIPT Normal script
cd = 0
script.Parent.UseWand.OnServerEvent:Connect(function(Player) if cd == 0 then cd = 1 local Part = game.ReplicatedStorage.WandStuff.Part:Clone() Part.CFrame = script.Parent.Parent.Handle.CFrameCFrame.new(0,-5,0) Part.Parent = workspace local BV = Instance.new("BodyVelocity") BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge) BV.Velocity = Player.Character.HumanoidRootPart.CFrame.lookVector80 BV.Parent = Part Part.Parent = workspace wait() cd = 0 end end)