Love how you take the time to explain the maths behind it. This is something definitely new, looking for a Roblox tutorial and not being treated like an 8 ys old child. Thanks, you got a new subscriber.
Yo. This tutorial is absolutely incredible, and you explain it in so much detail it's just amazing how you don't have a million subscribers. Thank you so much! And by the way, how do you type like that? You type super fast and consistently.
i cant believe i wacthed a one hour video and it worked!, i appreciate how you are a good scripter, like if i watched a video like this but the video is 1 minute it wont work, thank you so so so much you earned a sub!.
updated grip area: now, theres a section for grip. its position, and orientation. position will be welded with the character, so don't worry about that. The orientation though, make it 0, 0, -90. If you observe correctly, its to the right of the player. Going left by 90 degrees gives 270 degrees, or -90.
If you feel like the sliced parts are delaying or stuttering after the cut, you can make it smoother by using SetNetworkOwner of the two unions to the player in the server script
2 years later, this finally became a "feature" created by an original roblox administrator. hopefully it becomes an official feature in roblox studio soon
Thank you so much, I only used the move part script so I can make a laser remote I made a own version of it but there were some things that could do better and this version works very good
@@神林しマイケルWell I don’t know what I was thinking back then, as if I was ever going to make progress on it with a crap computer without lua or blender experience. I’m still writing down concepts for the game and I hope I can start working on it, or at least animating and modeling for it by the time I get all my computer parts in April or so.
Thank you for this. Apparently Roblox Studio does not support the GripRight and GripUp properties any more. I managed to accomplish the same result by adding an extra line in the server script: 'tool.Grip = CFrame.new(tool.Grip.Position + Vector3.new(-0.5, 0, 0)) * CFrame.Angles(0, 0, -math.rad(90))' Perhaps someone else finds this helpful one day.
just noticed this comment, i kinda did another version of it but using properties. if you want, i can delete it. its almost the same though, its saying to do 0, 0, -90 on the grip orientation.
wow this is very cool tutorial i can now make sukuna's dismantle, malevolent shrine also can you make it into keybind or when a gui button is activated?
yes you can, go to the end of the localscript and instead running everytime its equipped and cancelling upon deactivating you can edit it so it activates/disconnects when you set it to. hope this helps!
@@5uphi I did, I looked back at the finished product of the code from that point and it still didn't work. Is it maybe my version of Roblox studios or the device I'm using?
This is a great tutorial, i would like to use something like this for my game but i was wondering how would i make it that instead of a tool its a stationary laser that cuts objects that go through it
That's a hard topic to cover because there are so many different ways to optimize for different things for instance I have a video on greedy mesh that shows how to optimize voxels and I have a video on compressing data for datastore so there is not one rule to optimize all code depending on what your trying to do there will be different ways to optimize but I'll keep it in mind and if I workout some general rules you can follow I'll make a video
Hii! I was wondering if you could make an infinite Ocean like your endless Desert biome and others. This would be cool with a sand bottom! I tried doing this but since then i couldn't get it to work. I would really appreciate your help!
If anybodys worrying about the union color on the inside just look in the normal script and look for the code local union2 = instance:SubtractAsync({subtractPart}) then under that put union1.UsePartColor = true union2.UsePartColor = true it should look like local union2 = instance:SubtractAsync({subtractPart}) union1.UsePartColor = true union2.UsePartColor = true then you got color all over the your cut stuff
but if you have unions with multiple colors that you wanna cut? a better way to do it is to set the subtractpart color to the color of the instance color
I have an idea u know the backrooms? Could u make a randomly generated maze like thing plugin but people who get it make the rooms and generate the maze. It’s hard but I believe in you!
I can already imagine someone using this to make a slicing system similar to Metal Gear Rising: Revengeance... Give us a tutorial on how to ingest people's spines like Raiden next!
Hi Suphi, I was wondering how the math is behind re-calculating vectorZ? I understand, that in reality it will not matter what the Y vector is, as long as the rotation and rough positioning of the CFrame is correct enough, therefore being that the Y vector doesn't have to be precise and can be alternated between the position of the camera or the tool, though I am confused as how that will always be exactly 90 degrees apart from the X vector, as you had mentioned in the video. Because of that issue you mentioned we have to recalculate the Z vector, but will it not yield the same result, as part of vectorY's value is vectorZ? Thanks!
@@5uphi oh and for example anti god mode, anti flying ,anti steal tools, like a more complexe anti exploit and more complete would be amazing and yeah i saw ur videos about stopping hackers etc its very nice !
I think for anti steal tool you would need to make your own custom tool system and not use robloxes system for anti fly you would need to keep checking on the server side to see if the player is on the ground most likely by ray casting I have not looked into god mode but there are a few ways a exploiter could prevent themselves from losing health based on different things
my solution to preventing hackers to do this sort of stuff was checking if certain attributes exist in the local script from where the event was fired from becouse from what i know you cant do much stuff with attributes in hacks
dude ur typing is insane, could u make a tutorial on how to use car acceleration sounds with 1.5 chassis in toolbox instead of loops for car sounds? if its possible
oh i see btw do i have to be good at math to be a dev i just started a month ago and i'm doing grate tbh i'm learning fast and i'm facing problems with calculating stuff like it took me more than 3 days to understand how to calculate distance wish turned out to be the easiest this out there when i sow your vid i just found out about a lot of math calculations that i would of never knew how to solve if didn't see your vid @@5uphi
Being good at math helps but it's not mandatory to be a dev you have to just keep practicing and search the internet for things you don't know and slowly over time your maths will improve naturally
Can someone explain how he created two UnionOperations with the exact same parts to create the union, and the only thing he changes is the cframe so they both have different cframes, but when you slice the parts in-game, the two UnionOperations have different sizes?
Sometimes i type it sometimes autohotkey types it for me. If you hear me typing it can mean that I have deviated from the original planned code or sometimes it could just mean I'm free-styleing because I have not planned the video before hand this can be true for small videos
Bro you deserve atleast 700k subs, we will always support you! Also you make tutorial on roblox maths? I only saw game maths but no one made a vod on roblox math (not talking about math.clamp or any math function i am talking about the real math!!!)
Hey @Suphi Kaner , great videos. I'm trying to utilize this slicing mechanic for a Fruit Ninja like game, but I'm running into an issue where the slice models sometimes doesn't slice. I think this is because the slicing doesn't behave well for moving parts. I get this error which occurs upon the first SubtractAsync(): " Result was empty, possibly because everything got subtracted away. " Any ideas as to how I can solve this?
i dont know if this is the actual reason but i think its because the actual laser or beam is moving by 2 studs which im pretty sure is the lowest he can do and it has to keep up with falling objects with 2 stud every time it has to move he also said in the video it tracks the starting point and the ending point to cut but it cant cut if it doesnt track the end or starting point thats why you cant just make holes inside it so with limited movement options i dont think its actually possible to fix this maybe with future techonlgy you could fix it or im competely wrong
just copy your slice folder to replicated storage and whenever your countdown is finish you can just delete the current stuff and clone the one in replicated storage and parent it to workspace
hi, when i hold down mouse button it says 'position' is not a valid member of RaycastResult is there any way you know of that i can fix this? Edit: nevermind i fixed it
i don't know if i missed a step but when i cut any part in half it just shows the face of where i cut it from as gray even tho the part has a diffrent color. but in the thumbnail i can see you cut a union with diffrent colors?
I am doing something similar for the position and serverposition magnitude checks to not fire an event too many times. The problem is, the farther away the thing your mouse is on, the more the event gets fired. Putting the mouse on the sky fires it the same as if there were no checks at all. Any way to fix this?
Hey I'm Having a error with it. on the server side script the output issue is: Workspace.Tool.Script:10: attempt to perform arithmetic (mul) on nil and number and the line its having trouble on is local cFrame1 = cFrame + cFrame.UpVector * 50 could you help
unfortunately I don't have enough information to know why your having this problem but if you follow the video correctly you should not have any problems
a attachment is a CFrame that is relative to a BasePart attachments on there own don't really do anything just indicate a position and orientation relative the the parent weld lets you weld BaseParts together
Roblox made some changes since the video I'm not sure if it's possible anymore one way would be to weld the different colors together instead of union them together
Hey, I have a problem and have no clue how to fix it. I checked the whole code there is no mistakes. SO whenever I release button then on video it is still raycasting, but in mine if I release button then he is not raycasting unless I re-equip it. Help me!
Love how you take the time to explain the maths behind it. This is something definitely new, looking for a Roblox tutorial and not being treated like an 8 ys old child. Thanks, you got a new subscriber.
Its my age how did you know
@@TehCapcutSpartaRemixer💀
@@TehCapcutSpartaRemixer bruh lmao
@@TehCapcutSpartaRemixer noway guys 💀
This UA-camr gives tutorial better and more interesting than most others
agrree
Thats hella too advanced
Yo. This tutorial is absolutely incredible, and you explain it in so much detail it's just amazing how you don't have a million subscribers. Thank you so much!
And by the way, how do you type like that? You type super fast and consistently.
Thank you and I use autohotkey
ok wth is this man doing making the most indepth tutorials ever and being chill with 17k subs
i cant believe i wacthed a one hour video and it worked!,
i appreciate
how you are a good scripter, like if i watched a video like this but the video is 1 minute it wont work, thank you so so so much you earned a sub!.
fantastic video, very underrated channel!
Thank you
updated grip area:
now, theres a section for grip. its position, and orientation. position will be welded with the character, so don't worry about that. The orientation though, make it 0, 0, -90. If you observe correctly, its to the right of the player. Going left by 90 degrees gives 270 degrees, or -90.
bro.....this is the most coolest thing iv ever seen in my robloxian life
You may also set 'CollisionFidelity' on the sliced parts to 'PreciseConvexDecomposition' for better collisions
Thanks
23:51 bookmark
Awesome video btw
Imagine a dev using this to shape things in game, copy the results, and put it back in as the modified union.
skul
Sukuna's Malevolent Shrine would go hard with this
Another great tutorial! Nice work
Thank you
one of the most best and talented explainer.(you got new subscriber
If you feel like the sliced parts are delaying or stuttering after the cut, you can make it smoother by using SetNetworkOwner of the two unions to the player in the server script
Amazing tutorial! Keep the good work.
Thanks you 😊
2 years later, this finally became a "feature" created by an original roblox administrator.
hopefully it becomes an official feature in roblox studio soon
Awesome video!
Thank you :)
cant wait to see more of u :)
I also can't wait to publish more videos
@@5uphi 🤝
i regret watching this at night with the multiple flashbangs i get when u swap to ur browser 😭
Finally I can turn this into a laser weapon sort of :)
Thank you so much, I only used the move part script so I can make a laser remote
I made a own version of it but there were some things that could do better and this version works very good
bro i’ve been looking for thisss
Very nice video ❤
Thank you
the raycast collides with the targetpart so it stacks ontop of eachother to the camera
You must not of set the target parts properties like I showed in the video
Oml thanks so much, also thanks for explaining things
So, who is awesome? You are awesome, Suphi!
(⌐■_■)
This will be excellent for my demon slayer demo, slicing tameshigiri will be so awesome….
How's it coming along?
@@神林しマイケルWell I don’t know what I was thinking back then, as if I was ever going to make progress on it with a crap computer without lua or blender experience. I’m still writing down concepts for the game and I hope I can start working on it, or at least animating and modeling for it by the time I get all my computer parts in April or so.
I dont see how this guy dont have a lot of subscriber more than those channel that cant even teach us properly.
Yo this is insane! Thx for the tutorial.
No problem!
Thank you for this.
Apparently Roblox Studio does not support the GripRight and GripUp properties any more.
I managed to accomplish the same result by adding an extra line in the server script: 'tool.Grip = CFrame.new(tool.Grip.Position + Vector3.new(-0.5, 0, 0)) * CFrame.Angles(0, 0, -math.rad(90))'
Perhaps someone else finds this helpful one day.
just noticed this comment, i kinda did another version of it but using properties. if you want, i can delete it. its almost the same though, its saying to do 0, 0, -90 on the grip orientation.
couldnt you have just changed grip orientation in the tool properties
Which line of the script is it to put?
wow this is very cool tutorial i can now make sukuna's dismantle, malevolent shrine
also can you make it into keybind or when a gui button is activated?
yes you can, go to the end of the localscript and instead running everytime its equipped and cancelling upon deactivating you can edit it so it activates/disconnects when you set it to. hope this helps!
at 25:50 I copied everything and when I equipped it, it didn't move with my mouse. Any solutions?
Double check your code and make sure it's like mine
@@5uphi I did, I looked back at the finished product of the code from that point and it still didn't work. Is it maybe my version of Roblox studios or the device I'm using?
thank you for this
You are amazing !
bro took "real or cake" in a whole new level
I got too smart after that video
How did you cut that one part with a different color inside?
I've tried almost everything and im desperate for an answer
referrence 1:39
34:05
bookmark!
tysm for good tutorial!!
This is a great tutorial, i would like to use something like this for my game but i was wondering how would i make it that instead of a tool its a stationary laser that cuts objects that go through it
Incredible
thx u now i can slice my bread
Glad I could help
Hello! I really love your videos. Have you ever considered making a video on optimization or how to prevent memory leaks?
That's a hard topic to cover because there are so many different ways to optimize for different things for instance I have a video on greedy mesh that shows how to optimize voxels and I have a video on compressing data for datastore so there is not one rule to optimize all code depending on what your trying to do there will be different ways to optimize but I'll keep it in mind and if I workout some general rules you can follow I'll make a video
Hii! I was wondering if you could make an infinite Ocean like your endless Desert biome and others. This would be cool with a sand bottom! I tried doing this but since then i couldn't get it to work. I would really appreciate your help!
If you message me in discord I'll show you how but the main thing you need to do is shift the terrain down so it's always under the water
If anybodys worrying about the union color on the inside just look in the normal script and look for the code
local union2 = instance:SubtractAsync({subtractPart})
then under that put
union1.UsePartColor = true
union2.UsePartColor = true
it should look like
local union2 = instance:SubtractAsync({subtractPart})
union1.UsePartColor = true
union2.UsePartColor = true
then you got color all over the your cut stuff
What about material?
@@kirawillow3440 I’m pretty sure it stays but I’ll tell when I can get my pc back
@@Darkman-ur7ob okay
but if you have unions with multiple colors that you wanna cut? a better way to do it is to set the subtractpart color to the color of the instance color
how would you apply these cuts to a projectile? a slice of air that cuts parts it touches?
I have an idea u know the backrooms? Could u make a randomly generated maze like thing plugin but people who get it make the rooms and generate the maze. It’s hard but I believe in you!
I think I'll make a video tutorial showing how to do it without a plugin it should not be to hard to follow
Alr.
You are my super hero...
I can already imagine someone using this to make a slicing system similar to Metal Gear Rising: Revengeance...
Give us a tutorial on how to ingest people's spines like Raiden next!
im already making one lol
dismantle and cleave boutta be sick
Hi Suphi, I was wondering how the math is behind re-calculating vectorZ?
I understand, that in reality it will not matter what the Y vector is, as long as the rotation and rough positioning of the CFrame is correct enough, therefore being that the Y vector doesn't have to be precise and can be alternated between the position of the camera or the tool, though I am confused as how that will always be exactly 90 degrees apart from the X vector, as you had mentioned in the video. Because of that issue you mentioned we have to recalculate the Z vector, but will it not yield the same result, as part of vectorY's value is vectorZ?
Thanks!
Hello nice videos. Could you make a videos on how to make an anti-exploit ? for example anti fly anti teleport etc ?
I already have a video about anti-exploit that shows you how to make a anti teleport
@@5uphi oh and for example anti god mode, anti flying ,anti steal tools, like a more complexe anti exploit and more complete would be amazing and yeah i saw ur videos about stopping hackers etc its very nice !
I think for anti steal tool you would need to make your own custom tool system and not use robloxes system for anti fly you would need to keep checking on the server side to see if the player is on the ground most likely by ray casting I have not looked into god mode but there are a few ways a exploiter could prevent themselves from losing health based on different things
thanks man it worked really well, but is there a way to make it able to cut player too?
49:39
Tysm! i changed the rayInstance to nil and it worked
I have only 1 problem, when I put the tool in starterpack and then you use it it doesn't work
my solution to preventing hackers to do this sort of stuff was checking if certain attributes exist in the local script from where the event was fired from
becouse from what i know you cant do much stuff with attributes in hacks
One problem, when i try to make a cut for example in a U shape then it will not make a U shape like a cut
i did not that wasa future thanks man
Thank you !
dude ur typing is insane, could u make a tutorial on how to use car acceleration sounds with 1.5 chassis in toolbox instead of loops for car sounds? if its possible
I don’t think he is typing pretty sure it’s a macro
I feel like I should pay for this tutorial.
Real
there’s a patreon and donation game
wth how do you type this smooth
AutoHotKey
oh i see btw do i have to be good at math to be a dev i just started a month ago
and i'm doing grate tbh i'm learning fast and i'm facing problems with calculating stuff like it took me more than 3 days to understand how to calculate distance
wish turned out to be the easiest this out there when i sow your vid i just found out about a lot of math calculations that i would of never knew how to solve if didn't see your vid @@5uphi
Being good at math helps but it's not mandatory to be a dev you have to just keep practicing and search the internet for things you don't know and slowly over time your maths will improve naturally
alr man i'll keep working tell i become a well known dev @@5uphi
Can someone explain how he created two UnionOperations with the exact same parts to create the union, and the only thing he changes is the cframe so they both have different cframes, but when you slice the parts in-game, the two UnionOperations have different sizes?
Working lightsabers ideas 💡
i seen same with a gun like you shoot and it makes holes in models can you do by this that i said please?
I was waiting for the nuclear explosion during the demo
Does this regenerate the parts after a certain time has passed, or does it stay like that until you shut down the server?
In this video we destroy the original parts but if you wanted to you could not destroy them and bring them back after some time
My genius
How come sometimes when you are typing, we hear the keyboard and other times we dont?
Sometimes i type it sometimes autohotkey types it for me. If you hear me typing it can mean that I have deviated from the original planned code or sometimes it could just mean I'm free-styleing because I have not planned the video before hand this can be true for small videos
how extremely cool
Can you help me that make a sword skill slash like a part move forward to where the mouse is pls
And hold key and than stip skill will fire
If you messages on the discord channel we will try to help you
can you make a tutorial like this but on a sword kinda like the cutting mechanic in metal gear rising
yo realistic sword slices?
Officially made me say "You can do that on roblox!?"
Bro you deserve atleast 700k subs, we will always support you!
Also you make tutorial on roblox maths? I only saw game maths but no one made a vod on roblox math (not talking about math.clamp or any math function i am talking about the real math!!!)
Thanks for your support ❤️
I've done all the steps, but when I click it once, it doesn't click again. Is there anyone who can help?
You must of done something incorrectly double check the video to see what's different
thanks but i changed my mind i won't
Ok if you change your mind again there is also a discord channel in the description where you can get help
Hey @Suphi Kaner , great videos. I'm trying to utilize this slicing mechanic for a Fruit Ninja like game, but I'm running into an issue where the slice models sometimes doesn't slice. I think this is because the slicing doesn't behave well for moving parts.
I get this error which occurs upon the first SubtractAsync():
" Result was empty, possibly because everything got subtracted away. "
Any ideas as to how I can solve this?
i dont know if this is the actual reason but i think its because the actual laser or beam is moving by 2 studs which im pretty sure is the lowest he can do and it has to keep up with falling objects with 2 stud every time it has to move he also said in the video it tracks the starting point and the ending point to cut but it cant cut if it doesnt track the end or starting point thats why you cant just make holes inside it so with limited movement options i dont think its actually possible to fix this maybe with future techonlgy you could fix it or im competely wrong
How do you type so fast !?
hi, can you make a toturial that include this scripts but its with sword or just script with no tool?
if you study this video it should give you all the information you need to make a sword that slices
nice tutorial but is it possible to add controller support?
Anything is possible
how do i get the union to keep the original color of the sliced part?
Roblox made some changes since this video I believe there is a property you can set
@@5uphi its called "use part color"
Wonder if you can do count down when everything goes back to normal and not sliced..? This helps!!
just copy your slice folder to replicated storage and whenever your countdown is finish you can just delete the current stuff and clone the one in replicated storage and parent it to workspace
hi, when i hold down mouse button it says 'position' is not a valid member of RaycastResult
is there any way you know of that i can fix this?
Edit: nevermind i fixed it
i don't know if i missed a step but when i cut any part in half it just shows the face of where i cut it from as gray even tho the part has a diffrent color. but in the thumbnail i can see you cut a union with diffrent colors?
You'll need to set the union's "UsePartColor" property to true to make all sides of the union have the same color.
Hello, there is no Turkish automatic translation in the subtitles. Is there a way to put it in Turkish, please?
I am doing something similar for the position and serverposition magnitude checks to not fire an event too many times. The problem is, the farther away the thing your mouse is on, the more the event gets fired. Putting the mouse on the sky fires it the same as if there were no checks at all. Any way to fix this?
can you make something like if an object is coming towards a player the block will slowly stop?
Yes
Bro it's all so good and everything but how do you type so fast
AutoHotKey
Hey I'm Having a error with it. on the server side script the output issue is: Workspace.Tool.Script:10: attempt to perform arithmetic (mul) on nil and number
and the line its having trouble on is local cFrame1 = cFrame + cFrame.UpVector * 50
could you help
the error is saying your trying to multiply a number to nil on line 10 so that means that cFrame.UpVector is nil that means cFrame is not a cFrame
@@5uphi so I change it from the gray “cFrame” to the blue “CFrame” correct?
unfortunately I don't have enough information to know why your having this problem but if you follow the video correctly you should not have any problems
what if i want it to cut the player too? so it can be used for fighing?
Simply allow the RayInstance for any part you want to slice
Whts the major difference between a weld and an attachment in roblox studio
a attachment is a CFrame that is relative to a BasePart attachments on there own don't really do anything just indicate a position and orientation relative the the parent weld lets you weld BaseParts together
Hi can someone help me? it will sometimes slice but most of the time it does not slice.
checkout the discord channel in the description
@@5uphi ok thank you i got it to work, but can you make a tutorial on a bomb that blows up a part like the slicing does?
Well time for someone to remake Metal Gear Rising in roblox)
can someone please make copy and pastes of the code i don't want to spend 3 hours trying to right it down
Patreon and UA-cam members can download from discord server
How do you make the part maintane its color after cutting something like you did in the demo?
Roblox made some changes since the video I'm not sure if it's possible anymore one way would be to weld the different colors together instead of union them together
24:33 Just Saving My Time 😁
How could I make a cooldown for this, or a type of battery with limited time to use?
local battery = 100
if battery > 0 then
battery -= 1 * deltaTime
end
i dont have properties like gripUp, gripRight etc. new roblox studio update is bad bruh
anyways, tysm for the tutorial, just used plugin for 100 robux.
subscribed
Did you find a solution? Im having the same experience not being able to rotate the tool when the player holds it.
@@gcmvanloon i bought a plugin where i can rotate a tool and it worked, but it costs 100 robux
WOAH, this could be used to make procedural glass breaking
Hey, I have a problem and have no clue how to fix it. I checked the whole code there is no mistakes. SO whenever I release button then on video it is still raycasting, but in mine if I release button then he is not raycasting unless I re-equip it. Help me!
If you click quickly it can sometimes stop working there is a fixed version in discord
@@5uphilife saver thanks
the target goes trhu the baseplate can you help me?
did you black list the baseplate with the character?
@@Bodi3546 blacklist?