Code: Local Script:

local Player = script.Parent.Parent.Parent

local plr = game.Players.LocalPlayer

local char = workspace:WaitForChild(plr.Name)

local hum = char:WaitForChild("Humanoid")

local anim = Instance.new("Animation")

local animid = "rbxassetid://2836102060"

anim.AnimationId = animid

local mouse = Player:GetMouse()

local UIS = game:GetService("UserInputService")

local Debounce = false

local ep = false

local mouse = game.Players.LocalPlayer:GetMouse()

  

wait(4)

local remote = script.Parent.Fired

UIS.InputBegan:Connect(function(Input, IsTyping)

if IsTyping then return end

if Player.MakikoStoreHouse.FireMakiko.Value == 1 then

if Input.KeyCode == Enum.KeyCode.E then

if Debounce == true then return end

Debounce = true

if Player.Data.Level.Value >= 10 and Player.Data.LeftMaina.Value >= 30 then

remote:FireServer(mouse.Hit)

local play = hum:LoadAnimation(anim)

play:Play()

script.Parent.Parent.Parent.Data.LeftMaina.Value = script.Parent.Parent.Parent.Data.LeftMaina.Value - 30

end

wait(1.5)

Debounce = false

end

end

end)

Script:

wait(4)

--repeat wait(1) until game.StarterPlayer.StarterPlayerScripts.PunchScript.Damage ~= nil

script.Parent.Fired.OnServerEvent:Connect(function(Player, Mouse)

--script.Parent.Parent.Parent.Data.LeftMaina.Value = script.Parent.Parent.Parent.Data.LeftMaina.Value - 30

if script.Parent.Parent.Parent.Data.Level.Value >= 5 then

script.Parent.Parent.Parent.Data.Tries.Value = script.Parent.Parent.Parent.Data.Tries.Value + 30

local AlreadyTouched = false

local Character = Player.Character or Player.CharacterAdded:wait()

local Fireball = game.ReplicatedStorage.ApoyBilog:Clone()

Fireball.Parent = Character

Fireball.CFrame = Character.UpperTorso.CFrame*CFrame.new(2.3, 0 , -3)

local BV = Instance.new("BodyVelocity")

BV.MaxForce = Vector3.new(math.huge,math.huge,math.huge)

BV.Velocity = Mouse.lookVector*100

BV.Parent = Fireball

In the scripts above I was trying to create a fireball that when fired, would accurately go to where the mouse is. The problem with this is that the fireball is always off and never goes to where to mouse is exactly, well unless of course you're in FPS or shift-lock mode. How do I make it accurate?

5 comments

0

because BV.Parent = Fireball is in the race but BV.Parent got third so BV.Velocity forgot what to do, make BV.Parent = Fireball into the first one

0

because ApoyBilog is filipino your a filipino? it means fire ball anyways

0

@cherrythetree my friend made that variable, anyways. BV.Parent = Fireball, placing this immediately after local BV = Instance.new("BodyVelocity") did not fix the problem.

0

You just need to aim better.

0

Was that sarcasm or are you really serious?