You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I’m trying to replicate this “directional dribbling style” based from a game called “Locked”. -
What is the issue? Include screenshots / videos if possible!
I’m trying to replicate this dribbling system where it “magnetizes the ball” to you whenever you m1, but also pushes it forwards while its on the ground.
- What solutions have you tried so far? Did you look for solutions on the Developer Hub?
I’ve tried most of the body movers including Body Position and Body Velocity(The problem with body velocity it doesnt magnetize it to you whenever you shoot the ball and just pushes it more forwards.)
And yes, I’ve tried looking around the dev forum for help.
After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
--dribble movement code
local function dribble(parent, amount, timer,hitter)
local kb = Instance.new("BodyPosition")
kb.Parent = parent
kb.MaxForce = Vector3.new(8000,0,8000)
kb.P = 55000
kb.D = 1500
--print(hitter)
kb.Position = hitter.Position + hitter.CFrame.LookVector * 4
parent.Dribble:Fire()
debris:AddItem(kb, .04)
for i,v in pairs(parent:GetChildren()) do
if v.ClassName == "BodyPosition" then
if v ~= kb then
v:Destroy()
end
end
end
end
Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.