SHOW:
|
|
- or go back to the newest paste.
| 1 | local s = Instance.new("Sound")
| |
| 2 | ||
| 3 | - | s.Name = "SeriousSamTime" |
| 3 | + | s.Name = "EnderWolfMage" |
| 4 | s.SoundId = "rbxassetid://162191112" | |
| 5 | s.Volume = 1 | |
| 6 | s.Looped = true | |
| 7 | s.archivable = false | |
| 8 | ||
| 9 | s.Parent = game.Workspace | |
| 10 | ||
| 11 | wait(1) | |
| 12 | ||
| 13 | s:play() | |
| 14 | ||
| 15 | local Player = game:GetService("Players").LocalPlayer
| |
| 16 | local Character = Player.Character | |
| 17 | local Mouse = Player:GetMouse() | |
| 18 | --Mouse.TargetFilter = workspace | |
| 19 | ||
| 20 | local Head = Character:WaitForChild("Head")
| |
| 21 | local Torso = Character:WaitForChild("Torso")
| |
| 22 | local RootPart = Character:WaitForChild("HumanoidRootPart")
| |
| 23 | local Human = Character:WaitForChild("Humanoid")
| |
| 24 | ||
| 25 | Human.AutoRotate = false | |
| 26 | Human.WalkSpeed = 30 | |
| 27 | ||
| 28 | ----------------------------------------------------------------------------------------------------------------------- | |
| 29 | ||
| 30 | for _, Item in next, Character:GetChildren() do | |
| 31 | if Item:IsA("CharacterAppearance") then
| |
| 32 | Item:Destroy() | |
| 33 | end | |
| 34 | end | |
| 35 | ||
| 36 | local Pants = Character:FindFirstChild("Pants") or Instance.new("Pants")
| |
| 37 | Pants.PantsTemplate = "rbxassetid://129458425" | |
| 38 | Pants.Name = "Pants" | |
| 39 | Pants.Parent = Character | |
| 40 | ||
| 41 | local Shirt = Character:FindFirstChild("Shirt") or Instance.new("Shirt")
| |
| 42 | Shirt.ShirtTemplate = "rbxassetid://382210761" | |
| 43 | Shirt.Name = "Shirt" | |
| 44 | Shirt.Parent = Character | |
| 45 | ||
| 46 | local Face = Head:WaitForChild("face")
| |
| 47 | Face.Texture = "rbxassetid://315622231" | |
| 48 | ||
| 49 | local TShirt = Torso:FindFirstChild("roblox")
| |
| 50 | if TShirt then | |
| 51 | TShirt:Destroy() | |
| 52 | end | |
| 53 | ||
| 54 | --[[local BodyColors = Character:WaitForChild("Body Colors")
| |
| 55 | BodyColors.HeadColor = BrickColor.new("Light orange")
| |
| 56 | BodyColors.LeftArmColor = BrickColor.new("Light orange")
| |
| 57 | BodyColors.RightArmColor = BrickColor.new("Light orange")
| |
| 58 | BodyColors.TorsoColor = BrickColor.new("Light orange")--]]
| |
| 59 | ||
| 60 | spawn(function() wait(.5) | |
| 61 | Head.BrickColor = BrickColor.new("Light orange")
| |
| 62 | Torso.BrickColor = BrickColor.new("Light orange")
| |
| 63 | Character["Left Arm"].BrickColor = BrickColor.new("Light orange")
| |
| 64 | Character["Right Arm"].BrickColor = BrickColor.new("Light orange")
| |
| 65 | end) | |
| 66 | ||
| 67 | Character:WaitForChild("Animate"):Destroy()
| |
| 68 | ||
| 69 | local RJ = RootPart:WaitForChild("RootJoint")
| |
| 70 | RJ:Destroy() | |
| 71 | RJ = Instance.new("Weld", RootPart)
| |
| 72 | RJ.Part0 = RootPart | |
| 73 | RJ.Part1 = Torso | |
| 74 | ||
| 75 | local Neck = Instance.new("Weld", Torso)
| |
| 76 | Neck.Part0 = Torso | |
| 77 | Neck.Part1 = Character:WaitForChild("Head")
| |
| 78 | Neck.C0 = CFrame.new(0, 1.5, 0) | |
| 79 | ||
| 80 | Torso:WaitForChild("Right Shoulder").Part1 = nil
| |
| 81 | local RS = Instance.new("Weld", Head)
| |
| 82 | RS.Part0 = Head | |
| 83 | RS.Part1 = Character:WaitForChild("Right Arm")
| |
| 84 | ||
| 85 | Torso:WaitForChild("Left Shoulder").Part1 = nil
| |
| 86 | local LS = Instance.new("Weld", Head)
| |
| 87 | LS.Part0 = Head | |
| 88 | LS.Part1 = Character:WaitForChild("Left Arm")
| |
| 89 | ||
| 90 | local LH = Torso:WaitForChild("Left Hip")
| |
| 91 | LH:Destroy() | |
| 92 | LH = Instance.new("Weld", Torso)
| |
| 93 | LH.Part0 = Torso | |
| 94 | LH.Part1 = Character:WaitForChild("Left Leg")
| |
| 95 | ||
| 96 | local RH = Torso:WaitForChild("Right Hip")
| |
| 97 | RH:Destroy() | |
| 98 | RH = Instance.new("Weld", Torso)
| |
| 99 | RH.Part0 = Torso | |
| 100 | RH.Part1 = Character:WaitForChild("Right Leg")
| |
| 101 | ||
| 102 | local GUN = Instance.new("Part", Character)
| |
| 103 | GUN.CanCollide = false | |
| 104 | GUN.Size = Vector3.new(1.549, 2.302, 3.814) | |
| 105 | GUN.Name = "Handle" | |
| 106 | GUN.Material = Enum.Material.SmoothPlastic | |
| 107 | ||
| 108 | local MS = Instance.new("SpecialMesh", GUN)
| |
| 109 | MS.MeshType = Enum.MeshType.FileMesh | |
| 110 | MS.MeshId = "rbxassetid://450812185" | |
| 111 | MS.TextureId = "rbxassetid://450812194" | |
| 112 | ||
| 113 | local GRIP = Instance.new("Weld", RS.Part1)
| |
| 114 | GRIP.Part0 = RS.Part1 | |
| 115 | GRIP.Part1 = GUN | |
| 116 | ||
| 117 | local SN = Instance.new("Sound", GUN)
| |
| 118 | SN.SoundId = "rbxassetid://341294387" | |
| 119 | SN.PlaybackSpeed = 0.9 | |
| 120 | SN.Looped = true | |
| 121 | SN.Volume = 0 | |
| 122 | SN:Play() | |
| 123 | ||
| 124 | local FL = Instance.new("Part", GUN)
| |
| 125 | FL.BrickColor = BrickColor.Yellow() | |
| 126 | FL.Transparency = 1 | |
| 127 | FL.Material = Enum.Material.SmoothPlastic | |
| 128 | FL.CanCollide = false | |
| 129 | FL.Size = Vector3.new(1, 3.38, 1) | |
| 130 | ||
| 131 | local MS2 = Instance.new("SpecialMesh", FL)
| |
| 132 | MS2.MeshType = Enum.MeshType.FileMesh | |
| 133 | MS2.MeshId = "rbxassetid://1323306" | |
| 134 | MS2.Scale = Vector3.new(0.35, 1.9, 0.35) | |
| 135 | ||
| 136 | local FLW = Instance.new("Weld", GUN)
| |
| 137 | FLW.Part0 = GUN | |
| 138 | FLW.Part1 = FL | |
| 139 | FLW.C0 = CFrame.new(0.293, 0.251, 3.221, 0, 0.028, 1, 1, 0, 0, 0, 1, -0.028) | |
| 140 | ||
| 141 | ----------------------------------------------------------------------------------------------------------------------- | |
| 142 | ||
| 143 | local STANCE = {
| |
| 144 | NK = CFrame.new(0, 1, 0, 0.747311652, 0, 0.664473772, 0, 1, 0, -0.664473772, 0, 0.747311652); | |
| 145 | RJ = CFrame.new(0, 0, 0, 0.747311592, 0, -0.664473712, 0, 1, 0, 0.664473712, 0, 0.747311592); | |
| 146 | LS = CFrame.new(0.474761963, -1.61745477, -1.20455933, -0.127145067, -0.88503027, -0.447834671, -0.836402416, 0.338357687, -0.431213528, 0.533165276, 0.319743276, -0.783262014); | |
| 147 | RS = CFrame.new(1.14480591, -1.47239065, 0.695491791, 0.972185493, -0.190045089, -0.136889026, 0.123703048, 0.912935674, -0.388903707, 0.198880106, 0.361152887, 0.911051929); | |
| 148 | GRIP = CFrame.new(-0.0976009369, -1.92251587, -1.31733322, -0.980839312, 0.117544398, -0.155363142, 0.158846945, 0.944226265, -0.288452089, 0.11279203, -0.307604104, -0.944805682); | |
| 149 | } | |
| 150 | ||
| 151 | LS.C0 = STANCE.LS | |
| 152 | RS.C0 = STANCE.RS | |
| 153 | RJ.C0 = STANCE.RJ | |
| 154 | GRIP.C0 = STANCE.GRIP | |
| 155 | ||
| 156 | local Down = false | |
| 157 | ||
| 158 | Mouse.Button1Down:Connect(function() | |
| 159 | Down = true | |
| 160 | end) | |
| 161 | ||
| 162 | Mouse.Button1Up:Connect(function() | |
| 163 | Down = false | |
| 164 | end) | |
| 165 | ||
| 166 | math.randomseed(os.time()) | |
| 167 | ||
| 168 | local function Shoot() | |
| 169 | local Bullet = Instance.new("Part")
| |
| 170 | Bullet.Size = Vector3.new(0.3, 0.3, 0.7) | |
| 171 | Bullet.Transparency = 1 | |
| 172 | Bullet.CanCollide = false | |
| 173 | ||
| 174 | local AntiGravity = Instance.new("BodyForce", Bullet)
| |
| 175 | AntiGravity.Force = Vector3.new(0, Bullet:GetMass() * workspace.Gravity, 0) | |
| 176 | ||
| 177 | local Start = (GUN.CFrame * CFrame.new(0.255, 0.251, 1.877)).p | |
| 178 | Bullet.CFrame = CFrame.new(Start, Mouse.Hit.p) | |
| 179 | Bullet.Velocity = Bullet.CFrame.lookVector * 300 | |
| 180 | ||
| 181 | Bullet.Touched:Connect(function(Hit) | |
| 182 | if Hit.Parent and Hit.Parent ~= Character and Hit.Parent:FindFirstChild("Humanoid") then
| |
| 183 | Hit.Parent.Humanoid:TakeDamage(5) | |
| 184 | Bullet:Destroy() | |
| 185 | end | |
| 186 | end) | |
| 187 | ||
| 188 | Bullet.Parent = workspace | |
| 189 | game.Debris:AddItem(Bullet, 3) | |
| 190 | end | |
| 191 | ||
| 192 | ||
| 193 | game:GetService("RunService"):BindToRenderStep("Invisible", Enum.RenderPriority.Character.Value - 1, function()
| |
| 194 | GUN.LocalTransparencyModifier = 0 | |
| 195 | FL.LocalTransparencyModifier = 0 | |
| 196 | LS.Part1.LocalTransparencyModifier = 0 | |
| 197 | RS.Part1.LocalTransparencyModifier = 0 | |
| 198 | end) | |
| 199 | ||
| 200 | local Heartbeat, Angle = game:GetService("RunService").Heartbeat
| |
| 201 | ||
| 202 | while Heartbeat:Wait() do | |
| 203 | local Angle = tick() * 8 | |
| 204 | ||
| 205 | -- Torso lean | |
| 206 | local VelocityForTilt = RootPart.Velocity * Vector3.new(1, 0, 1) / 150 | |
| 207 | local VectorForTilt = RootPart.CFrame:vectorToObjectSpace(VelocityForTilt) | |
| 208 | RJ.C0 = RJ.C0:Lerp(STANCE.RJ * CFrame.Angles(VectorForTilt.Z, VectorForTilt.X, -VectorForTilt.X), 0.1) | |
| 209 | ||
| 210 | -- Rotate to face camera | |
| 211 | local RootPosition = RootPart.Position | |
| 212 | local Direction = Mouse.Hit.p - RootPosition | |
| 213 | Direction = Vector3.new(Direction.X, 0, Direction.Z).unit | |
| 214 | local NewCFrame = CFrame.new(RootPosition, RootPosition + Direction) * CFrame.Angles(0, -0.02, 0) | |
| 215 | RootPart.CFrame = RootPart.CFrame:Lerp(NewCFrame, 0.1) | |
| 216 | ||
| 217 | -- Neck Angle | |
| 218 | local Hypotenuse = (Mouse.Hit.p - Head.Position).magnitude | |
| 219 | local Opposite = Mouse.Hit.p.y - Head.Position.y | |
| 220 | local Pitch = math.asin(Opposite / Hypotenuse) | |
| 221 | local NewNeckCFrame = STANCE.NK * CFrame.Angles(Pitch + 0.2, 0, 0) * CFrame.new(0, 0.5, 0) | |
| 222 | Neck.C0 = Neck.C0:Lerp(NewNeckCFrame, 0.1) | |
| 223 | ||
| 224 | -- Legs | |
| 225 | local FlatVelocity = (Torso.Velocity * Vector3.new(1, 0, 1)) | |
| 226 | if FlatVelocity.magnitude < 2 then | |
| 227 | LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.sin(tick() * 0.5) / 17, 0, -0.02 + math.sin(tick() * 0.4) / 19) * CFrame.new(0, -1, 0), 0.2) | |
| 228 | RH.C0 = RH.C0:Lerp(CFrame.new(0.5, -1, 0) * CFrame.Angles(math.sin(-tick() * 0.5) / 18, 0, 0.02 + math.sin(-tick() * 0.35) / 20) * CFrame.new(0, -1, 0), 0.2) | |
| 229 | else | |
| 230 | local Look = (Torso.CFrame.lookVector * Vector3.new(1, 0, 1)).unit | |
| 231 | local Move = FlatVelocity.unit | |
| 232 | local OffAngle = (Look:Cross(Move).Y > 0 and 1 or -1) * math.acos(1 - (Look - Move).magnitude ^ 2 / 2) | |
| 233 | OffAngle = math.max(-math.pi, math.min(math.pi, OffAngle)) | |
| 234 | LH.C0 = LH.C0:Lerp(CFrame.new(-0.5, 0, 0) * CFrame.Angles(0, OffAngle, 0) | |
| 235 | * CFrame.new(0, -math.max(0, math.cos(Angle * 2) / 5) + math.max(0, math.cos(Angle + math.pi) / 2.5) - 2, math.sin(-Angle + math.pi) / 1.8 + 0.15) | |
| 236 | * CFrame.Angles(math.sin(-Angle) / 1.8 - 0.2, 0, 0), 0.2) | |
| 237 | RH.C0 = RH.C0:Lerp(CFrame.new(0.5, 0, 0) * CFrame.Angles(0, OffAngle, 0) | |
| 238 | * CFrame.new(0, -math.max(0, math.cos(Angle * 2) / 5) + math.max(0, math.cos(Angle) / 2.5) - 2, math.sin(-Angle) / 1.8 + 0.15) | |
| 239 | * CFrame.Angles(math.sin(Angle) / 1.8 - 0.2, 0, 0), 0.2) | |
| 240 | end | |
| 241 | ||
| 242 | -- Shooting | |
| 243 | if Down then | |
| 244 | SN.Volume = SN.Volume + (1.5 - SN.Volume) * 0.3 | |
| 245 | FL.Transparency = FL.Transparency + (0.6 - FL.Transparency) * 0.2 | |
| 246 | FLW.C0 = FLW.C0 * CFrame.Angles(0, 0.2, 0) | |
| 247 | Shoot() | |
| 248 | else | |
| 249 | SN.Volume = SN.Volume + (0 - SN.Volume) * 0.15 | |
| 250 | FL.Transparency = FL.Transparency + (1 - FL.Transparency) * 0.2 | |
| 251 | end | |
| 252 | end |