I have been working on a script and am fairly new to scripting. I was wondering if someone could help me make the cube rotate as it is hovering above me
local LocalPlayer = game:GetService("Players").LocalPlayer
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
local Model = Instance.new("Model", Character)
local Humanoid = Instance.new("Humanoid", Model)
local Cubix = Instance.new("Part", Model)
Cubix.Name = "Head"
Cubix.Shape = Enum.PartType.Block
Cubix.CanCollide = false
Cubix.BrickColor = BrickColor.new("Black")
Cubix.Transparency = 0
Cubix.Size = Vector3.new(1.5, 1.5, 1.5)
Cubix.TopSurface = Enum.SurfaceType.Smooth
Cubix.BottomSurface = Enum.SurfaceType.Smooth
Model.Name = "lpt423's Cubix"
Humanoid.MaxHealth = 0
Humanoid.Health = 0
local BodyPosition = Instance.new("BodyPosition", Cubix)
while wait(0) do
BodyPosition.Position = Character.Head.CFrame:pointToWorldSpace(Vector3.new(3, 1, 0))
end
It's not much, but there's one key function I want and that is for the cube to rotate. Can anyone provide some insight? Thanks!
