Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i make a kicking effect on a ball?

Asked by 4 years ago

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

0
Maybe you could just unanchor it? itz_rennox 412 — 4y
0
so you just want us to write out the main part for you while you do the most minimum work as possible? 0msh 333 — 4y
0
no i actually need instructions and what id do then i would possbily write out the code ChrisTheRobloxPlayYT 256 — 4y

1 answer

Log in to vote
-2
Answered by 4 years ago
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

is the link to the model

Hope this helps ;)

0
rip. greatneil80 2647 — 4y
Ad

Answer this question