Certainly! To clarify, you want a Lua script where 5 "alt players" visually spin around a specified player in a wheel-like formation, but without them actually orbiting — more like the players are rotating their facing direction (their orientation) around the specified player, but their positions remain fixed?
Or do you want the 5 altplayers to stand fixed at positions around the specified player (like points on a wheel), but each altplayer spins on the spot so that their facing directions revolve around the specified player (like they are all pointing tangent to a circle around the player)?
Assuming you want the 5 altplayers positioned evenly spaced in a circle around the specified player, and these alts are not moving around the circle (no orbit), but their facing direction spins continuously around the player, making them appear to turning their heads in a circle around the player — this is what "wheel looking direction but not in an orbit" sounds like.
Here’s a Lua script example — this uses Roblox API, as Lua is often used there for game scripting. I’ll assume you have access to the players’ parts, and I will continuously update the alt players' CFrame to rotate their orientation to face directions spinning smoothly around the specified player.
Explanation:
specifiedPlayer: The player at the center
- 5 alt players are positioned on fixed points on a circle radius R
- Each alt's position is fixed but their lookVector rotates smoothly around the center player at a certain angular speed
local RunService = game:GetService("RunService")
local Players = game:GetService("Players")
local specifiedPlayer = Players:FindFirstChild("PlayerName") -- replace with actual name or get dynamically
if not specifiedPlayer or not specifiedPlayer.Character or not specifiedPlayer.Character:FindFirstChild("HumanoidRootPart") then
warn("Specified player or their HumanoidRootPart not found")
return
end
local centerPart = specifiedPlayer.Character.HumanoidRootPart
-- Set up alt players (replace with your actual alt player instances)
local altPlayers = {
workspace:FindFirstChild("AltPlayer1"),
workspace:FindFirstChild("AltPlayer2"),
workspace:FindFirstChild("AltPlayer3"),
workspace:FindFirstChild("AltPlayer4"),
workspace:FindFirstChild("AltPlayer5"),
}
-- Verify all alt players are found and have HumanoidRootPart
for i, alt in ipairs(altPlayers) do
if not alt or not alt:FindFirstChild("HumanoidRootPart") then
warn("Alt player " .. i .. " or their HumanoidRootPart not found.")
return
end
end
local radius = 10
local numAlts = #altPlayers
local angularSpeed = math.rad(45) -- radians per second, adjust for spin speed
-- Calculate fixed positions on circle around center
local altPositions = {}
for i = 1, numAlts do
local angle = (2 * math.pi / numAlts) * (i - 1)
local pos = centerPart.Position + Vector3.new(math.cos(angle) * radius, 0, math.sin(angle) * radius)
altPositions[i] = pos
-- place alt at starting position
local altHRP = altPlayers[i].HumanoidRootPart
altHRP.CFrame = CFrame.new(pos)
end
local startTime = tick()
RunService.Heartbeat:Connect(function()
local elapsed = tick() - startTime
local centerPos = centerPart.Position
for i, alt in ipairs(altPlayers) do
local altHRP = alt.HumanoidRootPart
-- Keep alt in fixed positions
local pos = altPositions[i]
-- Calculate the spinning look direction around the center player
-- The look direction angle rotates over time.
-- Base angle is from center to the alt fixed position
local baseVector = (pos - centerPos).Unit -- direction from center to alt
local baseAngle = math.atan2(baseVector.Z, baseVector.X)
-- Add rotation over time
local lookAngle = baseAngle + elapsed * angularSpeed
-- Calculate lookVector pointing tangent to circle (optional)
-- For “wheel looking direction” tangential, we want perpendicular vector:
-- Tangent to circle is ( -sin(angle), 0, cos(angle) )
local lookVector = Vector3.new(-math.sin(lookAngle), 0, math.cos(lookAngle))
-- Construct new CFrame at pos looking towards lookVector direction
local newCFrame = CFrame.new(pos, pos + lookVector)
altHRP.CFrame = newCFrame
end
end)
How It Works:
- The 5 alt players get positioned evenly spaced in a circle of radius 10 studs around the specified player.
- Each frame (Heartbeat) the script updates the alt players’
CFrame rotation, making them face directions that spin smoothly around the center player.
- The positions stay fixed. Only the facing direction spins, making it look like they are "turning their heads" in a circle.
Adjustments you can make:
- Change
radius to set how far out the alt players are.
- Change
angularSpeed to make them spin faster or slower.
- Replace
"PlayerName" with your center player's actual username or pass in dynamically.
- Replace workspace alt player models with your actual alt players or NPC models.
If you want the alts to actually orbit, or spin their entire body rather than just rotation to face a direction, or any other variant, please let me know!