#Teleport-like Dash
1 messages · Page 1 of 1 (latest)
- 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
Make the y go -
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
(btw it got cut off but i replaced raycast with shapecast)
why arent you using velocity
** You are now Level 4! **
i want it to be instant
linear velocity has travel time, i dont want that
could you send the code a text and not an image?
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
o?
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
@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
this is essentially the dash system
the rest is some cosmetics and just when the palyer stands still
when the player stands still the direction is replaced to lookvector
doesnt matter just makes it 10x easier for the people helping if you send the entire file
the bug could be in the part your not sending
just download a copy
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
eh fine
serverscriptservice.ToolService, scroll down until you see if i == "HyperStep"
mb
you dont teleport through walls now
umm
(also you didnt change anything on the server script? i was so sure thats where the problem was)
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
ah ic
alright thx man
i think its more convinient if i coded this part myself ngl
ok
no offense but copy pasting just means i have to reread and change my understanding of the code
i understand
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
i cant clip through anything so idk
Btw you mind deleting the downloads?
From this thread atleast
Abit paranoid for some reason
i will but ur fine
no need to be paranoid