of     1   

Luxurize
#182255573Saturday, January 23, 2016 9:11 PM GMT

I need a tool to shoot out an object which will fly towards my mouses' location. I have this so far, and I'm no good with CFrame -- it's one of my weakness' in Lua. local Tool = script.Parent local Shooter = script.Parent.Shooter local Fireball = game.ServerStorage.fireball local FireballClone = Fireball:Clone() local Player = game.Players.LocalPlayer local Mouse = Player:GetMouse() local Debounce = false local CoolDown = 3 Mouse.Button1Down:connect(function(Click) print("Clicked") if Debounce == false then Debounce = true local F = Fireball:Clone() local BT = Instance.new("BodyThrust") BT.Parent = F BT.Force = Vector3.new(Mouse.Target) F.Parent = game.Workspace local SHP = Shooter F.CFrame = CFrame.new(SHP.Position, SHP.CFrame.lookVector * 100) F.Anchored = false F.Velocity = Shooter.CFrame.lookVector * 100 wait(CoolDown) F:Destroy() Debounce = false end end) “Insane isn't always black or white. We're all pathological, in our own ways.”
Luxurize
#182255856Saturday, January 23, 2016 9:16 PM GMT

Egh, there needs to be an easier way to learn how to CFrame. It's such a pain. “Insane isn't always black or white. We're all pathological, in our own ways.”
Luxurize
#182257005Saturday, January 23, 2016 9:32 PM GMT

Ugh, anyone? “Insane isn't always black or white. We're all pathological, in our own ways.”
TheScripterGeek
#182257079Saturday, January 23, 2016 9:33 PM GMT

You'd get the mouse target and then make a body velocity or force in that direction. That will most likely work since mouse.target is a vector3
Lord_Narwhal
#182257380Saturday, January 23, 2016 9:37 PM GMT

you can use mouse.Target or mouse.Hit.p
ray_revenge
#182259013Saturday, January 23, 2016 10:02 PM GMT

F.CFrame = CFrame.new(SHP.Position,Mouse.Hit.p) F.Velocity = (Mouse.Hit.p-SHP.Position) * 100 Also you need to move "fireball" to ReplicatedStorage because you are accessing ServerStorage from a localscript (or you are using a server script, which is wrong)

    of     1