Universal Script 📌
4.5k Views
451 Executions

AHH rotation script

Universal Script 📌
salayevmuhamed
salayevmuhamedFirst script
1 year ago
Get an executor
Please login to perform these actions:

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

so erm, it makes you rotate!!! Very cool huh -some guy that played with sugru a while ago

View Raw
local Players = game:GetService("Players")
local player = Players.LocalPlayer

-- === SETTINGS ===
local spinning = true
local rotateX, rotateY, rotateZ = true, true, true
local angleX, angleY, angleZ = 90, 90, 90
local delayMin, delayMax = 5, 10

local spinThread = nil

-- === ROTATION FUNCTION ===
local function startSpinning(character)
	local rootPart = character:WaitForChild("HumanoidRootPart")
	while spinning and character and character.Parent do
		local rx = rotateX and math.rad(math.random(-angleX, angleX)) or 0
		local ry = rotateY and math.rad(math.random(-angleY, angleY)) or 0
		local rz = rotateZ and math.rad(math.random(-angleZ, angleZ)) or 0

		-- Cumulative rotation (adds on top of existing orientation)
		rootPart.CFrame = rootPart.CFrame * CFrame.Angles(rx, ry, rz)

		task.wait(math.random(delayMin, delayMax))
	end
end

local function startOrStopSpinning(character)
	if spinThread then
		spinThread = nil
	end
	if spinning and character then
		spinThread = coroutine.create(startSpinning)
		coroutine.resume(spinThread, character)
	end
end

-- === GUI CREATION ===
local function createUI()
	local screenGui = Instance.new("ScreenGui", player:WaitForChild("PlayerGui"))
	screenGui.Name = "RotationControlGUI"


Comments

0
Log in to join the conversation. Login
No comments yet. Be the first!

More universal scripts

See all
Script hub
178.9k
1.7M
Bumped 5 hours ago
Key System
Universal Script 📌
9.2k
31.9k
Bumped 6 hours ago
Script hub
49.9k
12.4k
Bumped 7 hours ago
Key System
Paid
Script hub
5.5M
1.1M
Bumped 11 hours ago
Key System
Script hub
20.7k
4.0k
Bumped 12 hours ago
Key System
Paid
Universal Script 📌
764
233
Approved 17 hours ago
Universal Script 📌
669
2.9k
Approved 18 hours ago