Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local player = nil
- while player == nil do
- player = game:GetService("Players"):FindFirstChild("plytalent")
- wait()
- end
- while player.Character == nil do
- wait()
- end
- local disable_prevent_parent_change = false
- local ch = nil
- local EFEvent = Instance.new("RemoteEvent",script)
- local GetCF = Instance.new("RemoteFunction",script)
- GetCF.Name = "LocalGetCFrame"
- EFEvent.OnServerEvent:Connect(function(from_player,ef_name)
- if from_player ~= player then
- return
- end
- if ef_name == "red_mist" then
- if ch ~= nil then
- for _, emiter in pairs(ch:GetDescendants()) do
- if emiter:IsA("E") then
- end
- end
- end
- end
- end)
- function prevent_change_parent(object)
- local orginal_parent = object.Parent
- object:GetAttributeChangedSignal("Parent"):Connect(function()
- if disable_prevent_parent_change then
- return
- end
- local s,e = pcall(function()
- object.Parent = orginal_parent
- end)
- if not s then
- local s, e = pcall(function()
- local replace_v = object:Clone()
- replace_v.Parent = orginal_parent
- prevent_change_parent(replace_v)
- end)
- if not s then
- disable_prevent_parent_change = true
- ch:Destroy()
- ch = create_character()
- end
- end
- end)
- end
- function create_character()
- local created = {}
- local function new_object(classname, parent)
- local created_instance = Instance.new(classname, parent)
- created[#created + 1] = created_instance
- return created_instance
- end
- local s, model =pcall(function()
- local Model0 = new_object("Model")
- local Part1 = new_object("Part") -- Head
- local SpecialMesh2 = new_object("SpecialMesh")
- local Weld3 = new_object("Weld")
- local AlignOrientation4 = new_object("AlignOrientation")
- local AlignPosition5 = new_object("AlignPosition")
- local Part6 = new_object("Part") -- Torso
- local Texture7 = new_object("Texture")
- local Texture8 = new_object("Texture")
- local Texture9 = new_object("Texture")
- local Texture10 = new_object("Texture")
- local Texture11 = new_object("Texture")
- local Texture12 = new_object("Texture")
- local AlignOrientation13 = new_object("AlignOrientation")
- local AlignPosition14 = new_object("AlignPosition")
- local Part15 = new_object("Part") -- Left Arm
- local Texture16 = new_object("Texture")
- local Texture17 = new_object("Texture")
- local Texture18 = new_object("Texture")
- local Texture19 = new_object("Texture")
- local Texture20 = new_object("Texture")
- local Texture21 = new_object("Texture")
- local AlignOrientation22 = new_object("AlignOrientation")
- local AlignPosition23 = new_object("AlignPosition")
- local Part24 = new_object("Part") -- Right Arm
- local Texture25 = new_object("Texture")
- local Texture26 = new_object("Texture")
- local Texture27 = new_object("Texture")
- local Texture28 = new_object("Texture")
- local Texture29 = new_object("Texture")
- local Texture30 = new_object("Texture")
- local AlignOrientation31 = new_object("AlignOrientation")
- local AlignPosition32 = new_object("AlignPosition")
- local Part33 = new_object("Part") -- Left Leg
- local Texture34 = new_object("Texture")
- local Texture35 = new_object("Texture")
- local Texture36 = new_object("Texture")
- local Texture37 = new_object("Texture")
- local Texture38 = new_object("Texture")
- local Texture39 = new_object("Texture")
- local AlignOrientation40 = new_object("AlignOrientation")
- local AlignPosition41 = new_object("AlignPosition")
- local Part42 = new_object("Part") -- Right Leg
- local Texture43 = new_object("Texture")
- local Texture44 = new_object("Texture")
- local Texture45 = new_object("Texture")
- local Texture46 = new_object("Texture")
- local Texture47 = new_object("Texture")
- local Texture48 = new_object("Texture")
- local AlignOrientation49 = new_object("AlignOrientation")
- local AlignPosition50 = new_object("AlignPosition")
- local Part51 = new_object("Part")
- local SpecialMesh52 = new_object("SpecialMesh")
- local Part53 = new_object("Part")
- local SpecialMesh54 = new_object("SpecialMesh")
- local Weld55 = new_object("Weld")
- local Weld56 = new_object("Weld")
- local Part57 = new_object("Part")
- local SpecialMesh58 = new_object("SpecialMesh")
- local Attachment_1_1 = nil --new_object("Attachment", Part1)
- local Attachment_1_2 = nil --new_object("Attachment", Part6)
- local Attachment_1_3 = nil --new_object("Attachment", Part15)
- local Attachment_1_4 = nil --new_object("Attachment", Part24)
- local Attachment_1_5 = nil --new_object("Attachment", Part33)
- local Attachment_1_6 = nil --new_object("Attachment", Part42)
- local Attachment_2_1 = nil --new_object("Attachment", Part1) -- Head
- local Attachment_2_2 = nil --new_object("Attachment", Part6) -- Torso
- local Attachment_2_3 = nil --new_object("Attachment", Part15) -- Left Arm
- local Attachment_2_4 = nil --new_object("Attachment", Part24) -- Right Arm
- local Attachment_2_5 = nil --new_object("Attachment", Part33) -- Left Leg
- local Attachment_2_6 = nil --new_object("Attachment", Part42) -- Right Leg
- Model0.Name = "Patron Librarian Gebura"
- Part1.Name = "Head"
- Part1.Parent = Model0
- Part1.CFrame = CFrame.new(35.4599991, 4.50000906, -6.4300108, 1, -1.03761762e-20, 3.43312574e-27, -1.03761754e-20, 1.00000823, 5.96047016e-08, 3.49544267e-27, 2.98023508e-08, 1.00000823)
- Part1.Position = Vector3.new(35.459999084472656, 4.500009059906006, -6.430010795593262)
- Part1.Color = Color3.new(0.584314, 0.537255, 0.533333)
- Part1.Size = Vector3.new(2, 1, 1)
- Part1.BrickColor = BrickColor.new("Hurricane grey")
- Part1.Material = Enum.Material.SmoothPlastic
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.brickColor = BrickColor.new("Hurricane grey")
- Part1.FormFactor = Enum.FormFactor.Symmetric
- Part1.formFactor = Enum.FormFactor.Symmetric
- SpecialMesh2.Parent = Part1
- SpecialMesh2.Scale = Vector3.new(1.25, 1.25, 1.25)
- Weld3.Name = "Hair"
- Weld3.Parent = Part1
- Weld3.C0 = CFrame.new(-0.0724220276, 0.142577648, 0.549121857, 1, -1.2970196e-21, 0, -1.2970196e-21, 1.00000095, 0, 0, 0, 1.00000095)
- Weld3.Part0 = Part1
- Weld3.Part1 = Part53
- Weld3.part1 = Part53
- AlignOrientation4.Parent = Part1
- AlignOrientation4.Attachment0 = Attachment_1_1
- AlignOrientation4.Attachment1 = Attachment_2_1
- AlignOrientation4.RigidityEnabled = true
- AlignPosition5.Parent = Part1
- AlignPosition5.Attachment0 = Attachment_1_1
- AlignPosition5.Attachment1 = Attachment_2_1
- AlignPosition5.RigidityEnabled = true
- Part6.Name = "Torso"
- Part6.Parent = Model0
- Part6.CFrame = CFrame.new(35.4599991, 2.99999905, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part6.Position = Vector3.new(35.459999084472656, 2.9999990463256836, -6.429999828338623)
- Part6.Color = Color3.new(0.584314, 0.537255, 0.533333)
- Part6.Size = Vector3.new(2, 2, 1)
- Part6.BrickColor = BrickColor.new("Hurricane grey")
- Part6.LeftParamA = 0
- Part6.LeftParamB = 0
- Part6.LeftSurface = Enum.SurfaceType.Weld
- Part6.Material = Enum.Material.SmoothPlastic
- Part6.RightParamA = 0
- Part6.RightParamB = 0
- Part6.RightSurface = Enum.SurfaceType.Weld
- Part6.brickColor = BrickColor.new("Hurricane grey")
- Part6.FormFactor = Enum.FormFactor.Symmetric
- Part6.formFactor = Enum.FormFactor.Symmetric
- Texture7.Name = "Back"
- Texture7.Parent = Part6
- Texture7.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture7.Face = Enum.NormalId.Back
- Texture7.StudsPerTileU = 9.15999984741211
- Texture7.StudsPerTileV = 9.15999984741211
- Texture8.Name = "Bottom"
- Texture8.Parent = Part6
- Texture8.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture8.Face = Enum.NormalId.Bottom
- Texture8.StudsPerTileU = 9.15999984741211
- Texture8.StudsPerTileV = 9.15999984741211
- Texture9.Name = "Front"
- Texture9.Parent = Part6
- Texture9.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture9.StudsPerTileU = 9.15999984741211
- Texture9.StudsPerTileV = 9.15999984741211
- Texture10.Name = "Left"
- Texture10.Parent = Part6
- Texture10.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture10.Face = Enum.NormalId.Left
- Texture10.StudsPerTileU = 9.170000076293945
- Texture10.StudsPerTileV = 9.170000076293945
- Texture11.Name = "Right"
- Texture11.Parent = Part6
- Texture11.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture11.Face = Enum.NormalId.Right
- Texture11.StudsPerTileU = 9.15999984741211
- Texture11.StudsPerTileV = 9.15999984741211
- Texture12.Name = "Top"
- Texture12.Parent = Part6
- Texture12.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture12.Face = Enum.NormalId.Top
- Texture12.StudsPerTileU = 9.15999984741211
- Texture12.StudsPerTileV = 9.15999984741211
- AlignOrientation13.Parent = Part6
- AlignOrientation13.Attachment0 = Attachment_1_2
- AlignOrientation13.Attachment1 = Attachment_2_2
- AlignOrientation13.RigidityEnabled = true
- AlignPosition14.Parent = Part6
- AlignPosition14.Attachment0 = Attachment_1_2
- AlignPosition14.Attachment1 = Attachment_2_2
- AlignPosition14.RigidityEnabled = true
- Part15.Name = "Left Arm"
- Part15.Parent = Model0
- Part15.CFrame = CFrame.new(33.9599991, 2.99999905, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part15.Position = Vector3.new(33.959999084472656, 2.9999990463256836, -6.429999828338623)
- Part15.Color = Color3.new(0.584314, 0.537255, 0.533333)
- Part15.Size = Vector3.new(1, 2, 1)
- Part15.BrickColor = BrickColor.new("Hurricane grey")
- Part15.CanCollide = false
- Part15.Material = Enum.Material.SmoothPlastic
- Part15.brickColor = BrickColor.new("Hurricane grey")
- Part15.FormFactor = Enum.FormFactor.Symmetric
- Part15.formFactor = Enum.FormFactor.Symmetric
- Texture16.Name = "Back"
- Texture16.Parent = Part15
- Texture16.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture16.Face = Enum.NormalId.Back
- Texture16.StudsPerTileU = 9.15999984741211
- Texture16.StudsPerTileV = 9.15999984741211
- Texture17.Name = "Bottom"
- Texture17.Parent = Part15
- Texture17.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture17.Face = Enum.NormalId.Bottom
- Texture17.StudsPerTileU = 9.15999984741211
- Texture17.StudsPerTileV = 9.15999984741211
- Texture18.Name = "Front"
- Texture18.Parent = Part15
- Texture18.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture18.StudsPerTileU = 9.15999984741211
- Texture18.StudsPerTileV = 9.15999984741211
- Texture19.Name = "Left"
- Texture19.Parent = Part15
- Texture19.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture19.Face = Enum.NormalId.Left
- Texture19.StudsPerTileU = 9.170000076293945
- Texture19.StudsPerTileV = 9.170000076293945
- Texture20.Name = "Right"
- Texture20.Parent = Part15
- Texture20.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture20.Face = Enum.NormalId.Right
- Texture20.StudsPerTileU = 9.15999984741211
- Texture20.StudsPerTileV = 9.15999984741211
- Texture21.Name = "Top"
- Texture21.Parent = Part15
- Texture21.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture21.Face = Enum.NormalId.Top
- Texture21.StudsPerTileU = 9.15999984741211
- Texture21.StudsPerTileV = 9.15999984741211
- AlignOrientation22.Parent = Part15
- AlignOrientation22.Attachment0 = nil
- AlignOrientation22.Attachment1 = nil
- AlignOrientation22.RigidityEnabled = true
- AlignPosition23.Parent = Part15
- AlignPosition23.Attachment0 = nil
- AlignPosition23.Attachment1 = nil
- AlignPosition23.RigidityEnabled = true
- Part24.Name = "Right Arm"
- Part24.Parent = Model0
- Part24.CFrame = CFrame.new(36.9599991, 2.99999905, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part24.Position = Vector3.new(36.959999084472656, 2.9999990463256836, -6.429999828338623)
- Part24.Color = Color3.new(0.584314, 0.537255, 0.533333)
- Part24.Size = Vector3.new(1, 2, 1)
- Part24.BrickColor = BrickColor.new("Hurricane grey")
- Part24.CanCollide = false
- Part24.Material = Enum.Material.SmoothPlastic
- Part24.brickColor = BrickColor.new("Hurricane grey")
- Part24.FormFactor = Enum.FormFactor.Symmetric
- Part24.formFactor = Enum.FormFactor.Symmetric
- Texture25.Name = "Back"
- Texture25.Parent = Part24
- Texture25.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture25.Face = Enum.NormalId.Back
- Texture25.StudsPerTileU = 9.15999984741211
- Texture25.StudsPerTileV = 9.15999984741211
- Texture26.Name = "Bottom"
- Texture26.Parent = Part24
- Texture26.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture26.Face = Enum.NormalId.Bottom
- Texture26.StudsPerTileU = 9.15999984741211
- Texture26.StudsPerTileV = 9.15999984741211
- Texture27.Name = "Front"
- Texture27.Parent = Part24
- Texture27.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture27.StudsPerTileU = 9.15999984741211
- Texture27.StudsPerTileV = 9.15999984741211
- Texture28.Name = "Left"
- Texture28.Parent = Part24
- Texture28.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture28.Face = Enum.NormalId.Left
- Texture28.StudsPerTileU = 9.170000076293945
- Texture28.StudsPerTileV = 9.170000076293945
- Texture29.Name = "Right"
- Texture29.Parent = Part24
- Texture29.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture29.Face = Enum.NormalId.Right
- Texture29.StudsPerTileU = 9.15999984741211
- Texture29.StudsPerTileV = 9.15999984741211
- Texture30.Name = "Top"
- Texture30.Parent = Part24
- Texture30.Texture = "http://www.roblox.com/asset/?id=10027678397"
- Texture30.Face = Enum.NormalId.Top
- Texture30.StudsPerTileU = 9.15999984741211
- Texture30.StudsPerTileV = 9.15999984741211
- AlignOrientation31.Parent = Part24
- AlignOrientation31.Attachment0 = nil
- AlignOrientation31.Attachment1 = nil
- AlignOrientation31.RigidityEnabled = true
- AlignPosition32.Parent = Part24
- AlignPosition32.Attachment0 = nil
- AlignPosition32.Attachment1 = nil
- AlignPosition32.RigidityEnabled = true
- Part33.Name = "Left Leg"
- Part33.Parent = Model0
- Part33.CFrame = CFrame.new(34.9599991, 0.999999046, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part33.Position = Vector3.new(34.959999084472656, 0.9999990463256836, -6.429999828338623)
- Part33.Color = Color3.new(0.584314, 0.537255, 0.533333)
- Part33.Size = Vector3.new(1, 2, 1)
- Part33.BottomSurface = Enum.SurfaceType.Smooth
- Part33.BrickColor = BrickColor.new("Hurricane grey")
- Part33.CanCollide = false
- Part33.Material = Enum.Material.SmoothPlastic
- Part33.brickColor = BrickColor.new("Hurricane grey")
- Part33.FormFactor = Enum.FormFactor.Symmetric
- Part33.formFactor = Enum.FormFactor.Symmetric
- Texture34.Name = "Back"
- Texture34.Parent = Part33
- Texture34.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture34.Face = Enum.NormalId.Back
- Texture34.StudsPerTileU = 9.15999984741211
- Texture34.StudsPerTileV = 9.15999984741211
- Texture35.Name = "Bottom"
- Texture35.Parent = Part33
- Texture35.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture35.Face = Enum.NormalId.Bottom
- Texture35.StudsPerTileU = 9.15999984741211
- Texture35.StudsPerTileV = 9.15999984741211
- Texture36.Name = "Front"
- Texture36.Parent = Part33
- Texture36.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture36.StudsPerTileU = 9.15999984741211
- Texture36.StudsPerTileV = 9.15999984741211
- Texture37.Name = "Left"
- Texture37.Parent = Part33
- Texture37.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture37.Face = Enum.NormalId.Left
- Texture37.StudsPerTileU = 9.170000076293945
- Texture37.StudsPerTileV = 9.170000076293945
- Texture38.Name = "Right"
- Texture38.Parent = Part33
- Texture38.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture38.Face = Enum.NormalId.Right
- Texture38.StudsPerTileU = 9.15999984741211
- Texture38.StudsPerTileV = 9.15999984741211
- Texture39.Name = "Top"
- Texture39.Parent = Part33
- Texture39.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture39.Face = Enum.NormalId.Top
- Texture39.StudsPerTileU = 9.15999984741211
- Texture39.StudsPerTileV = 9.15999984741211
- AlignOrientation40.Parent = Part33
- AlignOrientation40.Attachment0 = Attachment_1_3
- AlignOrientation40.Attachment1 = Attachment_2_3
- AlignOrientation40.RigidityEnabled = true
- AlignPosition41.Parent = Part33
- AlignPosition41.Attachment0 = Attachment_1_3
- AlignPosition41.Attachment1 = Attachment_2_3
- AlignPosition41.RigidityEnabled = true
- Part42.Name = "Right Leg"
- Part42.Parent = Model0
- Part42.CFrame = CFrame.new(35.9599991, 0.999999046, -6.42999983, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- Part42.Position = Vector3.new(35.959999084472656, 0.9999990463256836, -6.429999828338623)
- Part42.Color = Color3.new(0.584314, 0.537255, 0.533333)
- Part42.Size = Vector3.new(1, 2, 1)
- Part42.BottomSurface = Enum.SurfaceType.Smooth
- Part42.BrickColor = BrickColor.new("Hurricane grey")
- Part42.CanCollide = false
- Part42.Material = Enum.Material.SmoothPlastic
- Part42.brickColor = BrickColor.new("Hurricane grey")
- Part42.FormFactor = Enum.FormFactor.Symmetric
- Part42.formFactor = Enum.FormFactor.Symmetric
- Texture43.Name = "Back"
- Texture43.Parent = Part42
- Texture43.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture43.Face = Enum.NormalId.Back
- Texture43.StudsPerTileU = 9.15999984741211
- Texture43.StudsPerTileV = 9.15999984741211
- Texture44.Name = "Bottom"
- Texture44.Parent = Part42
- Texture44.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture44.Face = Enum.NormalId.Bottom
- Texture44.StudsPerTileU = 9.15999984741211
- Texture44.StudsPerTileV = 9.15999984741211
- Texture45.Name = "Front"
- Texture45.Parent = Part42
- Texture45.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture45.StudsPerTileU = 9.15999984741211
- Texture45.StudsPerTileV = 9.15999984741211
- Texture46.Name = "Left"
- Texture46.Parent = Part42
- Texture46.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture46.Face = Enum.NormalId.Left
- Texture46.StudsPerTileU = 9.170000076293945
- Texture46.StudsPerTileV = 9.170000076293945
- Texture47.Name = "Right"
- Texture47.Parent = Part42
- Texture47.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture47.Face = Enum.NormalId.Right
- Texture47.StudsPerTileU = 9.15999984741211
- Texture47.StudsPerTileV = 9.15999984741211
- Texture48.Name = "Top"
- Texture48.Parent = Part42
- Texture48.Texture = "http://www.roblox.com/asset/?id=10027680590"
- Texture48.Face = Enum.NormalId.Top
- Texture48.StudsPerTileU = 9.15999984741211
- Texture48.StudsPerTileV = 9.15999984741211
- AlignOrientation49.Parent = Part42
- AlignOrientation49.Attachment0 = Attachment_1_4
- AlignOrientation49.Attachment1 = Attachment_2_4
- AlignOrientation49.RigidityEnabled = true
- AlignPosition50.Parent = Part42
- AlignPosition50.Attachment0 = Attachment_1_4
- AlignPosition50.Attachment1 = Attachment_2_4
- AlignPosition50.RigidityEnabled = true
- Part51.Name = "Hair Extensions"
- Part51.Parent = Model0
- Part51.CFrame = CFrame.new(35.4599991, 2.82304621, -4.85992002, 1, 3.82777247e-20, -5.96836257e-22, -4.83513402e-20, 0.989882827, -0.141916484, -4.84144047e-21, 0.141916528, 0.989882827)
- Part51.Orientation = Vector3.new(8.15999984741211, 0, 0)
- Part51.Position = Vector3.new(35.459999084472656, 2.8230462074279785, -4.859920024871826)
- Part51.Rotation = Vector3.new(8.15999984741211, 0, 0)
- Part51.Color = Color3.new(0.458824, 0, 0)
- Part51.Size = Vector3.new(3.299999952316284, 4.383999824523926, 2.2790000438690186)
- Part51.BottomSurface = Enum.SurfaceType.Smooth
- Part51.BrickColor = BrickColor.new("Maroon")
- Part51.CanCollide = false
- Part51.TopSurface = Enum.SurfaceType.Smooth
- Part51.brickColor = BrickColor.new("Maroon")
- SpecialMesh52.Name = "SpecialMesh"
- SpecialMesh52.Parent = Part51
- SpecialMesh52.MeshId = "rbxassetid://7666931987"
- SpecialMesh52.MeshType = Enum.MeshType.FileMesh
- Part53.Name = "Hair"
- Part53.Parent = Model0
- Part53.CFrame = CFrame.new(35.3875771, 4.64258814, -5.88088417, 1, -9.07914814e-21, 3.43312266e-27, -9.07914652e-21, 1.00000727, 5.96046448e-08, 3.53409686e-27, 2.98023224e-08, 1.00000727)
- Part53.Position = Vector3.new(35.387577056884766, 4.642588138580322, -5.880884170532227)
- Part53.Color = Color3.new(0.458824, 0, 0)
- Part53.Size = Vector3.new(1, 1, 1)
- Part53.BottomSurface = Enum.SurfaceType.Smooth
- Part53.BrickColor = BrickColor.new("Maroon")
- Part53.Locked = true
- Part53.TopSurface = Enum.SurfaceType.Smooth
- Part53.brickColor = BrickColor.new("Maroon")
- SpecialMesh54.Name = "SpecialMesh"
- SpecialMesh54.Parent = Part53
- SpecialMesh54.MeshId = "rbxassetid://10471777531"
- SpecialMesh54.Scale = Vector3.new(1.100000023841858, 1.100000023841858, 1.100000023841858)
- SpecialMesh54.MeshType = Enum.MeshType.FileMesh
- Weld55.Name = "Hair 2"
- Weld55.Parent = Part53
- Weld55.C0 = CFrame.new(0.000423431396, -0.568068981, -0.559992313, -1, -6.48509701e-22, 0, 6.48509701e-22, 1.00000048, 0, 0, 0, -1.00000048)
- Weld55.Part0 = Part53
- Weld55.Part1 = Part57
- Weld55.part1 = Part57
- Weld56.Name = "Hair Extensions"
- Weld56.Parent = Part53
- Weld56.C0 = CFrame.new(0.0724220276, -1.81952858, 1.02095699, 1, 3.95616221e-20, -7.80904542e-22, -4.70542758e-20, 0.989881873, -0.14191635, -4.84143602e-21, 0.141916394, 0.989881873)
- Weld56.Part0 = Part53
- Weld56.Part1 = Part51
- Weld56.part1 = Part51
- Part57.Name = "Hair 2"
- Part57.Parent = Model0
- Part57.CFrame = CFrame.new(35.3880005, 4.07451487, -6.44088078, -1, -9.72766178e-21, -3.4331242e-27, 9.72766097e-21, 1.00000775, -5.96046732e-08, -3.51476976e-27, 2.98023366e-08, -1.00000775)
- Part57.Orientation = Vector3.new(0, -180, 0)
- Part57.Position = Vector3.new(35.38800048828125, 4.074514865875244, -6.44088077545166)
- Part57.Rotation = Vector3.new(180, 0, 180)
- Part57.Color = Color3.new(0.458824, 0, 0)
- Part57.Size = Vector3.new(1, 1, 1)
- Part57.BottomSurface = Enum.SurfaceType.Smooth
- Part57.BrickColor = BrickColor.new("Maroon")
- Part57.Locked = true
- Part57.TopSurface = Enum.SurfaceType.Smooth
- Part57.brickColor = BrickColor.new("Maroon")
- SpecialMesh58.Name = "SpecialMesh"
- SpecialMesh58.Parent = Part57
- SpecialMesh58.MeshId = "rbxassetid://8178077242"
- SpecialMesh58.Scale = Vector3.new(1.0499999523162842, 1.0499999523162842, 1.0499999523162842)
- SpecialMesh58.MeshType = Enum.MeshType.FileMesh
- return Model0
- end)
- if not s then
- print(model)
- for _, obj in pairs(new_object) do
- if obj then
- pcall(function()
- obj:Destroy()
- end)
- end
- end
- return nil
- end
- for _, v in pairs(model:GetDescendants()) do
- if v:IsA("BasePart") then
- v.CanCollide = false
- end
- prevent_change_parent(v)
- end
- return model
- end
- ch = create_character()
- for _, p in pairs(player.Character:GetChildren()) do
- if ch:FindFirstChild(p.Name) and p:IsA("BasePart") then
- local at1 = Instance.new("Attachment",ch[p.Name])
- local at2 = Instance.new("Attachment",p)
- at2.Name = p.Name
- ch[p.Name].CFrame = p.CFrame
- ch[p.Name].Anchored = true
- ch[p.Name].CanCollide = false
- ch[p.Name].AlignOrientation.Attachment0 = at1
- ch[p.Name].AlignOrientation.Attachment1 = at2
- ch[p.Name].AlignPosition.Attachment0 = at1
- ch[p.Name].AlignPosition.Attachment1 = at2
- ch[p.Name].Anchored = false
- end
- end
- function texturefix(part)
- local look_up = {
- ["Left Arm"]={
- ["Back"]={
- ["OffsetStudsU"] = 6.89,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Bottom"]={
- ["OffsetStudsU"] = 4.83,
- ["OffsetStudsV"] = 7.95,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Front"]={
- ["OffsetStudsU"] = 4.83,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Left"]={
- ["OffsetStudsU"] = 5.87,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Right"]={
- ["OffsetStudsU"] = 7.92,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Top"]={
- ["OffsetStudsU"] = 4.83,
- ["OffsetStudsV"] = 4.75,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- }
- },
- ["Right Arm"] = {
- ["Back"]={
- ["OffsetStudsU"] = 1.325,
- ["OffsetStudsV"] = 5.9,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Bottom"]={
- ["OffsetStudsU"] = 3.4,
- ["OffsetStudsV"] = 7.95,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Front"]={
- ["OffsetStudsU"] = 3.40,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Left"]={
- ["OffsetStudsU"] = 0.295,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Right"]={
- ["OffsetStudsU"] = 2.36,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Top"]={
- ["OffsetStudsU"] = 3.40,
- ["OffsetStudsV"] = 4.75,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- }
- },
- ["Torso"] = {
- ["Back"]={
- ["OffsetStudsU"] = 6.685,
- ["OffsetStudsV"] = 1.25,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Bottom"]={
- ["OffsetStudsU"] = 3.615,
- ["OffsetStudsV"] = 3.400,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Front"]={
- ["OffsetStudsU"] = 3.615,
- ["OffsetStudsV"] = 1.250,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Left"]={
- ["OffsetStudsU"] = 5.661,
- ["OffsetStudsV"] = 1.255,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Right"]={
- ["OffsetStudsU"] = 2.58,
- ["OffsetStudsV"] = 1.25,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Top"]={
- ["OffsetStudsU"] = 3.615,
- ["OffsetStudsV"] = 0.165,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- }
- },
- ["Left Leg"] = {
- ["Back"]={
- ["OffsetStudsU"] = 6.89,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Bottom"]={
- ["OffsetStudsU"] = 4.83,
- ["OffsetStudsV"] = 7.95,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Front"]={
- ["OffsetStudsU"] = 4.83,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Left"]={
- ["OffsetStudsU"] = 5.87,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Right"]={
- ["OffsetStudsU"] = 7.92,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Top"]={
- ["OffsetStudsU"] = 4.83,
- ["OffsetStudsV"] = 4.75,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- }
- },
- ["Right Leg"] = {
- ["Back"]={
- ["OffsetStudsU"] = 1.325,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Bottom"]={
- ["OffsetStudsU"] = 3.40,
- ["OffsetStudsV"] = 7.95,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Front"]={
- ["OffsetStudsU"] = 3.40,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Left"]={
- ["OffsetStudsU"] = 0.295,
- ["OffsetStudsV"] = 5.900,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Right"]={
- ["OffsetStudsU"] = 2.36,
- ["OffsetStudsV"] = 5.90,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- },
- ["Top"]={
- ["OffsetStudsU"] = 3.40,
- ["OffsetStudsV"] = 4.75,
- ["StudsPerTileU"] = 9.16,
- ["StudsPerTileV"] = 9.16
- }
- }
- }
- if look_up[part.Name] then
- for index, prop in pairs(look_up[part.Name]) do
- for prop_index,prop_value in pairs(look_up[part.Name][index]) do
- pcall(function()
- part[index][prop_index] = prop_value
- end)
- end
- end
- end
- end
- ch.Parent = workspace
- for _,p in pairs(ch:GetDescendants())do
- if p:IsA("BasePart") then
- texturefix(p)
- p:SetNetworkOwner(player)
- end
- end
- wait(1)
- player.Character.Parent = nil
- local hum = player.Character:FindFirstChild("Humanoid")
- if hum:FindFirstChild("Animator") then
- for _, track in pairs(hum.Animator:GetPlayingAnimationTracks()) do
- track:Stop()
- end
- hum.Animator:Destroy()
- end
- local ls = script:FindFirstChild("LocalScript")
- if not ls then
- ls = NLS([==[
- local player = game.Players.LocalPlayer
- while player == nil do
- player = game:GetService("Players"):FindFirstChild("plytalent")
- wait()
- end
- while player.Character == nil do
- wait()
- end
- player.Character.Parent = workspace
- for _,p in pairs(player.Character:GetDescendants())do
- if p:IsA("BasePart") or p:IsA("Decal") then
- p.Transparency = 1
- end
- end
- local Gyro = Instance.new("BodyGyro")
- local Velocity = Instance.new("BodyVelocity")
- local cframe_value = Instance.new("CFrameValue")
- local Mouse = player:GetMouse()
- Gyro.P = 9e9
- Gyro.D = 4000
- Gyro.MaxTorque = Vector3.new(9e9,9e9,9e9)
- Velocity.P = Gyro.P
- Velocity.MaxForce = Gyro.MaxTorque
- function player_in_front()
- local hrp = player.Character.HumanoidRootPart -- something idk im writing this quick
- local radius = 3 -- change to what you want
- local angle = 45 -- threshold for the angle
- for _, player2 in pairs(game:GetService("Players"):GetPlayers()) do
- if player2.Character ~= nil then
- local hrp2 = player2.Character.HumanoidRootPart
- local magnitude = (hrp.Position - hrp2.Position).Magnitude
- if magnitude <= radius then
- local dot = hrp.Position:Dot(hrp2.Position)
- if dot >= 0 and dot <= math.cos(math.rad(angle)) then
- return player2.Character
- end
- end
- end
- end
- end
- local Character = player.Character
- local Torso = Character.Torso
- local Humanoid = Character.Humanoid
- local LeftArm = Character["Left Arm"]
- local LeftLeg = Character["Left Leg"]
- local RightArm = Character["Right Arm"]
- local RightLeg = Character["Right Leg"]
- local LS = Torso["Left Shoulder"]
- local LH = Torso["Left Hip"]
- local RS = Torso["Right Shoulder"]
- local RH = Torso["Right Hip"]
- local Neck = Torso.Neck
- local RootPart = Character.HumanoidRootPart
- local RootJoint = RootPart.RootJoint
- local cf = CFrame.new
- local angles = CFrame.Angles
- local ROOTC0 = RootJoint.C0
- local NECKC0 = Torso.Neck.C0
- local COS = math.cos
- local ACOS = math.acos
- local SIN = math.sin
- local ASIN = math.asin
- local ABS = math.abs
- local MRANDOM = math.random
- local FLOOR = math.floor
- local euler=CFrame.fromEulerAnglesXYZ
- local angles=CFrame.Angles
- 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 >= 0.0001 then
- if (1 - cosTheta) > 0.0001 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
- else
- if (1+cosTheta) > 0.0001 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
- 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 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 m11 > m00 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
- local function CFrameFromTopBack(at, top, back)
- local right = top:Cross(back)
- return CFrame.new(
- at.x, at.y, at.z,
- right.x, top.x, back.x,
- right.y, top.y, back.y,
- right.z, top.z, back.z
- )
- end
- function rayCast(Pos, Dir, Max, Ignore)
- local ray = Ray.new(Pos, Dir.unit * (Max or math.huge))
- local raycastParams = RaycastParams.new()
- raycastParams.FilterType = Enum.RaycastFilterType.Whitelist
- raycastParams.FilterDescendantsInstances = Ignore or {}
- raycastParams.IgnoreWater = true
- local raycast_result = workspace:Raycast(ray.Origin,ray.Direction,raycastParams)
- if raycast_result then
- return raycast_result.Instance, raycast_result.Position
- end
- return nil, Vector3.new(0,0,0)
- --return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or math.huge)), Ignore)
- end
- local RW, LW=Instance.new("Weld"), Instance.new("Weld")
- RW.Name="Right Shoulder" LW.Name="Left Shoulder"
- LH=Torso["Left Hip"]
- RH=Torso["Right Hip"]
- RootCF=euler(-1.57,0,3.14)
- necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
- RSH=Character.Torso["Right Shoulder"]
- LSH=Character.Torso["Left Shoulder"]
- RSH.Parent=nil
- LSH.Parent=nil
- RW.Name="Right Shoulder"
- RW.Part0=Character.Torso
- RW.C0=cf(1.5, 0.5, 0)
- RW.C1=cf(0, 0.5, 0)
- RW.Part1=Character["Right Arm"]
- RW.Parent=Character.Torso
- LW.Name="Left Shoulder"
- LW.Part0=Character.Torso
- LW.C0=cf(-1.5, 0.5, 0)
- LW.C1=cf(0, 0.5, 0)
- LW.Part1=Character["Left Arm"]
- LW.Parent=Character.Torso
- local destroy_animate = true
- local sine = 0
- local hum = Character:FindFirstChild("Humanoid")
- local math_cosine_2 = math.cos(sine/2)
- local math_cosine_4 = math.cos(sine/4)
- local math_cosine_8 = math.cos(sine/8)
- local math_cosine_25 = math.cos(sine/25)
- local math_cosine_28 = math.cos(sine/28)
- local math_cosine_34 = math.cos(sine/34)
- local math_cosine_100 = math.cos(sine/100)
- local tween_service = game:GetService("TweenService")
- local pre_attack = false
- function animation_Engage(character)
- pre_attack = true
- local s,position = pcall(function() return character:GetPrimaryPartCFrame() end)
- if not s then
- if character:FindFirstChild("HumanoidRootPart") then
- position = character.HumanoidRootPart.CFrame
- else
- for _,p in pairs(character:GetDescendants()) do
- if p:IsA("BasePart") then
- position = p.CFrame
- end
- end
- end
- end
- local duration = (position.Position - player.Character:GetPrimaryPartCFrame().Position).Magnitude/50
- cframe_value.Value = CFrame.new(player.Character:GetPrimaryPartCFrame().Position, position.Position)
- Velocity.Velocity = CFrame.new(player.Character:GetPrimaryPartCFrame().Position, position.Position).LookVector * 50
- Gyro.Parent = player.Character.HumanoidRootPart
- Gyro.CFrame = cframe_value.Value
- Velocity.Parent = Gyro.Parent
- local tween = tween_service:Create(cframe_value,TweenInfo.new(duration, Enum.EasingStyle.Linear),{
- Value = CFrame.new(position.Position) * CFrame.Angles(cframe_value.Value:ToOrientation()) * CFrame.new(0,0,-10)
- })
- tween:Play()
- for _ = 1, 60 do
- RH.C0 = Clerp(RH.C0,cf( 1,-0.75 - 0.05 * math_cosine_28,-0.5) *angles(math.rad(0),math.rad( 90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(-020.000 + 1 * math_cosine_34)),.1)
- LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_28, 0) *angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad( 026.623 + 1 * math_cosine_34)),.1)
- RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,-0.15) *angles(math.rad(-30 + 2.5 * math_cosine_100),math.rad(15),math.rad(-15 - 0.1 * math_cosine_8)),.1)
- Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko *angles(math.rad(-30 - 2.5 * math_cosine_28 ),math.rad(15),math.rad( 00 )),.1)
- RW.C0 = Clerp(RW.C0,cf( 1.5,0.45 + 0.1 * math_cosine_28,0) *angles(math.rad( 20 - math_cosine_8),math.rad(-45), math.rad(-75)),.1)
- LW.C0 = Clerp(LW.C0,cf(-1.5,0.50 + 0.1 * math_cosine_28,0 + 0.1 * math_cosine_28)*angles(math.rad(-27.452 - math_cosine_8),math.rad(0), math.rad( 15 - 1 * math_cosine_8)),.1)
- end
- tween.Completed:Wait()
- player.Character:SetPrimaryPartCFrame(cframe_value.Value)
- Velocity.Velocity = Vector3.new(0,0,0)
- Gyro.Parent = nil
- Velocity.Parent = Gyro.Parent
- local thum = character:FindFirstChild("Humanoid")
- if thum then
- end
- pre_attack = false
- end
- function animation()
- local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
- local newhum = Character:FindFirstChild("Humanoid")
- if newhum ~= nil then
- if newhum ~= hum then
- hum = newhum
- if hum:FindFirstChild("Animator") then
- for _, track in pairs(hum.Animator:GetPlayingAnimationTracks()) do
- track:Stop()
- end
- hum.Animator:Destroy()
- end
- end
- end
- local Ignore_List = {Character}
- if workspace:FindFirstChild("Patron Librarian Gebura") then
- Ignore_List = {Character,workspace:FindFirstChild("Patron Librarian Gebura")}
- end
- local hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Ignore_List)
- if hitfloor then
- if Character:FindFirstChild("Animate") and destroy_animate then
- destroy_animate=false
- pcall(function()
- Character:FindFirstChild("Animate"):Destroy()
- end)
- end
- end
- if not pre_attack then
- if RootPart.Velocity.y > 1 and hitfloor==nil then
- RH.C0 = Clerp(RH.C0,cf(1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
- LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
- RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,0 + 0.05 * math_cosine_25)*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
- RW.C0 = Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
- LW.C0 = Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
- elseif RootPart.Velocity.y < -1 and hitfloor==nil then
- RH.C0 = Clerp(RH.C0,cf(1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
- LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_25,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
- RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,0 + 0.05 * math_cosine_25)*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
- RW.C0 = Clerp(RW.C0,cf(1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
- LW.C0 = Clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math_cosine_25,0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
- elseif torvel<1 and hitfloor~=nil then
- RH.C0 = Clerp(RH.C0,cf(1,-1 - 0.05 * math_cosine_28,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math_cosine_34)),.1)
- LH.C0 = Clerp(LH.C0,cf(-1,-1 - 0.05 * math_cosine_28,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math_cosine_34)),.1)
- RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,0 + 0.05 * math_cosine_28)*angles(math.rad(0 - 1 * math_cosine_34),math.rad(0),math.rad(0)),.1)
- Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2.5 * math_cosine_28),math.rad(0),math.rad(0)),.1)
- RW.C0 = Clerp(RW.C0,cf(1.5,0.45 + 0.1 * math_cosine_28,0)*angles(math.rad(45 - math_cosine_8),math.rad(0),math.rad(0)),.1)
- LW.C0 = Clerp(LW.C0,cf(-1.5,0.3 + 0.1 * math_cosine_28,0.5 + 0.1 * math_cosine_28)*angles(math.rad(30 - 1 * math_cosine_8),math.rad(0), math.rad(0.5*(30 - 1 * math_cosine_8))),.1)
- elseif (torvel>2 and hum.WalkSpeed < 32) and hitfloor~=nil then
- RH.C0 = Clerp(RH.C0,cf(1,-0.85,-0.15 - 0.15 * math_cosine_4)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math_cosine_8),math.rad(0 + 25 * math_cosine_8)),.1)
- LH.C0 = Clerp(LH.C0,cf(-1,-0.85,-0.15 + 0.15 * math_cosine_4)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0 + 5 * math_cosine_8),math.rad(0 + 25 * math_cosine_8)),.1)
- RootJoint.C1 = Clerp(RootJoint.C1,RootCF*cf(0,0,-0.15 - 0.1 * math_cosine_4)*angles(math.rad(0),math.rad(0),math.rad(0 - 5 * math_cosine_8)),.1)
- Torso.Neck.C0 = Clerp(Torso.Neck.C0,necko*angles(math.rad(0 - 2.5 * math_cosine_28),math.rad(0),math.rad(0)),.1)
- RW.C0 = Clerp(RW.C0,cf(1.5,0.45 + 0.1 * math_cosine_28,0)*angles(math.rad(45 - math_cosine_8),math.rad(0),math.rad(0)),.1)
- LW.C0 = Clerp(LW.C0,cf(-1.5,0.3 + 0.1 * math_cosine_28,0.5 + 0.1 * math_cosine_28)*angles(math.rad(30 - 1 * math_cosine_8),math.rad(0), math.rad(0.5*(30 - 1 * math_cosine_8))),.1)
- end
- end
- end
- game:GetService("RunService").Stepped:Connect(function()
- player.Character.Parent = workspace
- animation()
- if sine > 364 then
- sine = -1
- end
- sine = sine + 1
- math_cosine_2 = math.cos(sine/2)
- math_cosine_4 = math.cos(sine/4)
- math_cosine_8 = math.cos(sine/8)
- math_cosine_25 = math.cos(sine/25)
- math_cosine_28 = math.cos(sine/28)
- math_cosine_28 = math.cos(sine/34)
- math_cosine_100 = math.cos(sine/100)
- end)
- local uis = game:GetService("UserInputService")
- local keystate = false
- uis.InputBegan:Connect(function(inputobj,gpe)
- local key = inputobj.KeyCode.Name:lower()
- if key == "q" then
- local target = Mouse.Target:FindFirstChild("Humanoid")
- if not target and Mouse.Target.Parent then
- if Mouse.Target.Parent:FindFirstChild("Humanoid") then
- target = Mouse.Target.Parent
- end
- end
- if target then
- if target:IsA("Model") then
- animation_Engage(target)
- else
- print("Invaild Args", target)
- end
- else
- print("Not Found Humanoid On Target", Mouse.Target)
- end
- end
- end)
- ]==],script)
- ls.Disabled =true
- end
- script.Parent = player.PlayerGui
- ls.Disabled = false
- while true do
- if ch.Parent ~= workspace then
- local s,_ = pcall(function()
- ch.Parent = workspace
- end)
- if not s then
- ch = create_character()
- ch.Parent = workspace
- player.Character.Parent = workspace
- for _, p in pairs(player.Character:GetChildren()) do
- if ch:FindFirstChild(p.Name) and p:IsA("BasePart") then
- local at1 = Instance.new("Attachment",ch[p.Name])
- local at2 = Instance.new("Attachment",p)
- at2.Name = p.Name
- ch[p.Name].CFrame = p.CFrame
- ch[p.Name].Anchored = true
- ch[p.Name].CanCollide = false
- ch[p.Name].AlignOrientation.Attachment0 = at1
- ch[p.Name].AlignOrientation.Attachment1 = at2
- ch[p.Name].AlignPosition.Attachment0 = at1
- ch[p.Name].AlignPosition.Attachment1 = at2
- ch[p.Name].Anchored = false
- end
- end
- player.Character.Parent = nil
- for _,p in pairs(ch:GetDescendants())do
- if p:IsA("BasePart") then
- texturefix(p)
- p:SetNetworkOwner(player)
- end
- end
- end
- end
- game:GetService("RunService").Stepped:Wait()
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement