Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
- do
- script.Parent = owner.Character
- local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
- local function NewFakeEvent()
- local Bind = Instance.new("BindableEvent")
- local Fake;Fake = {Connections = {},
- fakeEvent=true;
- Connect=function(self,Func)
- Bind.Event:connect(Func)
- self.Connections[Bind] = true
- return setmetatable({Connected = true},{
- __index = function (self,Index)
- if Index:lower() == "disconnect" then
- return function() Fake.Connections[Bind] = false;self.Connected = false end
- end
- return Fake[Index]
- end;
- __tostring = function() return "Connection" end;
- })
- end}
- Fake.connect = Fake.Connect;return Fake;
- end
- local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
- local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
- local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
- self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
- end};ContextActionService.UnBindAction = ContextActionService.BindAction
- local function TriggerEvent(self,Event,...)
- local Trigger = Mouse[Event]
- if Trigger and Trigger.fakeEvent and Trigger.Connections then
- for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
- end
- end
- Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
- Event.OnServerEvent:Connect(function(FiredBy,Input)
- if FiredBy.Name ~= owner.Name then return end
- if Input.MouseEvent then
- Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
- else
- local Begin = Input.UserInputState == Enum.UserInputState.Begin
- if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
- for _,Action in pairs(ContextActionService.Actions) do
- for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
- end
- Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
- UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
- end
- end)
- InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
- Event.Parent = NLS([[
- local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
- local Input = function(Input,gameProcessedEvent)
- if gameProcessedEvent then return end
- Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
- end
- UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
- local Hit,Target
- while wait(1/30) do
- if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
- Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
- end
- end
- ]],owner.Character)
- end
- RealGame = game;game = setmetatable({},{
- __index = function (self,Index)
- local Sandbox = function (Thing)
- if Thing:IsA("Player") then
- local RealPlayer = Thing
- return setmetatable({},{
- __index = function (self,Index)
- local Type = type(RealPlayer[Index])
- if Type == "function" then
- if Index:lower() == "getmouse" or Index:lower() == "mouse" then
- return function (self)return InternalData["Mouse"] end
- end
- return function (self,...)return RealPlayer[Index](RealPlayer,...) end
- end
- return RealPlayer[Index]
- end;
- __tostring = function(self) return RealPlayer.Name end
- })
- end
- end
- if RealGame[Index] then
- local Type = type(RealGame[Index])
- if Type == "function" then
- if Index:lower() == "getservice" or Index:lower() == "service" then
- return function (self,Service)
- local FakeServices = {
- ["players"] = function()
- return setmetatable({},{
- __index = function (self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...)end
- else
- if Index2:lower() == "localplayer" then return Sandbox(owner) end
- return RealService[Index2]
- end
- end;
- __tostring = function(self) return RealGame:GetService(Service).Name end
- })
- end;
- ["contextactionservice"] = function() return InternalData["ContextActionService"] end;
- ["userinputservice"] = function() return InternalData["UserInputService"] end;
- ["runservice"] = function()
- return setmetatable({},{
- __index = function(self2,Index2)
- local RealService = RealGame:GetService(Service)
- local Type2 = type(Index2)
- if Type2 == "function" then
- return function (self,...) return RealService[Index2](RealService,...) end
- else
- local RunServices = {
- ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
- ["renderstepped"] = function() return RealService["Stepped"] end
- }
- if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
- return RealService[Index2]
- end
- end
- })
- end
- }
- if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
- return RealGame:GetService(Service)
- end
- end
- return function (self,...) return RealGame[Index](RealGame,...) end
- else
- if game:GetService(Index) then return game:GetService(Index) end
- return RealGame[Index]
- end
- end
- return nil
- end
- });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
- --[[ A script By makhail07
- Discord demitasse#2958
- Description:
- Also Join Our Discord Server :D discord.gg/fhhzeNq
- ]]--
- local IDs = {340106355,927529620,876981900,398987889}
- function swait(num)
- if num==0 or num==nil then
- game:service'RunService'.Stepped:wait(0)
- else
- for i=0,num do
- game:service'RunService'.Stepped:wait(0)
- end
- end
- end
- function thread(f)
- coroutine.resume(coroutine.create(f))
- end
- function clerp(a, b, t)
- local qa = {
- QuaternionFromCFrame(a)
- }
- local qb = {
- QuaternionFromCFrame(b)
- }
- local ax, ay, az = a.x, a.y, a.z
- local bx, by, bz = b.x, b.y, b.z
- local _t = 1 - t
- return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
- end
- function QuaternionFromCFrame(cf)
- local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
- local trace = m00 + m11 + m22
- if trace > 0 then
- local s = math.sqrt(1 + trace)
- local recip = 0.5 / s
- return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
- else
- local i = 0
- if m00 < m11 then
- i = 1
- end
- if m22 > (i == 0 and m00 or m11) then
- i = 2
- end
- if i == 0 then
- local s = math.sqrt(m00 - m11 - m22 + 1)
- local recip = 0.5 / s
- return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
- elseif i == 1 then
- local s = math.sqrt(m11 - m22 - m00 + 1)
- local recip = 0.5 / s
- return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
- elseif i == 2 then
- local s = math.sqrt(m22 - m00 - m11 + 1)
- local recip = 0.5 / s
- return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
- end
- end
- end
- function QuaternionToCFrame(px, py, pz, x, y, z, w)
- local xs, ys, zs = x + x, y + y, z + z
- local wx, wy, wz = w * xs, w * ys, w * zs
- local xx = x * xs
- local xy = x * ys
- local xz = x * zs
- local yy = y * ys
- local yz = y * zs
- local zz = z * zs
- return CFrame.new(px, py, pz, 1 - (yy + zz), xy - wz, xz + wy, xy + wz, 1 - (xx + zz), yz - wx, xz - wy, yz + wx, 1 - (xx + yy))
- end
- function QuaternionSlerp(a, b, t)
- local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
- local startInterp, finishInterp
- if cosTheta >= 1.0E-4 then
- if 1 - cosTheta > 1.0E-4 then
- local theta = math.acos(cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((1 - t) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = 1 - t
- finishInterp = t
- end
- elseif 1 + cosTheta > 1.0E-4 then
- local theta = math.acos(-cosTheta)
- local invSinTheta = 1 / math.sin(theta)
- startInterp = math.sin((t - 1) * theta) * invSinTheta
- finishInterp = math.sin(t * theta) * invSinTheta
- else
- startInterp = t - 1
- finishInterp = t
- end
- return a[1] * startInterp + b[1] * finishInterp, a[2] * startInterp + b[2] * finishInterp, a[3] * startInterp + b[3] * finishInterp, a[4] * startInterp + b[4] * finishInterp
- end
- function rayCast(Position, Direction, Range, Ignore)
- return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
- end
- --Wait what okay
- wait()
- local plr = game:service'Players'.LocalPlayer
- local char = plr.Character
- local hum = char.Humanoid
- local ra = char["Right Arm"]
- local la= char["Left Arm"]
- local rl= char["Right Leg"]
- local ll = char["Left Leg"]
- local hed = char.Head
- local root = char.HumanoidRootPart
- local rootj = root.RootJoint
- local tors = char.Torso
- local mouse = plr:GetMouse()
- local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
- local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
- local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
- local maincolor = BrickColor.new("Magenta")
- cf = CFrame.new
- angles = CFrame.Angles
- attack = false
- euler=CFrame.fromEulerAnglesXYZ
- equipped = false
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RSH, LSH = nil, nil
- RW = Instance.new("Weld")
- LW = Instance.new("Weld")
- RH = tors["Right Hip"]
- LH = tors["Left Hip"]
- RSH = tors["Right Shoulder"]
- LSH = tors["Left Shoulder"]
- RSH.Parent = nil
- LSH.Parent = nil
- RW.Name = "RW"
- RW.Part0 = tors
- RW.C0 = CFrame.new(1.5, 0.5, 0)
- RW.C1 = CFrame.new(0, 0.5, 0)
- RW.Part1 = ra
- RW.Parent = tors
- LW.Name = "LW"
- LW.Part0 = tors
- LW.C0 = CFrame.new(-1.5, 0.5, 0)
- LW.C1 = CFrame.new(0, 0.5, 0)
- LW.Part1 = la
- LW.Parent = tors
- print('User is '..plr.Name)
- Effects = {}
- ArtificialHB = Instance.new("BindableEvent", script)
- ArtificialHB.Name = "Heartbeat"
- script:WaitForChild("Heartbeat")
- frame = 1 / 60
- tf = 0
- allowframeloss = false
- tossremainder = false
- lastframe = tick()
- script.Heartbeat:Fire()
- game:GetService("RunService").Heartbeat:connect(function(s, p)
- tf = tf + s
- if tf >= frame then
- if allowframeloss then
- script.Heartbeat:Fire()
- lastframe = tick()
- else
- for i = 1, math.floor(tf / frame) do
- script.Heartbeat:Fire()
- end
- lastframe = tick()
- end
- if tossremainder then
- tf = 0
- else
- tf = tf - frame * math.floor(tf / frame)
- end
- end
- end)
- local RbxUtility = LoadLibrary("RbxUtility")
- local Create = RbxUtility.Create
- function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
- if hit.Parent == nil then
- return
- end
- local h = hit.Parent:FindFirstChildOfClass("Humanoid")
- for _, v in pairs(hit.Parent:children()) do
- if v:IsA("Humanoid") then
- h = v
- end
- end
- if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
- warn'No R15 allowed'
- hit.Parent:FindFirstChild("Head"):BreakJoints()
- end
- if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
- if hit.Parent:findFirstChild("DebounceHit") ~= nil then
- if hit.Parent.DebounceHit.Value == true then
- return
- end
- end
- if insta == true then
- hit.Parent:FindFirstChild("Head"):BreakJoints()
- end
- local c = Create("ObjectValue"){
- Name = "creator",
- Value = game:service("Players").LocalPlayer,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- if HitSound ~= nil and HitPitch ~= nil then
- CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
- end
- local Damage = math.random(minim, maxim)
- local blocked = false
- local block = hit.Parent:findFirstChild("Block")
- if block ~= nil then
- if block.className == "IntValue" then
- if block.Value > 0 then
- blocked = true
- block.Value = block.Value - 1
- print(block.Value)
- end
- end
- end
- if blocked == false then
- h.Health = h.Health - Damage
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
- else
- h.Health = h.Health - (Damage / 2)
- ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
- end
- if Type == "Knockdown" then
- local hum = hit.Parent.Humanoid
- hum.PlatformStand = true
- coroutine.resume(coroutine.create(function(HHumanoid)
- swait(1)
- HHumanoid.PlatformStand = false
- end), hum)
- local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
- local bodvol = Create("BodyVelocity"){
- velocity = angle * knockback,
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- local rl = Create("BodyAngularVelocity"){
- P = 3000,
- maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
- angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodvol, .5)
- game:GetService("Debris"):AddItem(rl, .5)
- elseif Type == "Normal" then
- local vp = Create("BodyVelocity"){
- P = 500,
- maxForce = Vector3.new(math.huge, 0, math.huge),
- velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
- }
- if knockback > 0 then
- vp.Parent = hit.Parent.Torso
- end
- game:GetService("Debris"):AddItem(vp, .5)
- elseif Type == "Up" then
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, .5)
- elseif Type == "DarkUp" then
- coroutine.resume(coroutine.create(function()
- for i = 0, 1, 0.1 do
- swait()
- Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
- end
- end))
- local bodyVelocity = Create("BodyVelocity"){
- velocity = Vector3.new(0, 20, 0),
- P = 5000,
- maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
- Parent = hit,
- }
- game:GetService("Debris"):AddItem(bodyVelocity, 1)
- elseif Type == "Snare" then
- local bp = Create("BodyPosition"){
- P = 2000,
- D = 100,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- game:GetService("Debris"):AddItem(bp, 1)
- elseif Type == "Freeze" then
- local BodPos = Create("BodyPosition"){
- P = 50000,
- D = 1000,
- maxForce = Vector3.new(math.huge, math.huge, math.huge),
- position = hit.Parent.Torso.Position,
- Parent = hit.Parent.Torso,
- }
- local BodGy = Create("BodyGyro") {
- maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
- P = 20e+003,
- Parent = hit.Parent.Torso,
- cframe = hit.Parent.Torso.CFrame,
- }
- hit.Parent.Torso.Anchored = true
- coroutine.resume(coroutine.create(function(Part)
- swait(1.5)
- Part.Anchored = false
- end), hit.Parent.Torso)
- game:GetService("Debris"):AddItem(BodPos, 3)
- game:GetService("Debris"):AddItem(BodGy, 3)
- end
- local debounce = Create("BoolValue"){
- Name = "DebounceHit",
- Parent = hit.Parent,
- Value = true,
- }
- game:GetService("Debris"):AddItem(debounce, Delay)
- c = Create("ObjectValue"){
- Name = "creator",
- Value = Player,
- Parent = h,
- }
- game:GetService("Debris"):AddItem(c, .5)
- end
- end
- function ShowDamage(Pos, Text, Time, Color)
- local Rate = (1 / 30)
- local Pos = (Pos or Vector3.new(0, 0, 0))
- local Text = (Text or "")
- local Time = (Time or 2)
- local Color = (Color or Color3.new(1, 0, 1))
- local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
- EffectPart.Anchored = true
- local BillboardGui = Create("BillboardGui"){
- Size = UDim2.new(3, 0, 3, 0),
- Adornee = EffectPart,
- Parent = EffectPart,
- }
- local TextLabel = Create("TextLabel"){
- BackgroundTransparency = 1,
- Size = UDim2.new(1, 0, 1, 0),
- Text = Text,
- Font = "Highway",
- TextColor3 = Color,
- TextScaled = true,
- Parent = BillboardGui,
- }
- game.Debris:AddItem(EffectPart, (Time))
- EffectPart.Parent = game:GetService("Workspace")
- delay(0, function()
- local Frames = (Time / Rate)
- for Frame = 1, Frames do
- wait(Rate)
- local Percent = (Frame / Frames)
- EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
- TextLabel.TextTransparency = Percent
- end
- if EffectPart and EffectPart.Parent then
- EffectPart:Destroy()
- end
- end)
- end
- function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
- for _, c in pairs(workspace:children()) do
- local hum = c:findFirstChild("Humanoid")
- if hum ~= nil then
- local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
- if head ~= nil then
- local targ = head.Position - Part.Position
- local mag = targ.magnitude
- if mag <= Magnitude and c.Name ~= plr.Name then
- Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch)
- end
- end
- end
- end
- end
- CFuncs = {
- Part = {
- Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material
- })
- RemoveOutlines(Part)
- return Part
- end
- },
- Mesh = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- },
- Mesh = {
- Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- },
- Weld = {
- Create = function(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- },
- Sound = {
- Create = function(id, par, vol, pit)
- coroutine.resume(coroutine.create(function()
- local S = Create("Sound")({
- Volume = vol,
- Pitch = pit or 1,
- SoundId = id,
- Parent = par or workspace
- })
- wait()
- S:play()
- game:GetService("Debris"):AddItem(S, 6)
- end))
- end
- },
- ParticleEmitter = {
- Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
- local fp = Create("ParticleEmitter")({
- Parent = Parent,
- Color = ColorSequence.new(Color1, Color2),
- LightEmission = LightEmission,
- Size = Size,
- Texture = Texture,
- Transparency = Transparency,
- ZOffset = ZOffset,
- Acceleration = Accel,
- Drag = Drag,
- LockedToPart = LockedToPart,
- VelocityInheritance = VelocityInheritance,
- EmissionDirection = EmissionDirection,
- Enabled = Enabled,
- Lifetime = LifeTime,
- Rate = Rate,
- Rotation = Rotation,
- RotSpeed = RotSpeed,
- Speed = Speed,
- VelocitySpread = VelocitySpread
- })
- return fp
- end
- }
- }
- function RemoveOutlines(part)
- part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
- end
- function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
- local Part = Create("Part")({
- formFactor = FormFactor,
- Parent = Parent,
- Reflectance = Reflectance,
- Transparency = Transparency,
- CanCollide = false,
- Locked = true,
- BrickColor = BrickColor.new(tostring(BColor)),
- Name = Name,
- Size = Size,
- Material = Material
- })
- RemoveOutlines(Part)
- return Part
- end
- function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
- local Msh = Create(Mesh)({
- Parent = Part,
- Offset = OffSet,
- Scale = Scale
- })
- if Mesh == "SpecialMesh" then
- Msh.MeshType = MeshType
- Msh.MeshId = MeshId
- end
- return Msh
- end
- function CreateWeld(Parent, Part0, Part1, C0, C1)
- local Weld = Create("Weld")({
- Parent = Parent,
- Part0 = Part0,
- Part1 = Part1,
- C0 = C0,
- C1 = C1
- })
- return Weld
- end
- EffectModel = Instance.new("Model", char)
- Effects = {
- Block = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- else
- table.insert(Effects, {
- prt,
- "Block3",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end
- },
- Sphere = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Cylinder = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Wave = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3 / 60,
- y3 / 60,
- z3 / 60,
- msh
- })
- end
- },
- Ring = {
- Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- },
- Break = {
- Create = function(brickcolor, cframe, x1, y1, z1)
- local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end
- }
- }
- function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- if Type == 1 or Type == nil then
- table.insert(Effects, {
- prt,
- "Block1",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 2 then
- table.insert(Effects, {
- prt,
- "Block2",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- elseif Type == 3 then
- table.insert(Effects, {
- prt,
- "Block3",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- end
- function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.new(x1, y1, z1)
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
- local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
- prt.Anchored = true
- prt.CFrame = cframe
- local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Cylinder",
- delay,
- x3,
- y3,
- z3,
- msh
- })
- end
- function BreakEffect(brickcolor, cframe, x1, y1, z1)
- local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
- prt.Anchored = true
- prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
- local num = math.random(10, 50) / 1000
- game:GetService("Debris"):AddItem(prt, 10)
- table.insert(Effects, {
- prt,
- "Shatter",
- num,
- prt.CFrame,
- math.random() - math.random(),
- 0,
- math.random(50, 100) / 100
- })
- end
- function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
- local fp=Instance.new("Part")
- fp.formFactor=formfactor
- fp.Parent=parent
- fp.Reflectance=reflectance
- fp.Transparency=transparency
- fp.CanCollide=false
- fp.Locked=true
- fp.BrickColor=brickcolor
- fp.Name=name
- fp.Size=size
- fp.Position=tors.Position
- RemoveOutlines(fp)
- fp.Material="SmoothPlastic"
- fp:BreakJoints()
- return fp
- end
- function mesh(Mesh,part,meshtype,meshid,offset,scale)
- local mesh=Instance.new(Mesh)
- mesh.Parent=part
- if Mesh=="SpecialMesh" then
- mesh.MeshType=meshtype
- if meshid~="nil" then
- mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
- end
- end
- mesh.Offset=offset
- mesh.Scale=scale
- return mesh
- end
- function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
- local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- for i=0,1,delay do
- swait()
- Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
- Part.Transparency=i
- Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
- local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
- prt.Anchored=true
- prt.Material = "Neon"
- prt.CFrame=cframe
- msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
- game:GetService("Debris"):AddItem(prt,5)
- coroutine.resume(coroutine.create(function(Part,Mesh)
- local rtype = rottype
- for i=0,1,delay do
- swait()
- if rtype == 1 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
- elseif rtype == 2 then
- prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
- end
- prt.Transparency=i
- Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
- end
- Part.Parent=nil
- end),prt,msh)
- end
- --[[
- Thanks for using Build-To-Lua by jarredbcv.
- ]]--
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- RubiksCube = New("Model",char,"RubiksCube",{})
- Handle = New("Part",RubiksCube,"Handle",{BrickColor = BrickColor.new("Really black"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(1.19135904, 1.19135904, 1.19135904),CFrame = CFrame.new(98.4000549, 0.595682025, 171.196167, 1, 0, 0, 0, 1, 0, 0, 0, 1),TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029755, 1.17155194, 171.196136, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(-0.397079468, 0.575869918, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.595685005, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 2.98023224e-06, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.992842019, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 0.397159994, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.992842019, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 0.397159994, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029602, 1.17155194, 170.799026, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(-0.397094727, 0.575869918, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029755, 1.17155194, 171.593292, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(-0.397079468, 0.575869918, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.198476017, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -0.397206008, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.595668972, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -1.30534172e-05, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.198473006, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, -0.397209018, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.992832005, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, 0.39714998, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.595685005, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 2.98023224e-06, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 1.17155194, 171.593292, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(3.05175781e-05, 0.575869918, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 1.17155194, 171.196136, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(3.05175781e-05, 0.575869918, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.198473006, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, -0.397209018, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.198476017, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -0.397206008, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.992842019, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 0.397159994, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 1.17155194, 170.799026, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(3.05175781e-05, 0.575869918, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.198477983, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -0.397204041, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.595668972, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -1.30534172e-05, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.992810011, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, 0.397127986, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.595685005, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, 2.98023224e-06, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.992810011, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, 0.397127986, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 1.17155194, 171.196136, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(0.397109985, 0.575869918, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 1.17155194, 171.593292, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(0.397109985, 0.575869918, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really red"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(97.8185501, 0.198473006, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 0, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(-0.581504822, -0.397209018, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.595668972, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -1.30534172e-05, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.992811978, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, 0.397129953, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.595668972, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -1.30534172e-05, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.198476017, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -0.397206008, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.198473006, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, -0.397209018, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.992842019, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 0.397159994, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Institutional white"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 1.17155194, 170.799026, 0, 1, 0, -1, 0, 0, 0, 0, 1),Color = Color3.new(0.972549, 0.972549, 0.972549),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1),C1 = CFrame.new(0.397109985, 0.575869918, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Really blue"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.992810011, 170.617462, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 0, 1),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, 0.397127986, -0.578704834, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.992810011, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, 0.397127986, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.0029907, 0.198476017, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.397064209, -0.397206008, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.595668972, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -1.30534172e-05, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.595685005, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 2.98023224e-06, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.595685005, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 2.98023224e-06, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.595685005, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 2.98023224e-06, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.992842019, 171.196136, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 0.397159994, -3.05175781e-05, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.198473006, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, -0.397209018, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.4000854, 0.198476017, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.05175781e-05, -0.397206008, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("Lime green"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.7971649, 0.595668972, 171.771942, 0, 0, 1, 0, 1, 0, -1, 0, 0),Color = Color3.new(0, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(0.397109985, -1.30534172e-05, 0.575775146, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.992842019, 170.799026, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, 0.397159994, -0.397140503, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- Part = New("Part",RubiksCube,"Part",{BrickColor = BrickColor.new("New Yeller"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000003, 0.283656985, 0.283656925),CFrame = CFrame.new(98.9816284, 0.198473006, 171.593292, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(1, 1, 0),})
- Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.283656865, 1, 1),})
- mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(0.581573486, -0.397209018, 0.397125244, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
- local NewInstance = function(instance,parent,properties)
- local inst = Instance.new(instance,parent)
- if(properties)then
- for i,v in next, properties do
- pcall(function() inst[i] = v end)
- end
- end
- return inst;
- end
- local HW = NewInstance('Weld',char,{Part0=tors,Part1=Handle,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-65),0,math.rad(-90))})
- function intro()
- attack = true
- for i = 0,2,0.1 do
- swait()
- rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(55)),.3)
- tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(76)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- end
- end
- local idle=0
- local sine = 0
- local change = 1
- local val = 0
- toim = 0
- hum.Animator.Parent = nil
- idleanim=.4
- while true do
- swait()
- sine = sine + change
- local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude
- local velderp=root.Velocity.y
- hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
- if equipped==true or equipped==false then
- if attack==false then
- idle=idle+1
- else
- idle=0
- end
- if root.Velocity.y > 1 and hitfloor==nil then
- Anim="Jump"
- if attack==false then
- rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
- end
- elseif root.Velocity.y < -1 and hitfloor==nil then
- Anim="Fall"
- if attack==false then
- RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
- LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
- rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
- tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
- end
- elseif torvel<1 and hitfloor~=nil then
- Anim="Idle"
- change = 2
- if attack==false then
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
- tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
- RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
- RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(65 - 1), math.rad(-7), math.rad(-35)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1), math.rad(-7), math.rad(55)), 0.1)
- HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55), 0.1)
- end
- elseif torvel>2 and torvel<22 and hitfloor~=nil then
- Anim="Walk"
- change = 1
- if attack==false then
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
- LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
- RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
- HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55*math.cos(sine/60)), 0.1)
- end
- elseif torvel>=22 and hitfloor~=nil then
- Anim="Run"
- change = 2
- rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
- tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
- RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3)
- LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3)
- RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
- LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
- HW.C0=clerp(HW.C0,cf(0,-1,0)*angles(math.rad(-65),math.rad(0),math.rad(-90)),0.15)
- end
- end
- if 0 < #Effects then
- for e = 1, #Effects do
- if Effects[e] ~= nil then
- local Thing = Effects[e]
- if Thing ~= nil then
- local Part = Thing[1]
- local Mode = Thing[2]
- local Delay = Thing[3]
- local IncX = Thing[4]
- local IncY = Thing[5]
- local IncZ = Thing[6]
- if 1 >= Thing[1].Transparency then
- if Thing[2] == "Block1" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block2" then
- Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Block3" then
- Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
- local Mesh = Thing[7]
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Cylinder" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Blood" then
- local Mesh = Thing[7]
- Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Elec" then
- local Mesh = Thing[1].Mesh
- Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Disappear" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- elseif Thing[2] == "Shatter" then
- Thing[1].Transparency = Thing[1].Transparency + Thing[3]
- Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
- Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
- Thing[6] = Thing[6] + Thing[5]
- end
- else
- Part.Parent = nil
- table.remove(Effects, e)
- end
- end
- end
- end
- end
- end
Add Comment
Please, Sign In to add comment