Universal Script 📌
9.2k Views
310 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

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
5.5M
1.0M
Bumped 57 minutes ago
Key System
Script hub
150.1k
460.5k
Bumped 2 hours ago
Key System

Script hub

Hall of Fame #6

Verified script badgeAcro Hub | Easy Key System

Script hub
3.1k
3.6k
Bumped 3 hours ago
Key System
Universal Script 📌
608
482
Bumped 3 hours ago
Script hub
21.4k
75.6k
Bumped 6 hours ago
Key System