If you've ever seen My Hero Academia, an anime show, I'm trying to make a Todoroki Ice Slide move, I'm not entirely done with it yet, but everything but one thing that I've done so far works. This script makes clones of a part inside of the script, and puts them behind the player to look like the player is using ice to push him/herself forward. It creates the parts, but every part it clones, automatically gets put on top of everything else and it makes it look weird.
UIS.InputBegan:connect(function(key)
if key.KeyCode == iceSlideKey and enabled == true then
keyDown = true
while keyDown == true do
char.Humanoid.Jump = true
char.HumanoidRootPart.Velocity = char.HumanoidRootPart.CFrame.lookVector*100
local slide = iceSlide:Clone()
slide.Position = char.HumanoidRootPart.Position - char.HumanoidRootPart.CFrame.lookVector*10 - Vector3.new(0,10,0)
slide.Parent = game.Workspace
slide.Anchored = true
slide.Orientation = char.HumanoidRootPart.Orientation + Vector3.new(0,180,0)
slide.CanCollide = false
wait(0.1)
end
end
end)
UIS.InputEnded:connect(function(key)
if key.KeyCode == iceSlideKey and keyDown == true then
keyDown = false
end
end)
By the way, this isn't the full script, so if you test it, it won't work. Here's a gif of what it does. https://gyazo.com/a7bc1d36316ab3e7009a7421e02163ea

8 comments
mk ill try it
I changed the set position line from position to cframe, but nothing changed, is there a way I'm supposed to use cframe to do orientation?
Also it worked as intended before i put the orientation part in, and only started messing up when i put it in
Actually, I just noticed, when I remove the orientation part, it still rotates it thanks to the cframe, but it's backwards...
Thanks though!
o-okay. Glad you got it..?
yeah it fixed my problem, i just had to rotate the mesh around lol
Alright good