What Do You Wanna Achieve?
Well, I wanna achieve somewhat exactly block placement system like roblox bedwars. They got:
Prediction for the next block
Front Bridge
Side Bridge
If someone can explain how to do it that would be appreciated (or write of of the code )
1 Like
well you gonna have to try something yourself, no one is going to write you the whole code…
you didnt even try doing anything…
Use that search bar up top and try block placement , sandbox , grid placement , building games or whatever it takes to get some good results.
1 Like
Use GetMouse() to get the location of the mouse hit. And for the prediction of the next block would be difficult. But of course you can use the information of the mouse hit check if the block can add a block in front of it.
1 Like
good tip on where to start
learn how to use raycasting as to detect where they might place the block and where they will place the block
remote functions
and simple luau
good places to learn are alvinblox, peasfactory and thedevking
1 Like
none helped thats why I am asking here
So are predictions just invisble parts arround it? which comes when mouse is hovered
You can also use raycast like what @grandhappy said.
i am helping, im trying to teach you how to fish instead of giving you a fish
no, basically you can detect where the mouse is aiming then replicated a somewhat transparent block to that mouse direction
ProIsEpix
(Dxlusional)
May 7, 2022, 9:07am
11
I tried doing something
but after 13 blocks placed it just crashes server
send the code you could have something that infinitely loops
ProIsEpix
(Dxlusional)
May 7, 2022, 9:07am
13
did that but after 13+ blocks place crashes server
send the code as it could be a infinite loop or something that is taking up alot of server resources
ProIsEpix
(Dxlusional)
May 7, 2022, 9:09am
15
Using while loop is useless and can cause lag. You should use mouse.Move:Connect(function() this updates every time you move your cursor.
ProIsEpix
(Dxlusional)
May 7, 2022, 9:09am
17
it wont affect at first but later after placing blocks you will see that you get disocnnected
no send the code i cant help if you just sent the game
ProIsEpix
(Dxlusional)
May 7, 2022, 9:10am
19
I used click detectors and let me send the script
ProIsEpix
(Dxlusional)
May 7, 2022, 9:10am
20
sending wait let me revert versions to the one which had the code