Basically im trying to make this ball FE.

if you want to see what im doing just make a Tool and insert a Handle into it and insert a FileMesh with meshid http://www.roblox.com/asset/?id=52603336 and texture id http://www.roblox.com/asset/?id=109551185 then just insert a regular script into the tool and put the code inside of it.

Tool = script.Parent
function ShotWet(f)
	local fCharacter = Tool.Parent
	local fPlayer = game.Players:GetPlayerFromCharacter(fCharacter)
	local ballPos = fCharacter.PrimaryPart.Position
	ballPos = ballPos + (f * 5)
	wait()
	Tool.Parent = game.Workspace
	Tool.Handle.Position = ballPos
	Tool.Handle.Velocity = (f * 80)+Vector3.new(0,50,0)
end


function StartWetShot(f)
local Char = Tool.Parent
local human = Char.Humanoid

local TrgetPos = human.TargetPoint
local FireAt = (TrgetPos - Char.Head.Position).Unit
ShotWet(FireAt)
	
	
	
end

script.Parent.Activated:connect(StartWetShot)

My Problem?

When you test the basketball script in studio mode you can see that the script acts like a real basketball it has a arc to it.

But when you try it in a local server with Filtering Enabled the ball just simply just shoots behind you or at some random position making impossible to use.

Errors? There is none ;(

Any help is welcomed :)

1 comment

0

If this is not AI, why would human.TargetPoint be anything except (0,0,0) ? You should use a part velocity or humanoid.MoveDirection. Client has to give you the MoveD though.