I have a football and i'm trying to make it so that when the player touches the ball, it gets kicked a bit and thrown off away and eventually stops. I have the touched script but i am stuck on making it move?
script.Parent.Touched:Connect(function(plays) if plays.Parent:FindFirstChild("Humanoid") then -- here end end)
Help pls
Thx
function RecordHit(part) if part.Parent.Parent:FindFirstChild("Humanoid")==nil then return end a = game.Players:GetPlayerFromCharacter(part.Parent.Parent) if a == nil then return end a.PossesionTime.Value = a.PossesionTime.Value + 1 if a.TeamColor == script.Color.Value then script.Parent.B.Value = a.Name workspace.BluePos.Value = workspace.BluePos.Value + 1 else script.Parent.R.Value = a.Name workspace.RedPos.Value = workspace.RedPos.Value + 1 end end script.Parent.Touched:connect(RecordHit)
This script belongs to JefemyThe3nd
I was going to write the script out myself but I don't have time and I wanna help you out
Hope this helps ;)