Hi! i have a problem with my mini-golf ball shooting… sometimes when i shoot the ball it seems like it goes where it wants to go like i shoot it and then is just mostly never stops:
Crazy:
robloxapp-20220305-1953474.wmv (2.9 MB)
Normal:
robloxapp-20220305-1958542.wmv (3.3 MB)
Shooting Function:
game.ReplicatedStorage.Events.ShotTheBall.OnServerEvent:Connect(function(player, percent, x, y, z)
game.ReplicatedStorage.Events.ShotTheBall:FireAllClients(player)
workspace.PlayerStrikes[player.Name.."-strikes"].Value += 1
local maxvelocity = workspace.Settings.MaxVelocity.Value
local power = maxvelocity*percent
local power2 = workspace.Settings.MaxJumpPower.Value*percent
local velocity = Vector3.new(x*power,power2,z*power)
local newBall = workspace[player.Name].MingeHandicapata
newBall.AssemblyLinearVelocity = velocity
end)