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!
In my soccer game I made a steal move. When you press e, you dash forward and tackle the player. -
What is the issue? Include screenshots / videos if possible!
Right when the tackle is over, the screen shakes for a millisecond and jitters like I teleported -
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Reviewing code/searching online
player.Character:WaitForChild("HumanoidRootPart"):SetNetworkOwner(nil)
player.Character:WaitForChild("HumanoidRootPart").AssemblyLinearVelocity = player.Character:WaitForChild("HumanoidRootPart").CFrame.lookVector * 400
local touchedEvent = stealHitbox.Touched:Connect(function(hit)
if hit.Parent:FindFirstChild("Ball") and hit.Parent:FindFirstChild("Humanoid") and hit.Parent.Name ~= player.Name and hit.Parent:FindFirstChild("HumanoidRootPart"):FindFirstChild("Ball") then
if hit.Parent.Ball.CanSteal.Value == false then
return
end
hit.Parent.HumanoidRootPart:WaitForChild("Ball"):Destroy()
hit.Parent.Ball.PossessorName.Value = player.Name
hit.Parent.Ball.InPossession.Value = true
local motor6D = Instance.new("Motor6D")
motor6D.Part0 = player.Character:WaitForChild("HumanoidRootPart")
hit.Parent:FindFirstChild("Ball").Parent = player.Character
motor6D.Part1 = player.Character:FindFirstChild("Ball")
motor6D.Parent = player.Character.HumanoidRootPart
motor6D.Name = "Ball"
end
end)
task.wait(player.Character.StealCooldown.Value * 0.25)
player.Character:WaitForChild("HumanoidRootPart"):SetNetworkOwner(player)
(part of code which makes it slide)
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!
-- This is an example Lua code block
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.