You can write your topic however you want, but you need to answer these questions:
-
What do you want to achieve? Keep it simple and clear!
I want to be able to rotate the player at a 90 degree angle to wherever I’m pointing my mouse to. -
What is the issue? Include screenshots / videos if possible!
I rotate at a 90 degree angle to where the player is facing instead at where I’m pointing.
local move = meshes:WaitForChild("FireVortex")
local ra1 = move:WaitForChild("Red Aura 1")
local ra2 = move:WaitForChild("Red Aura 2")
local vortex = move:WaitForChild("Vortex")
local ya1 = move:WaitForChild("Yellow Aura 1")
local ya2 = move:WaitForChild("Yellow Aura 2")
debounce = false
canTouch = false
game.ReplicatedStorage.FireVortex.OnServerEvent:Connect(function(player, direction)
local character = player.Character
local getchar = character:GetChildren()
local humanoid = character:WaitForChild("Humanoid")
local humrp = character:WaitForChild("HumanoidRootPart")
local newRa1 = ra1:Clone()
local newRa2 = ra2:Clone()
local newVortex = vortex:Clone()
local newYa1 = ya1:Clone()
local newYa2 = ya2:Clone()
local weld1 = Instance.new("Weld", newRa1)
local weld2 = Instance.new("Weld", newRa2)
local weld3 = Instance.new("Weld", newVortex)
local weld4 = Instance.new("Weld", newYa1)
local weld5 = Instance.new("Weld", newYa2)
local bodyVelocity = Instance.new("BodyVelocity", humrp)
bodyVelocity.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
bodyVelocity.Velocity = direction.lookVector * 50 --(character.HumanoidRootPart.CFrame.lookVector*50)
humrp.CFrame = humrp.CFrame * CFrame.Angles(math.rad(90),0,0)
for i, v in pairs(getchar) do
if v:IsA("Part") then
--character.HumanoidRootPart.Transparency = 1
v.Transparency = 1
end
if v:IsA("Accessory") then
v.Handle.Transparency = 1
end
end
newRa1.Parent = workspace
newRa2.Parent = workspace
newVortex.Parent = workspace
newYa1.Parent = workspace
newYa2.Parent = workspace
newRa1.Anchored = false
newRa2.Anchored = false
newVortex.Anchored = false
newYa1.Anchored = false
newYa2.Anchored = false
newRa1.CanCollide = false
newRa2.CanCollide = false
newVortex.CanCollide = false
newYa1.CanCollide = false
newYa2.CanCollide = false
newRa1.CFrame = humrp.CFrame
newRa2.CFrame = humrp.CFrame
newVortex.CFrame = humrp.CFrame
newYa1.CFrame = humrp.CFrame
newYa2.CFrame = humrp.CFrame
weld1.Part0 = newRa1
weld1.Part1 = humrp
weld2.Part0 = newRa2
weld2.Part1 = humrp
weld3.Part0 = newVortex
weld3.Part1 = humrp
weld4.Part0 = newYa1
weld4.Part1 = humrp
weld5.Part0 = newYa2
weld5.Part1 = humrp
--humrp.CFrame = CFrame.new((humrp.CFrame + CFrame.new(0,0,-3)).p,direction.p)
while wait()do
newRa1.CFrame = newRa1.CFrame * CFrame.Angles(0, 0.2, 0)
newRa2.CFrame = newRa2.CFrame * CFrame.Angles(0, 0.2, 0)
newVortex.CFrame = newVortex.CFrame * CFrame.Angles(0, 0.2, 0)
newYa1.CFrame = newYa1.CFrame * CFrame.Angles(0, 0.2, 0)
newYa2.CFrame = newYa2.CFrame * CFrame.Angles(0, 0.2, 0)
local DamageAmount = 15
newVortex.Touched:Connect(function(hit)
local hum = hit.Parent:FindFirstChild("Humanoid")
if hum and canTouch == false then
print(hit.Parent)
if hit.Parent.Name ~= player.Name then
canTouch = true
print(hit.Parent)
hum.Health = hum.Health - DamageAmount
wait(2)
canTouch = false
end
end
wait(2)
newRa1:Destroy()
newRa2:Destroy()
newVortex:Destroy()
newYa1:Destroy()
newYa2:Destroy()
bodyVelocity:Destroy()
humrp.CFrame = humrp.CFrame * CFrame.Angles(0,0,0)
for i, v in pairs(getchar) do
if v:IsA("Part") then
v.Transparency = 0
character:WaitForChild("HumanoidRootPart").Transparency = 1
end
if v:IsA("Accessory") then
v.Handle.Transparency = 0
end
end
end)
end
end)
-
What solutions have you tried so far? Did you look for solutions on the Developer Hub?
Youtube videos, Roblox dev forum

