Universal Script 📌
9.3k Views
360 Executions

spin

Universal Script 📌
proohio
proohioPublished 10
2 years 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

makes your player spin how to use read script

Updates

  1. Script edited: Create script

View Raw
local plrs = game.Players
local plr = plrs.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()

getgenv().SpinEnabled = true -- toggle false = disable true = enable
local spinSpeed = 20 -- change number on the spinSpeed to change speed

-- spin by proohio very pro

local function getRoot(char)
	return char:FindFirstChild("HumanoidRootPart") or char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso")
end

local root = getRoot(char)
if root then
	if getgenv().SpinEnabled then
		for i, v in pairs(root:GetChildren()) do
			if v.Name == "Spinning" then
				v:Destroy()
			end
		end
		local Spin = Instance.new("BodyAngularVelocity")
		Spin.Name = "Spinning"
		Spin.Parent = root
		Spin.MaxTorque = Vector3.new(0, math.huge, 0)
		Spin.AngularVelocity = Vector3.new(0, spinSpeed, 0)
	else
		for i, v in pairs(root:GetChildren()) do
			if v.Name == "Spinning" then
				v:Destroy()
			end
		end
	end
end



Comments

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

Tags

More universal scripts

See all
Script hub
32
0
Approved 20 minutes ago

Script hub

Kitty menu

Universal Script 📌
2.2k
24.3k
Bumped 1 hour ago
Script hub
28
0
Approved 1 hour ago
Universal Script 📌
1.4M
697.2k
Bumped 2 hours ago
Universal Script 📌
42
11
Approved 2 hours ago