#How can I make a punch that breaks certain parts with like a book value
148 messages · Page 1 of 1 (latest)
hmm
i also have no scripting experience so it would be nice if you could show me, if you do manage to cook up something.
** You are now Level 2! **
uhh cani have both
sure
lIke instructions of where to put the things
yep
then name it anything u want such as "Break Punch" ur choice
And set it true
For the parts that should break
bUt how can I make the punch?
Or
rip me 💀
Ill tell u rn
Open roblox studio
And go to starterpack in the Explorer
Right click
The starterpack
Then insert a tool
Before that select an objeft
Object
yes please
alr
i can send you the project files
When u right click the starterpack select an object then u will see tools
my laptop is dead i needa charge
oh aight
Then
Rename the tool into
Rename the tool
"Punchtool"
Inside the tool add a local script
And animation
Then
Open the animation editor
View the animation editor
Select ur character r15
wait
Click create a new animation
my game is r6
And rename it punch
change
Then
Animate the
Arm movement for a punch motion
Save and upload it to roblox.
Copy the animation id
From the website
Then
We move on into scripting

this will take 10mins
ill script one min
dang💀
thanks dawg
hold up this game kinda fire
Heres the script
** You are now Level 8! **
@visual hinge
After u have copied the animation id insert it inside the script
And heres the punch script
Wasted my time bruh
** You are now Level 3! **
Uhh can’t I have the script please? If your done?
local tool = script.Parent
local player = game.Players.LocalPlayer
local char = player.Character or player.CharacterAdded:Wait()
local humanoid = char:FindFirstChildOfClass("Humanoid")
tool.Activated:Connect(function()
local punchOrigin = char.HumanoidRootPart.Position
local punchDirection = char.HumanoidRootPart.CFrame.LookVector
local ray = Ray.new(punchOrigin, punchDirection * 5)
local hit, position = workspace:FindPartOnRay(ray, char)
if hit and hit.Parent then
local enemyHumanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
if enemyHumanoid then
enemyHumanoid:TakeDamage(10)
end
end
end)
Paste the animation id inside the script
If u followed my steps scrollup
Aight thanks bro
To make the button to punch be the f key yes please
okat
Okay
So
Open roblox studio
In the explorer window
Locate startergui
Add a screengui
Right click in startergui and insert a screengui
Is this for mobile?
No
Oh Alr
Like yk if you have or haven’t idk played my game, yk how if you press ctrl you crouch, and shift to run, well I would like f to punch
@visual hinge
?
Reply
Also where do I paste the animation?

