im trying to weld a part under the player and the change to rotation so that its horizontal but no matter what i do it doesnt rotate AT ALL
https://gyazo.com/e8427278929fcc39d52c4e5a829f921d
heres whats happening, im trying to make it sit at the base of the player and be a ring around them but its vertical no matter what i do to change the rotation or cframe or anything
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
local replicatedStorage = game:GetService("ReplicatedStorage")
replicatedStorage.RemoteEvents.NetVFX.OnClientEvent:Connect(function(Net,equipped)
if equipped == true then
local range = Net.Config.Range.Value
local height = (character:WaitForChild("HumanoidRootPart").Size.Y / 2) + character.Humanoid.HipHeight
local offset = CFrame.new(0,-height,0)
local p = replicatedStorage.VFX:WaitForChild("RangeVFX"):Clone()
p.Name = "Range"
--p.Material = Enum.Material.ForceField
--p.Transparency = 0.3
p.Size = Vector3.new(.3,range * 2,range * 2)
p.CanCollide = false
p.CastShadow = false
p.Anchored = false
local weld = Instance.new("Weld")
weld.Part0 = p
weld.Part1 = character:WaitForChild("HumanoidRootPart")
weld.Parent = p
p.Parent = character
p.CFrame = character:WaitForChild("HumanoidRootPart").CFrame * offset * CFrame.Angles(0,0,math.rad(90))
else
if character:FindFirstChild("Range") then
character:FindFirstChild("Range"):Destroy()
end
end
end)