Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Credits: Farhat & Pio
- --[[]
- getgenv().offset = 100
- getgenv().spinspeed = 1
- getgenv().circlespeed = 1
- loadstring(game:HttpGet('https://pastebin/raw/3H5vkiVr'))()
- --]]
- getgenv().offset = getgenv().offset or 100
- getgenv().spinspeed = getgenv().spinspeed or 1
- getgenv().circlespeed = getgenv().circlespeed or 1
- local offset = getgenv().offset
- local spinspeed = getgenv().spinspeed
- local circleSpeed = getgenv().circlespeed
- local players = cloneref(game:GetService("Players"))
- local RunService = cloneref(game:GetService("RunService"))
- local lp = players.LocalPlayer
- local char = lp.Character or lp.CharacterAdded:Wait()
- local root = char:WaitForChild("HumanoidRootPart")
- local head = char:WaitForChild("Head")
- local upper = char:WaitForChild("UpperTorso")
- local lower = char:WaitForChild("LowerTorso")
- local rua, rla, rh = char.RightUpperArm, char.RightLowerArm, char.RightHand
- local lua, lla, lh = char.LeftUpperArm, char.LeftLowerArm, char.LeftHand
- local rul, rll = char.RightUpperLeg, char.RightLowerLeg
- local lul, lll = char.LeftUpperLeg, char.LeftLowerLeg
- local origin = root.CFrame.Position
- RunService.Heartbeat:Connect(function()
- local t = tick()
- local orbitAngle = t * circleSpeed * 2 * math.pi
- local spinAngle = t * spinspeed * 2 * math.pi
- local px = origin.X + math.cos(orbitAngle) * offset
- local py = origin.Y
- local pz = origin.Z + math.sin(orbitAngle) * offset
- local pos = Vector3.new(px, py, pz)
- local tx = -math.sin(orbitAngle)
- local tz = math.cos(orbitAngle)
- local tangent = Vector3.new(tx, 0, tz)
- local baseCFrame = CFrame.new(pos, pos + tangent)
- local cf = baseCFrame * CFrame.Angles(0, 0, spinAngle)
- head.CFrame = cf * CFrame.new(0, -offset / 2, 0)
- upper.CFrame = cf * CFrame.new(0, offset, 0)
- lower.CFrame = head.CFrame
- rua.CFrame = cf * CFrame.new(offset, offset, 0)
- rla.CFrame = cf * CFrame.new(offset, offset * 2, 0)
- rh.CFrame = rla.CFrame
- lua.CFrame = cf * CFrame.new(-offset, offset, 0)
- lla.CFrame = cf * CFrame.new(-offset, offset * 2, 0)
- lh.CFrame = lla.CFrame
- rul.CFrame = cf * CFrame.new(offset, offset, 0)
- rll.CFrame = cf * CFrame.new(offset, offset - 2, 0)
- lul.CFrame = cf * CFrame.new(-offset, offset, 0)
- lll.CFrame = cf * CFrame.new(-offset, offset - 2, 0)
- end)
Advertisement
Add Comment
Please, Sign In to add comment