How to Make a Touch Football/Soccer ball In ROBLOX!

  Рет қаралды 39,475

Reflecterr

Reflecterr

Күн бұрын

Пікірлер: 222
@timetoxx
@timetoxx Жыл бұрын
Hey i realized that the paste bin link is different local ReplcatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local player = Players.LocalPlayer local character = player.Character or player.Character:Wait() local humanoid = character:WaitForChild("Humanoid") local canTouch = false local PlayerAnimationFeedback = require(ReplcatedStorage:WaitForChild("PlayerAnimationFeedback")) local function onPartTouch(otherPart) if humanoid and canTouch == false then canTouch = true wait(0.1) -- Put however long you want a delay to happen. For example, if I put a 3 in the () the animation will play 3 seconds after you touch the part PlayerAnimationFeedback:PlayAnimation() canTouch = false end end PlayerAnimationFeedback:LoadAnimation(humanoid) local touchPartFolder = workspace:WaitForChild("TouchPartFolder") local touchParts = touchPartFolder:GetChildren() for objectIndex = 1, #touchParts do local touchPart = touchParts[objectIndex] touchPart.Touched:Connect(onPartTouch) end print "Soccer Ball Made By Reflecterr"
@glorbo1911
@glorbo1911 Жыл бұрын
yes and its still wrong
@SquirrelKingTheFirst
@SquirrelKingTheFirst Жыл бұрын
FAKER ITS STILL THE SAME AS THE PASTIN LINK
@ToastyTouchFootball
@ToastyTouchFootball 8 ай бұрын
Fakeeeeeee
@soopstuff
@soopstuff 7 ай бұрын
@@ToastyTouchFootball on the ball.Velocity part instead of adding them together multiply them together
@soopstuff
@soopstuff 7 ай бұрын
@@SquirrelKingTheFirst on the ball.Velocity part instead of adding them together multiply them together
@ebocheats
@ebocheats 11 ай бұрын
local ball = script.Parent -- function to handle ball being touched function onTouched(otherPart) --Make sure the other part is a Hummanoid if otherPart.Parent:FindFirstChild(''Humanoid'') then -- Get the humanoid's root part local humanoidRootPart = otherPart.Parent:FindFirstChild(''HumanoidRootPart'') local forceDirection = (humanoidRootPart.Position - ball.Position).unit ForceDirection = Vector3.new(ForceDirection.x, -1, forceDirection.z) local forceMagnitude = - 50 ball.Velocity = forceDirection * forceMagnitude end end ball.Touched:Connect(onTouched) for you :)
@ebocheats
@ebocheats 11 ай бұрын
your welcome :)@Lessgui...
@palatin1261
@palatin1261 9 ай бұрын
ty
@Reflecterr
@Reflecterr Жыл бұрын
👇3 likes and il do an in depth video of how to use the animation id
@Reflecterr
@Reflecterr Жыл бұрын
We got the likes, new vid will be pinned when it comes out
@BloodHastasi_X0
@BloodHastasi_X0 Жыл бұрын
@@Reflecterr pastebin is not opening for me, can you please write it down,s
@Reflecterr
@Reflecterr Жыл бұрын
I put the wrong script in the pastebin. heres the correct one: local ball = script.Parent -- Function to handle ball being touched function onTouched(otherPart) -- Make sure the other part is a Humanoid if otherPart.Parent:FindFirstChild("Humanoid") then -- Get the humanoid's root part local humanoidRootPart = otherPart.Parent:FindFirstChild("HumanoidRootPart") -- Calculate the direction to apply the force local forceDirection = (humanoidRootPart.Position - ball.Position).unit forceDirection = Vector3.new(forceDirection.x, -1, forceDirection.z) -- Calculate the force to apply local forceMagnitude = -50 -- Set the velocity of the ball ball.Velocity = forceDirection * forceMagnitude end end -- Connect the touched event to the onTouched function ball.Touched:Connect(onTouched)
@Striske_7
@Striske_7 Жыл бұрын
What if I want to put my own texture on the ball?
@SrBobParr
@SrBobParr Жыл бұрын
How to Plugin use Name: Animation Stealer
@Ruanzitosla
@Ruanzitosla 8 ай бұрын
Hello, I really need help, I made a score board script that when I run the timer works normally, and when I move the ball into the goal the score goes up normally, but when I enter the experience, the timer is stopped, and the score only updates if a person leaves and enters the game, but it keeps stuck.. Detail: No error appears in OutPut I thought it was RunContext, but it wasn't. I really need help, because I couldn't find anything on the devforum and I couldn't even post anything.
@ryan.s8839
@ryan.s8839 Жыл бұрын
pls make a tutorial how to make a intere roblox touch football game
@KingKeen123
@KingKeen123 Жыл бұрын
Yo thank you for the vid but can you do the same thing but with the button like example high shot button low shot button
@EVERETWARRICAN
@EVERETWARRICAN 3 ай бұрын
cap cut!!!
@Dogeater2
@Dogeater2 7 ай бұрын
Man, this shit don't work.
@Reflecterr
@Reflecterr 5 ай бұрын
u jus bad bro
@Darinzoh
@Darinzoh 11 ай бұрын
pastebin doesn't work: here's the right one local ball = script.Parent -- Function to handle ball being touched function onTouched(otherPart) -- Make sure the other part is a Humanoid if otherPart.Parent:FindFirstChild("Humanoid") then -- Get the humanoid's root part local humanoidRootPart = otherPart.Parent:FindFirstChild("HumanoidRootPart") -- calculate the direction to apply the force local forceDirection = (humanoidRootPart.Position - ball.Position).unit forceDirection = Vector3.new(forceDirection.x, -1, forceDirection.z) -- Calculate the force to apply local forceMagnitude = -50 -- Set the velocity of the ball ball.Velocity = forceDirection * forceMagnitude end end -- Connect the touched event to the onTouched function ball.Touched:Connect(onTouched)
@soopstuff
@soopstuff 7 ай бұрын
thanks!
@attaitosensei8750
@attaitosensei8750 5 ай бұрын
YOU ARE THE BEST
@RandomHTRNEditzz
@RandomHTRNEditzz 11 ай бұрын
with the new script the ball doesnt go up and it doesnt change anything
@Reflecterr
@Reflecterr 11 ай бұрын
Magnitude up, ask me for more questions
@Dominusperson09
@Dominusperson09 2 ай бұрын
My scripts got deleted and ball went crazy 😢
@glorbo1911
@glorbo1911 Жыл бұрын
wrong paste bin link
@Reflecterr
@Reflecterr Жыл бұрын
check pinned comment
@harunyilmaz3935
@harunyilmaz3935 Жыл бұрын
Brother, can you send me the codes as a message, I'm having some problems in the studio too
@Reflecterr
@Reflecterr Жыл бұрын
Check the description for the code..?
@kram4918
@kram4918 Жыл бұрын
For some reason the touch part doesnt work or the animation
@zoopers.
@zoopers. Ай бұрын
whats the song called
@GS1905-_
@GS1905-_ 6 ай бұрын
bro not working pls help
@hyacinthiastephen1934
@hyacinthiastephen1934 Жыл бұрын
moon animator be like: 1000000R$
@Reflecterr
@Reflecterr Жыл бұрын
ikr?? why is it so expensive now
@halalguy476
@halalguy476 Жыл бұрын
where do i put the anim id
@YasserJ2412
@YasserJ2412 4 ай бұрын
bro where part for animation
@vascobraga4841
@vascobraga4841 Жыл бұрын
Hey where do i put your animation?
@jace3121
@jace3121 Жыл бұрын
you put the animation ID under "PlayerAnimationFeedback" script
@kennethjovellanos1041
@kennethjovellanos1041 2 ай бұрын
where is the pinned commet
@ILIKEJAM
@ILIKEJAM 4 ай бұрын
#Wvid😊
@GOATSANTOSMASINHA
@GOATSANTOSMASINHA 3 ай бұрын
animation pls
@quintebaygymnasticswagcomp8397
@quintebaygymnasticswagcomp8397 11 ай бұрын
The pastebin script is different to your script
@Reflecterr
@Reflecterr 11 ай бұрын
pinned coment
@Bisko.
@Bisko. 4 ай бұрын
Can you find a way to make it change the vertical of the ball with a keybind?
@Jayeneff
@Jayeneff 6 ай бұрын
i cant find the bit were u put -1
@Jayeneff
@Jayeneff 6 ай бұрын
i found it
@KingNinja123
@KingNinja123 10 ай бұрын
i was wondering if the ball goes in to the goal the score gui like when u score the text changes to 1-0 instead of 0-0
@BloxianKing123
@BloxianKing123 Жыл бұрын
i cant get into my tool box tho
@Reflecterr
@Reflecterr 11 ай бұрын
How?
@lav9802
@lav9802 Жыл бұрын
THANK YOU SO MUCH!
@Reflecterr
@Reflecterr Жыл бұрын
Glad it helped!
@BrodyPlayzz
@BrodyPlayzz 9 ай бұрын
Bruh it don’t work
@oskalol132
@oskalol132 Жыл бұрын
can you make it like you can change how much power it takes? like passing shooting and dribbiling?
@Reflecterr
@Reflecterr Жыл бұрын
Sorry, Im not a skilled scripter, but you could probably find some tutorials online!
@eniuth
@eniuth Жыл бұрын
have you found a tutorial for this i have been looking for ages?
@QalaxTF
@QalaxTF 9 ай бұрын
I can’t find the in touch animation model
@tatyane-q6o
@tatyane-q6o 9 ай бұрын
BRO IT DIDINT WORK😡
@Reflecterr
@Reflecterr 9 ай бұрын
Womp womp
@kuma1035
@kuma1035 Жыл бұрын
why does f i follow and copy n paste the scripts it never works
@jeremiedusauzay717
@jeremiedusauzay717 Жыл бұрын
i do not know how to enter the id i have it copied but dont know where to paste it so can u help""im a noob""
@yznvz
@yznvz Жыл бұрын
Where's To Put My Animation ID And Thanks Also!
@Notmarius1
@Notmarius1 Жыл бұрын
is it only r6?
@Reflecterr
@Reflecterr Жыл бұрын
No, just use an r15 model
@Tpsplayerorhernande13
@Tpsplayerorhernande13 Жыл бұрын
It doesn’t work for me
@DineshMalhotra-k3e
@DineshMalhotra-k3e 8 ай бұрын
i realised that there is no description for the animation touching thing
@BloodHastasi_X0
@BloodHastasi_X0 Жыл бұрын
guys, pastebin is not opening for me, can you please write it down
@lecusz_2168
@lecusz_2168 Жыл бұрын
tysm, now can you plesase make a football score count system gui?
@komezannu6776
@komezannu6776 Жыл бұрын
How do you copy
@Reflecterr
@Reflecterr Жыл бұрын
Ctrl C + Ctrl V
@nico._1
@nico._1 Жыл бұрын
That video helped me soooo much thanks bro but can you make a tutorial that there are buttons and if you click on the first Button it flys high and with the second Button it is flat on the ground or a button with which you can charge the power of the shot would be nice if you would do it I also subscribed and liked
@Reflecterr
@Reflecterr Жыл бұрын
Im not sure if i can do that, but i'll try!
@organ4699
@organ4699 Жыл бұрын
@@Reflecterr i think its possible like this: local ball = script.Parent -- Function to handle ball being touched function onTouched(otherPart) -- Make sure the other part is a Humanoid if otherPart.Parent:FindFirstChild("Humanoid") then -- Get the humanoid's root part local humanoidRootPart = otherPart.Parent:FindFirstChild("HumanoidRootPart") -- Calculate the direction to apply the force local forceDirection = (humanoidRootPart.Position - ball.Position).unit -- Check if the flat kick key is pressed (W) if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.W) then forceDirection = Vector3.new(forceDirection.x, 0, forceDirection.z) end -- Check if the drop kick key is pressed (X) if game:GetService("UserInputService"):IsKeyDown(Enum.KeyCode.X) then forceDirection = Vector3.new(forceDirection.x, -1, forceDirection.z) end -- Calculate the force to apply local forceMagnitude = -50 -- Set the velocity of the ball ball.Velocity = forceDirection * forceMagnitude end end -- Connect the touched event to the onTouched function ball.Touched:Connect(onTouched)
@SuperFrogy
@SuperFrogy 8 ай бұрын
@@organ4699 Where i need put this script? In ball or in Startercharacterscripts?
@Haskz-s4f
@Haskz-s4f Жыл бұрын
Dont worked with me do you know who happend?
@plaguedoctor4484
@plaguedoctor4484 Жыл бұрын
dude wtf the script is wrong
@Reflecterr
@Reflecterr Жыл бұрын
check pinned comment sorry for the wrong pastebin
@plaguedoctor4484
@plaguedoctor4484 Жыл бұрын
@@Reflecterr thats still wrong
@echlogon1845
@echlogon1845 11 ай бұрын
The ball isnt working for me but are you able to send the file link for the ball not the animation
@Reflecterr
@Reflecterr 11 ай бұрын
ok i will soon
@meblackleaf7689
@meblackleaf7689 Жыл бұрын
and also how do make the ball go faster not higher
@Alekozs
@Alekozs Жыл бұрын
where do i put the animation id
@antonyantonygamer
@antonyantonygamer 6 ай бұрын
i have 1 more question where do i put the id at the end of the video?
@Reflecterr
@Reflecterr 5 ай бұрын
There is an animation part of the script where it says to put it there
@brothersw-rn3931
@brothersw-rn3931 Жыл бұрын
do you know how to stop making the ball roll infinitely?
@Reflecterr
@Reflecterr Жыл бұрын
Lower the magnitude
@erwinvera8122
@erwinvera8122 Жыл бұрын
script doesn't work
@eoftnoahEz1
@eoftnoahEz1 5 ай бұрын
bro this is fake
@Reflecterr
@Reflecterr 5 ай бұрын
no bruh
@eoftnoahEz1
@eoftnoahEz1 5 ай бұрын
@@Reflecterr make a tutorial how to make a touch football score boars
@Reflecterr
@Reflecterr 5 ай бұрын
man im tryina figure that out myself that shi complicated asl but ill try to give updates
@dragon0359
@dragon0359 Жыл бұрын
Hi, does the ball stop after u kick it eventually?
@DADAJONAS
@DADAJONAS Жыл бұрын
Yes because it just adds velocity to whatever you want to kick
@DADAJONAS
@DADAJONAS Жыл бұрын
But it also depends on the set forceMagnitude
@vole5
@vole5 Жыл бұрын
pastebin is not working for me
@Reflecterr
@Reflecterr Жыл бұрын
How ? What do u mean
@milowyd
@milowyd Жыл бұрын
Can you adjust how far the ball goes bc I am making a game kinda like BFL
@digscr7tecson996
@digscr7tecson996 Жыл бұрын
why doesnt it work it just keeps on doing errors
@digscr7tecson996
@digscr7tecson996 Жыл бұрын
Ive even got the correct code on it tho
@Reflecterr
@Reflecterr Жыл бұрын
Weird, make sure it has the same name as mine
@digscr7tecson996
@digscr7tecson996 Жыл бұрын
@@Reflecterr its working now I forgot to add the last part of the script its good thanks a lot
@digscr7tecson996
@digscr7tecson996 Жыл бұрын
but something is quite wrong it has no friction on it which also makes it kinda move for a very very very very long time
@meblackleaf7689
@meblackleaf7689 Жыл бұрын
i cant get moon animator bc it costs 1.7k robux
@Reflecterr
@Reflecterr Жыл бұрын
yeah they made moon really expensive, you can always use the normal roblox animator!
@Dinamo_mkh
@Dinamo_mkh Жыл бұрын
How to do a ball like in touch football?
@nbdfdanii2232
@nbdfdanii2232 9 ай бұрын
doesnt work
@novr20
@novr20 Жыл бұрын
Not work please Give me the ball model
@Reflecterr
@Reflecterr Жыл бұрын
Retry. The whole point of this tutorial was for some people to learn the main fundamentals of studio.
@ДветеЛегенди2
@ДветеЛегенди2 Жыл бұрын
doesnt work at all
@Reflecterr
@Reflecterr Жыл бұрын
check pinned comment
@ДветеЛегенди2
@ДветеЛегенди2 Жыл бұрын
@@Reflecterr yea i did it and still wont work
@nbdfdanii2232
@nbdfdanii2232 9 ай бұрын
where do i need to put my animation id
@masesbballclips
@masesbballclips Жыл бұрын
where do u put the animation tho
@AguaFN
@AguaFN Жыл бұрын
do i press a button to shot?
@Reflecterr
@Reflecterr Жыл бұрын
Just walk into it
@Ftbl_Jxsh
@Ftbl_Jxsh Жыл бұрын
​@@Reflecterr it, doesn't work for me
@Reflecterr
@Reflecterr Жыл бұрын
Oh weird, why? its just 1 script
@Jacaroni_Cheese
@Jacaroni_Cheese Жыл бұрын
how do i see it like that on the side of my screen
@CriSmb152
@CriSmb152 Жыл бұрын
hey can you make a tutorial of making goals
@mrkwena3440
@mrkwena3440 Жыл бұрын
Bro
@Fiuckthis
@Fiuckthis Жыл бұрын
Yo love your content have subscribed could you make one like this but with a hockey puck please!
@Reflecterr
@Reflecterr Жыл бұрын
You can actually do this with a hockey puck! You'd just need to weld a hockey stick onto the hand and put the code in a cylinder piece instead! You can learn welding on youtube, just search "how to weld an object onto a roblox player"
@Reflecterr
@Reflecterr Жыл бұрын
kzbin.info/www/bejne/nKWko6mZi6xlbLc Here
@Fiuckthis
@Fiuckthis Жыл бұрын
@@Reflecterr but it detects your humanoid
@Reflecterr
@Reflecterr Жыл бұрын
@@Fiuckthis ?
@benj4218
@benj4218 Жыл бұрын
the script wont work
@aloneahmet6152
@aloneahmet6152 Жыл бұрын
animation id doesnt work :c
@Reflecterr
@Reflecterr Жыл бұрын
try making one yourself! its very easy, search a tutorial
@CloverrFn
@CloverrFn Жыл бұрын
it is moving on and not stopping what should i do
@Reflecterr
@Reflecterr Жыл бұрын
make barriers or reduce the magnitude
@grempic
@grempic Жыл бұрын
why does the touch part anim thing not move, i tried welding it didnt work i tried unanchoring it didnt work
@Reflecterr
@Reflecterr Жыл бұрын
You dont need the actual block, just the code
@grempic
@grempic Жыл бұрын
@@Reflecterr ohhh
@yourpalwy
@yourpalwy 10 ай бұрын
Can npcs kick the ball?
@Reflecterr
@Reflecterr 10 ай бұрын
Possibly. I Haven't tried it, but if the NPC has a humanoid, most likely
@davidstalinsanchezandrade4648
@davidstalinsanchezandrade4648 Жыл бұрын
And can I add a tool to be able to configure and do several like that but with different shots? answer me please
@Reflecterr
@Reflecterr Жыл бұрын
You can, but im not entirely sure how to do that. You'd need to do it yourself
@Potatorules
@Potatorules Жыл бұрын
YO FINALLY SOMEONE HAS VIDEO WITH UNTITLED HANGOUT GAME LETS GOOOOOO (in the intro)
@Reflecterr
@Reflecterr Жыл бұрын
🔥
@FragSnap
@FragSnap Жыл бұрын
Can u make it so its not on touch but u gotta hold left click to charge it and let go to shoot it woulf be really helpful for me and can u make it so the animation is in the script so i can add animation to it
@KiddiePlayz913
@KiddiePlayz913 Жыл бұрын
here the real script...local ball = script.Parent --Function to handle ball being touched function onTouched(otherpart) -- Make sure the other part is a Humanoid if otherpart.Parent:FindFirstChild("Humanoid") then -- Get the humanoid's root part local humanoidRootPart = otherpart.Parent:FindFirstChild('HumanoidRootPart') -- Calculate the derection to apply the force local forceDirection = (humanoidRootPart.Position - ball.Position).unit forceDirection = Vector3.new(forceDirection.x, -1, forceDirection.z) -- Calculate the force to apply local forceMagnitude = -50 --Set the velocity of the ball ball.Velocity = forceDirection + forceMagnitude end end -- Connect the touched event to the ontouched function ball.Touched:Connect(onTouched)
@10kadem95
@10kadem95 Жыл бұрын
where do i put the animation id please help
@Reflecterr
@Reflecterr Жыл бұрын
It says “Animation Id” as part of the script. Heres a tutorial kzbin.info/www/bejne/h329cquZmZx-Zpo
@10kadem95
@10kadem95 Жыл бұрын
how do i get animation to work for r6?
@Reflecterr
@Reflecterr Жыл бұрын
It always does, make sure your game is set to R6
@SanTheDev
@SanTheDev Жыл бұрын
can you like meake a sensor so when the ball touches a goal it adds +1 goal also up shoot, and down shoot tools.
@Tpsplayerorhernande13
@Tpsplayerorhernande13 Жыл бұрын
Nice vid
@R0NNY0AEP
@R0NNY0AEP 8 ай бұрын
tysm for the help
@MXNARHCY
@MXNARHCY 10 ай бұрын
why is it different
@Reflecterr
@Reflecterr 10 ай бұрын
pinned coment
@10kadem95
@10kadem95 Жыл бұрын
i didnt understand the steps were it says ungroup and then put your animation id now my animation doesnt work and im in r6
@Reflecterr
@Reflecterr Жыл бұрын
What?
@10kadem95
@10kadem95 Жыл бұрын
@@Reflecterr the animation doesnt work
@Reflecterr
@Reflecterr Жыл бұрын
@@10kadem95 kzbin.info/www/bejne/h329cquZmZx-Zpo
@BlueTopHatBoi
@BlueTopHatBoi Жыл бұрын
OMG, finallly, i love you man
@Striske_7
@Striske_7 Жыл бұрын
What if I want to put my own texture on the ball?
@Reflecterr
@Reflecterr Жыл бұрын
You can just add it then
@Striske_7
@Striske_7 Жыл бұрын
@@Reflecterr how lol
@DiegoDD33
@DiegoDD33 10 ай бұрын
THANK U I REALLY NEED IT
@damnboi6784
@damnboi6784 Жыл бұрын
Hey, could you do a tutorial on how to make the ball have more acceleration or force when its holded more? if you dont understand, heres a better reference: kzbin.info/www/bejne/fKCzg3xrjdFqatE
@Reflecterr
@Reflecterr Жыл бұрын
I'm sorry but ive tried and to be honest im not sure where to start. Maybe you can ask someone else? Sorry
@Jumper123_
@Jumper123_ Жыл бұрын
How do I make it go less far
@Reflecterr
@Reflecterr Жыл бұрын
Put the acceleration down
@Jumper123_
@Jumper123_ Жыл бұрын
@@Reflecterr thank you
@Jumper123_
@Jumper123_ Жыл бұрын
@@Reflecterr where is the acceleration tho
@Reflecterr
@Reflecterr Жыл бұрын
Did you figure it out yet?
@MettalicLeaf
@MettalicLeaf Жыл бұрын
hi, the script in the paste bin isnt the same as the one in the video for example, there is no force direction
@Reflecterr
@Reflecterr Жыл бұрын
Look at the comment i wrote
@timetoxx
@timetoxx Жыл бұрын
@@Reflecterr where is it?
@abomination3766
@abomination3766 Жыл бұрын
YOU SAVED MY LIFE. THANK YOU!!!!!!!!!!!!!!!!!
@Reflecterr
@Reflecterr Жыл бұрын
np bro
@SuperFrogy
@SuperFrogy Жыл бұрын
THANKS YOU!!
@ThisChez
@ThisChez Жыл бұрын
What is the animation for?
@Reflecterr
@Reflecterr Жыл бұрын
When you kick the ball, a kick animation plays
@FootyOnTopLegacy
@FootyOnTopLegacy Жыл бұрын
thank you so much bro
@Reflecterr
@Reflecterr Жыл бұрын
No problem
@Humor_Pa_Kufi
@Humor_Pa_Kufi Жыл бұрын
This guy needs more subs❤
@armario111
@armario111 Жыл бұрын
Good Job! Nice Video! It helps a lot!
@Reflecterr
@Reflecterr Жыл бұрын
Glad to hear that!
@retiringmagalufscomebackhandle
@retiringmagalufscomebackhandle 6 ай бұрын
you didnt add the model that plays on touch to the description
@Reflecterr
@Reflecterr 6 ай бұрын
L
@iyolsa
@iyolsa 6 ай бұрын
r u gonna add it tho @@Reflecterr 😞
@Reflecterr
@Reflecterr 5 ай бұрын
Shii do u still want it my bad bruh i don't maintain this channel often
@retiringmagalufscomebackhandle
@retiringmagalufscomebackhandle 5 ай бұрын
@@Reflecterr yes
@iyolsa
@iyolsa 5 ай бұрын
@@Reflecterr yes please
@Reflecterr
@Reflecterr Жыл бұрын
I put the wrong script in the pastebin. heres the correct one: local ball = script.Parent -- Function to handle ball being touched function onTouched(otherPart) -- Make sure the other part is a Humanoid if otherPart.Parent:FindFirstChild("Humanoid") then -- Get the humanoid's root part local humanoidRootPart = otherPart.Parent:FindFirstChild("HumanoidRootPart") -- Calculate the direction to apply the force local forceDirection = (humanoidRootPart.Position - ball.Position).unit forceDirection = Vector3.new(forceDirection.x, -1, forceDirection.z) -- Calculate the force to apply local forceMagnitude = -50 -- Set the velocity of the ball ball.Velocity = forceDirection * forceMagnitude end end -- Connect the touched event to the onTouched function ball.Touched:Connect(onTouched)
@MadnessSSL
@MadnessSSL Жыл бұрын
Are we allowed to change the magnitude?
@Reflecterr
@Reflecterr Жыл бұрын
@@MadnessSSL Yes of course, it makes the ball go futher or slower
@MadnessSSL
@MadnessSSL Жыл бұрын
@@Reflecterr oh k
@zhawnlirazan
@zhawnlirazan Жыл бұрын
​@@Reflecterr can u make a mobile button for it? Please this is very useful btw tysm😊
@amcarsega
@amcarsega Жыл бұрын
​@@zhawnlirazanno need to make a mobile button Because when the player touches the ball,the ball will go
@Elias-eb5hz
@Elias-eb5hz Жыл бұрын
Hi could you do a fixed ball system on the foot?
@Reflecterr
@Reflecterr Жыл бұрын
What do you mean by this? im a little confused
@tricksen
@tricksen Жыл бұрын
@@Reflecterr Like so the ball stays in front of the player's feet as they move (a dribbling system)
@lokolxkey5919
@lokolxkey5919 Жыл бұрын
Litterally this is gonna help me so much you have no idea thank you
@Reflecterr
@Reflecterr Жыл бұрын
check the pinned comment! hoping it'll help because i forgot to provide the proper pastebin
@lokolxkey5919
@lokolxkey5919 Жыл бұрын
@@Reflecterr yep also i could not figure out how to use the animation thing could you make a video on that if so i promise ill sub
@Reflecterr
@Reflecterr Жыл бұрын
@@lokolxkey5919 What do you need help with
@lokolxkey5919
@lokolxkey5919 Жыл бұрын
i just couldnt figure out how to use the animation you didnt explain much abt it
@Reflecterr
@Reflecterr Жыл бұрын
@@lokolxkey5919 I showed a video in the description
Ranking the BEST and WORST Soccer Games on Roblox
8:38
Guppi
Рет қаралды 239 М.
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 54 МЛН
Incredible: Teacher builds airplane to teach kids behavior! #shorts
00:32
Fabiosa Stories
Рет қаралды 11 МЛН
HAH Chaos in the Bathroom 🚽✨ Smart Tools for the Throne 😜
00:49
123 GO! Kevin
Рет қаралды 16 МЛН
小丑妹妹插队被妈妈教训!#小丑#路飞#家庭#搞笑
00:12
家庭搞笑日记
Рет қаралды 38 МЛН
The Truth Behind Roblox's Richest Players
41:51
CubeINC
Рет қаралды 2,5 МЛН
How To MAKE a ROBLOX GAME on MOBILE...
8:01
Reckless - Roblox
Рет қаралды 1,3 МЛН
How to Teleport in Roblox Studio
3:50
duckhive
Рет қаралды 72
The Brazilian Footballer - (Roblox Soccer Animation)
3:30
Making My Roblox Game VIRAL in 24 HOURS
9:24
Mootereo
Рет қаралды 35 М.
How to Make ROBLOX Ragdolls: the BEST Way
12:23
LeehamsonTheThird
Рет қаралды 22 М.
Essential UI Tips & Tricks | Roblox Studio
9:19
Stewiepfing
Рет қаралды 59 М.
I Made a Roblox Simulator Game in 7 Days!
7:40
Maze Sunshine
Рет қаралды 258 М.
The biggest lie in video games
15:18
AIA
Рет қаралды 1,9 МЛН
哈莉奎因怎么变骷髅了#小丑 #shorts
00:19
好人小丑
Рет қаралды 54 МЛН