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

Why my Fireball script don't work? Help me, beacouse idk what to do

Asked by
lolenko 17
3 years ago
Edited 3 years ago
rs = game:GetService("ReplicatedStorage")
ss = game:GetService("ServerStorage")
local tweenservice = game:GetService("TweenService")

rs.RemoteEvents.FireAnigilation.OnServerEvent:Connect(function(player, Mouse) 
    local char = player.Character
    local hum = char:WaitForChild("Humanoid")
    local pposX = char.UpperTorso.Position.X
    local pposY = char.UpperTorso.Position.Y
    local pposZ = char.UpperTorso.Position.Z
    print(pposX,pposY,pposZ)
    pposY = pposY + 10
    local core = rs.FireAnigilation.core:Clone()
    core.Parent = workspace
    core.Position = Vector3.new(pposX,pposY,pposZ)
    local velocity = Instance.new("BodyVelocity", core)
    velocity.MaxForce = Vector3.new(5000,5000,5000)
    velocity.Velocity = CFrame.new(core.Position, Mouse).LookVector * 100
end)

WHYYYY? When ball is small, fireball is working but when fireball is big, he doesn't work(((

0
glitch i guess idk TheKakYTArmy 125 — 3y

1 answer

Log in to vote
0
Answered by
lolenko 17
3 years ago

MaxForce was low))))

0
bruh TheKakYTArmy 125 — 3y
Ad

Answer this question