Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

How do i make a kicking effect on a ball?

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

3 comments

0

Maybe you could just unanchor it?

0

so you just want us to write out the main part for you while you do the most minimum work as possible?

0

no i actually need instructions and what id do then i would possbily write out the code

1 answer

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 ;)

1 comment

0

rip.

This discussion is preserved as it was. New answers, comments, and votes are closed.