Hey yall i haven’t been here in a while.
So earlier today i started to work on a “Rasenshuriken” script.
It was looking smooth until i started to apply the CFrames.
I looked over the code and i couldn’t see what i did wrong, yet it still wouldn’t work properly.
Rasenshuriken.OnServerEvent:Connect(function(Player, Val, Power)
local Character = Player.Character
local RightHand = Character:WaitForChild("RightHand")
local HumanoidRootPart = Character:WaitForChild("HumanoidRootPart")
local Humanoid = Character:WaitForChild("Humanoid")
local Folder = Instance.new("Folder")
Folder.Name = Player.Name.." Attack's Folder"
Folder.Parent = Character
if Val == false then
HumanoidRootPart.Anchored = true
Object.Parent = Folder
local Part = Object.Part
local MeshPart = Object.MeshPart
local Weld = FunctionHandler:Weld(Part, MeshPart)
Part.CFrame = RightHand.CFrame * CFrame.new(0, 5, 0)
MeshPart.CFrame = Part.CFrame
local Weld2 = FunctionHandler:Weld(RightHand, Part)
--[[local PartSpin = coroutine.wrap(function()
local Nick = 400
repeat
MeshPart.Rotation = Vector3.new( 0, Nick, 0)
wait(.01)
Nick += 3000
until
i == h
end)]-]]
else
HumanoidRootPart.Anchored = false
Debris:AddItem(Folder, 4)
end
end)
https://gyazo.com/884715f953d7e3a2557dd55f22c648ab
Any help would be appreciated