#Teleport-like Dash

1 messages · Page 1 of 1 (latest)

indigo summit
#

i have a dash that uses moveto instead of velocity (no i do not intend to switching velocity) and im having trouble with the dash sometimes going abit upwards despite the direction having a y value of 0 (i have tested with print multiple times)

#
  • sometimes when you dash to walls it teleports you to the top of the wall and sometimes even through despite the raycast
#

i actually changed my code abit thinking that it was the torso clipping into the wall triggering this and it was still happening

hybrid lotus
#

Make the y go -

indigo summit
#

yeah uh i did that

#

the weird up thing still happens

hybrid lotus
#

Mhm

#

Yeah you have no choice

indigo summit
#

nuh uh

#

im keeping my teleport

#

im not using linear velocity

hybrid lotus
#

Either use the spring module

#

Or go with your feared option

indigo summit
#

oh yeah i've tried to make the character go anchored for testing reasons and it wasnt clipping that was causing the player to teleport to the top of/through the wall

indigo summit
soft sealBOT
#

studio** You are now Level 4! **studio

indigo summit
#

linear velocity has travel time, i dont want that

oak void
indigo summit
#

btw i updated a few things since then

#

alr hold on

#
                params.FilterType = Enum.RaycastFilterType.Exclude
                params.FilterDescendantsInstances = {char:GetChildren(), game.Workspace.Hitboxes:GetChildren()}
                local raycast = workspace:Shapecast(char:FindFirstChild("Torso"),(direction).Unit * 500, params)
                if raycast and raycast.Instance and raycast.Distance < 10 then
                    local dist = raycast.Distance
                    char:MoveTo(Pos + Vector3.new(direction.X * ((10 * (i-1)) + (direction.X * (dist - 0.2))), -2, direction.Z * (10 * (i-1)) + (direction.Z * (dist - 0.2))))
                    break
                else
                    char:MoveTo(Pos + (direction * Vector3.new(i * 10, -1, i * 10)))
                end```
#

oh what the

oak void
#

o?

indigo summit
#
params.FilterType = Enum.RaycastFilterType.Exclude
params.FilterDescendantsInstances = {char:GetChildren(), game.Workspace.Hitboxes:GetChildren()}
local raycast = workspace:Shapecast(char:FindFirstChild("Torso"),(direction).Unit * 500, params)
if raycast and raycast.Instance and raycast.Distance < 10 then
    local dist = raycast.Distance
    char:MoveTo(Pos + Vector3.new(direction.X * ((10 * (i-1)) + (direction.X * (dist - 0.2))), -2, direction.Z * (10 * (i-1)) + (direction.Z * (dist - 0.2))))
    break
else
    char:MoveTo(Pos + (direction * Vector3.new(i * 10, -1, i * 10)))
end```
#

there

#

i updated the script since then

oak void
#

@indigo summit why arent you sending the entire file that one part is useable without the other parts and i dont want to make assumption on how the other code works

indigo summit
#

the rest is some cosmetics and just when the palyer stands still

#

when the player stands still the direction is replaced to lookvector

oak void
indigo summit
#

er

#

ngl idk how to send files

oak void
#

just download a copy

oak void
indigo summit
#

wouldnt that download the entire game?

#

how to make it only download the script?

oak void
#

whats the problem with the whole game

#

its just the fastest and easiest for everybody

#

nobody here is going to steal ur game just send it

indigo summit
#

eh fine

#

serverscriptservice.ToolService, scroll down until you see if i == "HyperStep"

oak void
#

you sent the wrong thing

#

u need the one the ends in .rbxl

#

not .lock

indigo summit
#

mb

oak void
#

here change the local script underthe hyperstep tool to this

[removed]

#

@indigo summit

indigo summit
#

hai

#

ooh

oak void
#

you dont teleport through walls now

indigo summit
#

can you tell me what you changed

#

i want to actually learn 🤯

oak void
#

umm

indigo summit
#

(also you didnt change anything on the server script? i was so sure thats where the problem was)

oak void
#

so i didnt fix ur code

#

but like i did

#

all i did was if ur torso is touching a part not to hyperstep:FireServer

#

because that was the only time it happened

#

idk whats wrong with the server code

indigo summit
#

ah ic

#

alright thx man

#

i think its more convinient if i coded this part myself ngl

oak void
#

ok

indigo summit
#

no offense but copy pasting just means i have to reread and change my understanding of the code

oak void
#

i understand

indigo summit
#

still rather jank unfortunately...

#

(and clipping is still a problem)

#

its getting late i'll fix this tommorow i guess

#

really appreciate the effort though

oak void
#

i cant clip through anything so idk

indigo summit
#

Btw you mind deleting the downloads?

#

From this thread atleast

#

Abit paranoid for some reason

oak void
#

i will but ur fine
no need to be paranoid