SHOW:
|
|
- or go back to the newest paste.
| 1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 3 | do | |
| 4 | print("FE Compatibility code by Mokiros")
| |
| 5 | script.Parent = Player.Character | |
| 6 | ||
| 7 | --RemoteEvent for communicating | |
| 8 | local Event = Instance.new("RemoteEvent")
| |
| 9 | Event.Name = "UserInput_Event" | |
| 10 | ||
| 11 | --Fake event to make stuff like Mouse.KeyDown work | |
| 12 | local function fakeEvent() | |
| 13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 14 | t.connect = t.Connect | |
| 15 | return t | |
| 16 | end | |
| 17 | ||
| 18 | --Creating fake input objects with fake variables | |
| 19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 23 | end} | |
| 24 | --Merged 2 functions into one by checking amount of arguments | |
| 25 | CAS.UnbindAction = CAS.BindAction | |
| 26 | ||
| 27 | --This function will trigger the events that have been :Connect()'ed | |
| 28 | local function te(self,ev,...) | |
| 29 | local t = m[ev] | |
| 30 | if t and t._fakeEvent and t.Function then | |
| 31 | t.Function(...) | |
| 32 | end | |
| 33 | end | |
| 34 | m.TrigEvent = te | |
| 35 | UIS.TrigEvent = te | |
| 36 | ||
| 37 | Event.OnServerEvent:Connect(function(plr,io) | |
| 38 | if plr~=Player then return end | |
| 39 | if io.isMouse then | |
| 40 | m.Target = io.Target | |
| 41 | m.Hit = io.Hit | |
| 42 | else | |
| 43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 46 | end | |
| 47 | for _,t in pairs(CAS.Actions) do | |
| 48 | for _,k in pairs(t.Keys) do | |
| 49 | if k==io.KeyCode then | |
| 50 | t.Function(t.Name,io.UserInputState,io) | |
| 51 | end | |
| 52 | end | |
| 53 | end | |
| 54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 56 | end | |
| 57 | end) | |
| 58 | Event.Parent = NLS([==[ | |
| 59 | local Player = game:GetService("Players").LocalPlayer
| |
| 60 | local Event = script:WaitForChild("UserInput_Event")
| |
| 61 | ||
| 62 | local UIS = game:GetService("UserInputService")
| |
| 63 | local input = function(io,a) | |
| 64 | if a then return end | |
| 65 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 67 | end | |
| 68 | UIS.InputBegan:Connect(input) | |
| 69 | UIS.InputEnded:Connect(input) | |
| 70 | ||
| 71 | local Mouse = Player:GetMouse() | |
| 72 | local h,t | |
| 73 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 74 | --If player is not moving their mouse, client won't fire events | |
| 75 | while wait(1/30) do | |
| 76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 77 | h,t=Mouse.Hit,Mouse.Target | |
| 78 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 79 | end | |
| 80 | end]==],Player.Character) | |
| 81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 82 | end | |
| 83 | print("edit By mememasterYT65910")
| |
| 84 | print("100 views! thanks!")
| |
| 85 | Ply = owner | |
| 86 | local char = Ply.Character | |
| 87 | local hum = char:FindFirstChildOfClass'Humanoid' | |
| 88 | local hed = char.Head | |
| 89 | local root = char:FindFirstChild'HumanoidRootPart' | |
| 90 | local rootj = root.RootJoint | |
| 91 | local tors = char.Torso | |
| 92 | local ra = char["Right Arm"] | |
| 93 | local la = char["Left Arm"] | |
| 94 | local rl = char["Right Leg"] | |
| 95 | local ll = char["Left Leg"] | |
| 96 | local neck = tors["Neck"] | |
| 97 | local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 98 | local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0) | |
| 99 | local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0) | |
| 100 | local maincolor = BrickColor.new("Institutional white")
| |
| 101 | ||
| 102 | ||
| 103 | local ColorArray = Color3.new(249, 161, 255) | |
| 104 | local att1 = Instance.new("Attachment", char["Right Leg"])
| |
| 105 | att1.Name = "att1" | |
| 106 | att1.Position = Vector3.new(0.5, 1, 0.5) | |
| 107 | local att2 = Instance.new("Attachment", char["Right Leg"])
| |
| 108 | att2.Name = "att2" | |
| 109 | att2.Position = Vector3.new(-0.5, 1, 0.5) | |
| 110 | local att3 = Instance.new("Attachment", char["Right Leg"])
| |
| 111 | att3.Name = "att3" | |
| 112 | att3.Position = Vector3.new(0.5, -1, 0.5) | |
| 113 | local att4 = Instance.new("Attachment", char["Right Leg"])
| |
| 114 | att4.Name = "att4" | |
| 115 | att4.Position = Vector3.new(-0.5, -1, 0.5) | |
| 116 | ||
| 117 | local attt1 = Instance.new("Attachment", char["Left Leg"])
| |
| 118 | attt1.Name = "att1" | |
| 119 | attt1.Position = Vector3.new(0.5, 1, 0.5) | |
| 120 | local attt2 = Instance.new("Attachment", char["Left Leg"])
| |
| 121 | attt2.Name = "att2" | |
| 122 | attt2.Position = Vector3.new(-0.5, 1, 0.5) | |
| 123 | local attt3 = Instance.new("Attachment", char["Left Leg"])
| |
| 124 | attt3.Name = "att3" | |
| 125 | attt3.Position = Vector3.new(0.5, -1, 0.5) | |
| 126 | local attt4 = Instance.new("Attachment", char["Left Leg"])
| |
| 127 | attt4.Name = "att4" | |
| 128 | attt4.Position = Vector3.new(-0.5, -1, 0.5) | |
| 129 | ||
| 130 | local trailtop1 = Instance.new("Trail", char["Right Leg"])
| |
| 131 | trailtop1.Enabled = true | |
| 132 | trailtop1.Texture = "rbxassetid://16607923" | |
| 133 | trailtop1.Name = "toptrail" | |
| 134 | trailtop1.MinLength = 0 | |
| 135 | trailtop1.Lifetime = 0.1 | |
| 136 | ||
| 137 | trailtop1.Color = ColorSequence.new(ColorArray) | |
| 138 | ||
| 139 | trailtop1.Attachment0 = att1 | |
| 140 | trailtop1.Attachment1 = att2 | |
| 141 | trailtop1.Transparency = NumberSequence.new({
| |
| 142 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 143 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 144 | }) | |
| 145 | ||
| 146 | local trailbot1 = Instance.new("Trail", char["Right Leg"])
| |
| 147 | trailbot1.Enabled = true | |
| 148 | trailbot1.Texture = "rbxassetid://16607923" | |
| 149 | trailbot1.Name = "bottrail" | |
| 150 | trailbot1.MinLength = 0 | |
| 151 | trailbot1.Lifetime = 0.1 | |
| 152 | ||
| 153 | trailbot1.Color = ColorSequence.new(ColorArray) | |
| 154 | ||
| 155 | trailbot1.Attachment0 = att3 | |
| 156 | trailbot1.Attachment1 = att4 | |
| 157 | trailbot1.Transparency = NumberSequence.new({
| |
| 158 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 159 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 160 | }) | |
| 161 | ||
| 162 | local trailside1 = Instance.new("Trail", char["Right Leg"])
| |
| 163 | trailside1.Enabled = true | |
| 164 | trailside1.Texture = "rbxassetid://16607923" | |
| 165 | trailside1.Name = "sidetrail1" | |
| 166 | trailside1.MinLength = 0 | |
| 167 | trailside1.Lifetime = 0.1 | |
| 168 | ||
| 169 | trailside1.Color = ColorSequence.new(ColorArray) | |
| 170 | ||
| 171 | trailside1.Attachment0 = att1 | |
| 172 | trailside1.Attachment1 = att3 | |
| 173 | trailside1.Transparency = NumberSequence.new({
| |
| 174 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 175 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 176 | }) | |
| 177 | ||
| 178 | local trailside2 = Instance.new("Trail", char["Right Leg"])
| |
| 179 | trailside2.Enabled = true | |
| 180 | trailside2.Texture = "rbxassetid://16607923" | |
| 181 | trailside2.Name = "sidetrail2" | |
| 182 | trailside2.MinLength = 0 | |
| 183 | trailside2.Lifetime = 0.1 | |
| 184 | spawn(function() | |
| 185 | while true do wait() | |
| 186 | trailside2.Color = ColorSequence.new(ColorArray) | |
| 187 | end | |
| 188 | end) | |
| 189 | trailside2.Attachment0 = att2 | |
| 190 | trailside2.Attachment1 = att4 | |
| 191 | trailside2.Transparency = NumberSequence.new({
| |
| 192 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 193 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 194 | }) | |
| 195 | ||
| 196 | ||
| 197 | local trailtop12 = Instance.new("Trail", char["Left Leg"])
| |
| 198 | trailtop12.Enabled = true | |
| 199 | trailtop12.Texture = "rbxassetid://16607923" | |
| 200 | trailtop12.Name = "toptrail" | |
| 201 | trailtop12.MinLength = 0 | |
| 202 | trailtop12.Lifetime = 0.1 | |
| 203 | spawn(function() | |
| 204 | while true do wait() | |
| 205 | - | for i, v in pairs(hit:GetChildren()) do |
| 205 | + | trailtop12.Color = ColorSequence.new(ColorArray) |
| 206 | - | if v:IsA("Humanoid") and hit.Name ~= Char.Name then
|
| 206 | + | |
| 207 | - | local find = v:FindFirstChild("Hitz")
|
| 207 | + | |
| 208 | - | if not find then |
| 208 | + | trailtop12.Attachment0 = attt1 |
| 209 | - | if v.Parent:findFirstChild("Head") then
|
| 209 | + | trailtop12.Attachment1 = attt2 |
| 210 | - | local BillG = Create("BillboardGui"){
|
| 210 | + | trailtop12.Transparency = NumberSequence.new({
|
| 211 | - | Parent = v.Parent.Head, |
| 211 | + | NumberSequenceKeypoint.new(0, 0.5, 0), |
| 212 | - | Size = UDim2.new(1, 0, 1, 0), |
| 212 | + | NumberSequenceKeypoint.new(1, 1, 0) |
| 213 | - | Adornee = v.Parent.Head, |
| 213 | + | }) |
| 214 | - | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), |
| 214 | + | |
| 215 | - | } |
| 215 | + | local trailbot2 = Instance.new("Trail", char["Left Leg"])
|
| 216 | - | local TL = Create("TextLabel"){
|
| 216 | + | trailbot2.Enabled = true |
| 217 | - | Parent = BillG, |
| 217 | + | trailbot2.Texture = "rbxassetid://16607923" |
| 218 | - | Size = UDim2.new(3, 3, 3, 3), |
| 218 | + | trailbot2.Name = "bottrail" |
| 219 | - | BackgroundTransparency = 1, |
| 219 | + | trailbot2.MinLength = 0 |
| 220 | - | Text = tostring(damage).."-", |
| 220 | + | trailbot2.Lifetime = 0.1 |
| 221 | - | TextColor3 = Color1.Color, |
| 221 | + | |
| 222 | - | TextStrokeColor3 = Color2.Color, |
| 222 | + | trailbot2.Color = ColorSequence.new(ColorArray) |
| 223 | - | TextStrokeTransparency = 0, |
| 223 | + | |
| 224 | - | TextXAlignment = Enum.TextXAlignment.Center, |
| 224 | + | trailbot2.Attachment0 = attt3 |
| 225 | - | TextYAlignment = Enum.TextYAlignment.Center, |
| 225 | + | trailbot2.Attachment1 = attt4 |
| 226 | - | FontSize = Enum.FontSize.Size18, |
| 226 | + | trailbot2.Transparency = NumberSequence.new({
|
| 227 | - | Font = "ArialBold", |
| 227 | + | NumberSequenceKeypoint.new(0, 0.5, 0), |
| 228 | - | } |
| 228 | + | NumberSequenceKeypoint.new(1, 1, 0) |
| 229 | - | coroutine.resume(coroutine.create(function() |
| 229 | + | }) |
| 230 | - | wait(1) |
| 230 | + | |
| 231 | - | for i = 0, 1, .1 do |
| 231 | + | local trailside12 = Instance.new("Trail", char["Left Leg"])
|
| 232 | - | wait(.1) |
| 232 | + | trailside12.Enabled = true |
| 233 | - | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) |
| 233 | + | trailside12.Texture = "rbxassetid://16607923" |
| 234 | trailside12.Name = "sidetrail1" | |
| 235 | - | BillG:Destroy() |
| 235 | + | trailside12.MinLength = 0 |
| 236 | - | end)) |
| 236 | + | trailside12.Lifetime = 0.1 |
| 237 | ||
| 238 | - | v.Health = v.Health - damage |
| 238 | + | trailside12.Color = ColorSequence.new(ColorArray) |
| 239 | - | local bool = Create("BoolValue"){
|
| 239 | + | |
| 240 | - | Parent = v, |
| 240 | + | trailside12.Attachment0 = attt1 |
| 241 | - | Name = 'Hitz', |
| 241 | + | trailside12.Attachment1 = attt3 |
| 242 | - | } |
| 242 | + | trailside12.Transparency = NumberSequence.new({
|
| 243 | - | if HSound ~= nil and HPitch ~= nil then |
| 243 | + | NumberSequenceKeypoint.new(0, 0.5, 0), |
| 244 | - | CreateSound(HSound, hit, 1, HPitch) |
| 244 | + | NumberSequenceKeypoint.new(1, 1, 0) |
| 245 | }) | |
| 246 | - | game:GetService("Debris"):AddItem(bool, cooldown)
|
| 246 | + | |
| 247 | local trailside22 = Instance.new("Trail", char["Left Leg"])
| |
| 248 | trailside22.Enabled = true | |
| 249 | trailside22.Texture = "rbxassetid://16607923" | |
| 250 | trailside22.Name = "sidetrail2" | |
| 251 | trailside22.MinLength = 0 | |
| 252 | trailside22.Lifetime = 0.1 | |
| 253 | ||
| 254 | trailside22.Color = ColorSequence.new(ColorArray) | |
| 255 | ||
| 256 | trailside22.Attachment0 = attt2 | |
| 257 | trailside22.Attachment1 = attt4 | |
| 258 | trailside22.Transparency = NumberSequence.new({
| |
| 259 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 260 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 261 | }) | |
| 262 | ||
| 263 | ||
| 264 | local att1 = Instance.new("Attachment", char["Right Arm"])
| |
| 265 | att1.Name = "att1" | |
| 266 | att1.Position = Vector3.new(0.5, 1, 0.5) | |
| 267 | local att2 = Instance.new("Attachment", char["Right Arm"])
| |
| 268 | - | Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "Handle", Vector3.new(0.216133296, 0.432266444, 0.200000003)) |
| 268 | + | att2.Name = "att2" |
| 269 | att2.Position = Vector3.new(-0.5, 1, 0.5) | |
| 270 | local att3 = Instance.new("Attachment", char["Right Arm"])
| |
| 271 | - | FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "FakeHandle", Vector3.new(0.216133296, 0.432266444, 0.200000003)) |
| 271 | + | att3.Name = "att3" |
| 272 | att3.Position = Vector3.new(0.5, -1, 0.5) | |
| 273 | - | Barrel = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Smoky grey", "Barrel", Vector3.new(0.324199915, 0.200000003, 0.216133296)) |
| 273 | + | local att4 = Instance.new("Attachment", char["Right Arm"])
|
| 274 | att4.Name = "att4" | |
| 275 | att4.Position = Vector3.new(-0.5, -1, 0.5) | |
| 276 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199826, 0.324199826, 0.432266533)) |
| 276 | + | local attt1 = Instance.new("Attachment", char["Left Arm"])
|
| 277 | attt1.Name = "att1" | |
| 278 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003)) |
| 278 | + | attt1.Position = Vector3.new(0.5, 1, 0.5) |
| 279 | local attt2 = Instance.new("Attachment", char["Left Arm"])
| |
| 280 | attt2.Name = "att2" | |
| 281 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003)) |
| 281 | + | attt2.Position = Vector3.new(-0.5, 1, 0.5) |
| 282 | local attt3 = Instance.new("Attachment", char["Left Arm"])
| |
| 283 | attt3.Name = "att3" | |
| 284 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.756466568, 0.200000003, 0.432266533)) |
| 284 | + | attt3.Position = Vector3.new(0.5, -1, 0.5) |
| 285 | local attt4 = Instance.new("Attachment", char["Left Arm"])
| |
| 286 | attt4.Name = "att4" | |
| 287 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296)) |
| 287 | + | attt4.Position = Vector3.new(-0.5, -1, 0.5) |
| 288 | ||
| 289 | local trailtop1 = Instance.new("Trail", char["Right Arm"])
| |
| 290 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003)) |
| 290 | + | trailtop1.Enabled = true |
| 291 | trailtop1.Texture = "rbxassetid://16607923" | |
| 292 | trailtop1.Name = "toptrail" | |
| 293 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003)) |
| 293 | + | trailtop1.MinLength = 0 |
| 294 | trailtop1.Lifetime = 0.1 | |
| 295 | ||
| 296 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
| 296 | + | trailtop1.Color = ColorSequence.new(ColorArray) |
| 297 | ||
| 298 | trailtop1.Attachment0 = att1 | |
| 299 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296)) |
| 299 | + | trailtop1.Attachment1 = att2 |
| 300 | trailtop1.Transparency = NumberSequence.new({
| |
| 301 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 302 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296)) |
| 302 | + | NumberSequenceKeypoint.new(1, 1, 0) |
| 303 | }) | |
| 304 | ||
| 305 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.432266563, 2.48553157, 0.216133296)) |
| 305 | + | local trailbot1 = Instance.new("Trail", char["Right Arm"])
|
| 306 | trailbot1.Enabled = true | |
| 307 | trailbot1.Texture = "rbxassetid://16607923" | |
| 308 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296)) |
| 308 | + | trailbot1.Name = "bottrail" |
| 309 | trailbot1.MinLength = 0 | |
| 310 | trailbot1.Lifetime = 0.1 | |
| 311 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.756466269, 0.432266533)) |
| 311 | + | spawn(function() |
| 312 | while true do wait() | |
| 313 | trailbot1.Color = ColorSequence.new(ColorArray) | |
| 314 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
| 314 | + | |
| 315 | end) | |
| 316 | trailbot1.Attachment0 = att3 | |
| 317 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(2.485533, 0.216133222, 0.432266533)) |
| 317 | + | trailbot1.Attachment1 = att4 |
| 318 | trailbot1.Transparency = NumberSequence.new({
| |
| 319 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(2.16133285, 0.200000003, 0.432266533)) |
| 319 | + | NumberSequenceKeypoint.new(0, 0.5, 0), |
| 320 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 321 | }) | |
| 322 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003)) |
| 322 | + | |
| 323 | local trailside1 = Instance.new("Trail", char["Right Arm"])
| |
| 324 | trailside1.Enabled = true | |
| 325 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
| 325 | + | trailside1.Texture = "rbxassetid://16607923" |
| 326 | trailside1.Name = "sidetrail1" | |
| 327 | trailside1.MinLength = 0 | |
| 328 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
| 328 | + | trailside1.Lifetime = 0.1 |
| 329 | ||
| 330 | trailside1.Color = ColorSequence.new(ColorArray) | |
| 331 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
| 331 | + | |
| 332 | trailside1.Attachment0 = att1 | |
| 333 | trailside1.Attachment1 = att3 | |
| 334 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.29679966, 0.200000003, 0.432266533)) |
| 334 | + | trailside1.Transparency = NumberSequence.new({
|
| 335 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 336 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 337 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296)) |
| 337 | + | }) |
| 338 | ||
| 339 | local trailside2 = Instance.new("Trail", char["Right Arm"])
| |
| 340 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(1.08066642, 0.200000003, 0.432266533)) |
| 340 | + | trailside2.Enabled = true |
| 341 | trailside2.Texture = "rbxassetid://16607923" | |
| 342 | trailside2.Name = "sidetrail2" | |
| 343 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
| 343 | + | trailside2.MinLength = 0 |
| 344 | trailside2.Lifetime = 0.1 | |
| 345 | ||
| 346 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.432266563, 0.648399651, 0.216133296)) |
| 346 | + | trailside2.Color = ColorSequence.new(ColorArray) |
| 347 | ||
| 348 | trailside2.Attachment0 = att2 | |
| 349 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003)) |
| 349 | + | trailside2.Attachment1 = att4 |
| 350 | trailside2.Transparency = NumberSequence.new({
| |
| 351 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 352 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003)) |
| 352 | + | NumberSequenceKeypoint.new(1, 1, 0) |
| 353 | }) | |
| 354 | ||
| 355 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003)) |
| 355 | + | |
| 356 | local trailtop12 = Instance.new("Trail", char["Left Arm"])
| |
| 357 | trailtop12.Enabled = true | |
| 358 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.864533126, 0.540332973, 0.432266533)) |
| 358 | + | trailtop12.Texture = "rbxassetid://16607923" |
| 359 | trailtop12.Name = "toptrail" | |
| 360 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003)) |
| 360 | + | trailtop12.MinLength = 0 |
| 361 | trailtop12.Lifetime = 0.1 | |
| 362 | ||
| 363 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296)) |
| 363 | + | trailtop12.Color = ColorSequence.new(ColorArray) |
| 364 | ||
| 365 | trailtop12.Attachment0 = attt1 | |
| 366 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216134712, 0.216134697, 0.216134712)) |
| 366 | + | trailtop12.Attachment1 = attt2 |
| 367 | trailtop12.Transparency = NumberSequence.new({
| |
| 368 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.432266533)) |
| 368 | + | NumberSequenceKeypoint.new(0, 0.5, 0), |
| 369 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 370 | }) | |
| 371 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003)) |
| 371 | + | |
| 372 | local trailbot2 = Instance.new("Trail", char["Left Arm"])
| |
| 373 | trailbot2.Enabled = true | |
| 374 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199915, 0.756466269, 0.432266533)) |
| 374 | + | trailbot2.Texture = "rbxassetid://16607923" |
| 375 | trailbot2.Name = "bottrail" | |
| 376 | trailbot2.MinLength = 0 | |
| 377 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.864533186)) |
| 377 | + | trailbot2.Lifetime = 0.1 |
| 378 | ||
| 379 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.432266444, 0.216133267)) |
| 379 | + | trailbot2.Color = ColorSequence.new(ColorArray) |
| 380 | ||
| 381 | trailbot2.Attachment0 = attt3 | |
| 382 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133192, 0.216133267)) |
| 382 | + | trailbot2.Attachment1 = attt4 |
| 383 | trailbot2.Transparency = NumberSequence.new({
| |
| 384 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
| 384 | + | NumberSequenceKeypoint.new(0, 0.5, 0), |
| 385 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 386 | }) | |
| 387 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
| 387 | + | |
| 388 | local trailside12 = Instance.new("Trail", char["Left Arm"])
| |
| 389 | trailside12.Enabled = true | |
| 390 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.432266384, 0.216133267)) |
| 390 | + | trailside12.Texture = "rbxassetid://16607923" |
| 391 | trailside12.Name = "sidetrail1" | |
| 392 | trailside12.MinLength = 0 | |
| 393 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
| 393 | + | trailside12.Lifetime = 0.1 |
| 394 | ||
| 395 | trailside12.Color = ColorSequence.new(ColorArray) | |
| 396 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133237, 0.216133267)) |
| 396 | + | |
| 397 | trailside12.Attachment0 = attt1 | |
| 398 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.216133296)) |
| 398 | + | trailside12.Attachment1 = attt3 |
| 399 | trailside12.Transparency = NumberSequence.new({
| |
| 400 | - | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
| 400 | + | NumberSequenceKeypoint.new(0, 0.5, 0), |
| 401 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 402 | }) | |
| 403 | - | MagHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "MagHandle", Vector3.new(0.432266504, 0.324199826, 0.216133296)) |
| 403 | + | |
| 404 | local trailside22 = Instance.new("Trail", char["Left Arm"])
| |
| 405 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296)) |
| 405 | + | trailside22.Enabled = true |
| 406 | trailside22.Texture = "rbxassetid://16607923" | |
| 407 | trailside22.Name = "sidetrail2" | |
| 408 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296)) |
| 408 | + | trailside22.MinLength = 0 |
| 409 | trailside22.Lifetime = 0.1 | |
| 410 | ||
| 411 | - | BoltHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "BoltHandle", Vector3.new(0.216133282, 1.40486586, 0.216133267)) |
| 411 | + | trailside22.Color = ColorSequence.new(ColorArray) |
| 412 | ||
| 413 | trailside22.Attachment0 = attt2 | |
| 414 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.216133252, 0.216133267)) |
| 414 | + | trailside22.Attachment1 = attt4 |
| 415 | trailside22.Transparency = NumberSequence.new({
| |
| 416 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 417 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199915, 0.324199826, 0.200000003)) |
| 417 | + | NumberSequenceKeypoint.new(1, 1, 0) |
| 418 | }) | |
| 419 | ||
| 420 | - | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199915, 0.200000003, 0.200000003)) |
| 420 | + | local att1 = Instance.new("Attachment", char["Torso"])
|
| 421 | att1.Name = "att1" | |
| 422 | att1.Position = Vector3.new(1, 1, 0.5) | |
| 423 | - | ScopeZoom = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright violet", "ScopeZoom", Vector3.new(0.216133296, 0.200000003, 0.200000003)) |
| 423 | + | local att2 = Instance.new("Attachment", char["Torso"])
|
| 424 | att2.Name = "att2" | |
| 425 | att2.Position = Vector3.new(-1, 1, 0.5) | |
| 426 | local att3 = Instance.new("Attachment", char["Torso"])
| |
| 427 | att3.Name = "att3" | |
| 428 | - | Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color),
|
| 428 | + | att3.Position = Vector3.new(1, -1, 0.5) |
| 429 | local att4 = Instance.new("Attachment", char["Torso"])
| |
| 430 | att4.Name = "att4" | |
| 431 | - | Texture = "rbxassetid://257430870", |
| 431 | + | att4.Position = Vector3.new(-1, -1, 0.5) |
| 432 | ||
| 433 | local attt1 = Instance.new("Attachment", char["Head"])
| |
| 434 | attt1.Name = "att1" | |
| 435 | attt1.Position = Vector3.new(.55, .55, 0.025) | |
| 436 | local attt2 = Instance.new("Attachment", char["Head"])
| |
| 437 | attt2.Name = "att2" | |
| 438 | attt2.Position = Vector3.new(-.55, .55, 0.025) | |
| 439 | local attt3 = Instance.new("Attachment", char["Head"])
| |
| 440 | attt3.Name = "att3" | |
| 441 | attt3.Position = Vector3.new(.55, -.5, 0.025) | |
| 442 | local attt4 = Instance.new("Attachment", char["Head"])
| |
| 443 | attt4.Name = "att4" | |
| 444 | attt4.Position = Vector3.new(-.55, -.5, 0.025) | |
| 445 | local trailtop1 = Instance.new("Trail", char["Torso"])
| |
| 446 | trailtop1.Enabled = true | |
| 447 | trailtop1.Texture = "rbxassetid://16607923" | |
| 448 | trailtop1.Name = "toptrail" | |
| 449 | trailtop1.MinLength = 0 | |
| 450 | trailtop1.Lifetime = 0.1 | |
| 451 | ||
| 452 | trailtop1.Color = ColorSequence.new(ColorArray) | |
| 453 | ||
| 454 | trailtop1.Attachment0 = att1 | |
| 455 | trailtop1.Attachment1 = att2 | |
| 456 | trailtop1.Transparency = NumberSequence.new({
| |
| 457 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 458 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 459 | }) | |
| 460 | local trailbot1 = Instance.new("Trail", char["Torso"])
| |
| 461 | trailbot1.Enabled = true | |
| 462 | trailbot1.Texture = "rbxassetid://16607923" | |
| 463 | - | local Ammo = 10 |
| 463 | + | trailbot1.Name = "bottrail" |
| 464 | trailbot1.MinLength = 0 | |
| 465 | trailbot1.Lifetime = 0.1 | |
| 466 | ||
| 467 | trailbot1.Color = ColorSequence.new(ColorArray) | |
| 468 | ||
| 469 | trailbot1.Attachment0 = att3 | |
| 470 | trailbot1.Attachment1 = att4 | |
| 471 | trailbot1.Transparency = NumberSequence.new({
| |
| 472 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 473 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 474 | }) | |
| 475 | local trailside1 = Instance.new("Trail", char["Torso"])
| |
| 476 | trailside1.Enabled = true | |
| 477 | trailside1.Texture = "rbxassetid://16607923" | |
| 478 | trailside1.Name = "sidetrail1" | |
| 479 | trailside1.MinLength = 0 | |
| 480 | trailside1.Lifetime = 0.1 | |
| 481 | ||
| 482 | trailside1.Color = ColorSequence.new(ColorArray) | |
| 483 | - | CylinderEffect(BrickColor.new("Dark stone grey"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2)
|
| 483 | + | |
| 484 | trailside1.Attachment0 = att1 | |
| 485 | trailside1.Attachment1 = att3 | |
| 486 | trailside1.Transparency = NumberSequence.new({
| |
| 487 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 488 | - | local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("Dark stone grey"), "Reference", Vector3.new())
|
| 488 | + | NumberSequenceKeypoint.new(1, 1, 0) |
| 489 | }) | |
| 490 | local trailside2 = Instance.new("Trail", char["Torso"])
| |
| 491 | - | MagnitudeDamage(ref, 5, 999999999, 999999999, BrickColor.new("Dark stone grey"), BrickColor.new("Navy blue") , "rbxassetid://199149297")
|
| 491 | + | trailside2.Enabled = true |
| 492 | trailside2.Texture = "rbxassetid://16607923" | |
| 493 | trailside2.Name = "sidetrail2" | |
| 494 | trailside2.MinLength = 0 | |
| 495 | trailside2.Lifetime = 0.1 | |
| 496 | ||
| 497 | trailside2.Color = ColorSequence.new(ColorArray) | |
| 498 | ||
| 499 | trailside2.Attachment0 = att2 | |
| 500 | trailside2.Attachment1 = att4 | |
| 501 | trailside2.Transparency = NumberSequence.new({
| |
| 502 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 503 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 504 | }) | |
| 505 | local trailtop12 = Instance.new("Trail", char["Head"])
| |
| 506 | trailtop12.Enabled = true | |
| 507 | trailtop12.Texture = "rbxassetid://16607923" | |
| 508 | trailtop12.Name = "toptrail" | |
| 509 | trailtop12.MinLength = 0 | |
| 510 | trailtop12.Lifetime = 0.1 | |
| 511 | ||
| 512 | trailtop12.Color = ColorSequence.new(ColorArray) | |
| 513 | ||
| 514 | trailtop12.Attachment0 = attt1 | |
| 515 | trailtop12.Attachment1 = attt2 | |
| 516 | trailtop12.Transparency = NumberSequence.new({
| |
| 517 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 518 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 519 | }) | |
| 520 | local trailbot2 = Instance.new("Trail", char["Head"])
| |
| 521 | trailbot2.Enabled = true | |
| 522 | trailbot2.Texture = "rbxassetid://16607923" | |
| 523 | trailbot2.Name = "bottrail" | |
| 524 | trailbot2.MinLength = 0 | |
| 525 | trailbot2.Lifetime = 0.1 | |
| 526 | ||
| 527 | trailbot2.Color = ColorSequence.new(ColorArray) | |
| 528 | ||
| 529 | trailbot2.Attachment0 = attt3 | |
| 530 | trailbot2.Attachment1 = attt4 | |
| 531 | trailbot2.Transparency = NumberSequence.new({
| |
| 532 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 533 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 534 | }) | |
| 535 | local trailside12 = Instance.new("Trail", char["Head"])
| |
| 536 | trailside12.Enabled = true | |
| 537 | trailside12.Texture = "rbxassetid://16607923" | |
| 538 | trailside12.Name = "sidetrail1" | |
| 539 | trailside12.MinLength = 0 | |
| 540 | trailside12.Lifetime = 0.1 | |
| 541 | ||
| 542 | trailside12.Color = ColorSequence.new(ColorArray) | |
| 543 | ||
| 544 | trailside12.Attachment0 = attt1 | |
| 545 | trailside12.Attachment1 = attt3 | |
| 546 | trailside12.Transparency = NumberSequence.new({
| |
| 547 | NumberSequenceKeypoint.new(0, 0.5, 0), | |
| 548 | NumberSequenceKeypoint.new(1, 1, 0) | |
| 549 | }) | |
| 550 | local trailside22 = Instance.new("Trail", char["Head"])
| |
| 551 | trailside22.Enabled = true | |
| 552 | trailside22.Texture = "rbxassetid://16607923" | |
| 553 | trailside22.Name = "sidetrail2" | |
| 554 | trailside22.MinLength = 0 | |
| 555 | trailside22.Lifetime = 0.1 | |
| 556 | ||
| 557 | trailside22.Color = ColorSequence.new(ColorArray) | |
| 558 | ||
| 559 | trailside22.Attachment0 = attt2 trailside22.Attachment1 = attt4 | |
| 560 | trailside22.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.5, 0),NumberSequenceKeypoint.new(1, 1, 0)})
| |
| 561 | Char = Ply.Character | |
| 562 | Tor = Char.Torso | |
| 563 | He = Char.Head | |
| 564 | Ne = Tor.Neck | |
| 565 | Hu = Char.Humanoid | |
| 566 | LA = Char["Left Arm"] | |
| 567 | LL = Char["Left Leg"] | |
| 568 | RA = Char["Right Arm"] | |
| 569 | RL = Char["Right Leg"] | |
| 570 | LS = Tor["Left Shoulder"] | |
| 571 | RS = Tor["Right Shoulder"] | |
| 572 | LH = Tor["Left Hip"] | |
| 573 | RH = Tor["Right Hip"] | |
| 574 | Combo = 1 | |
| 575 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 576 | RP = Char.HumanoidRootPart | |
| 577 | RJ = RP.RootJoint | |
| 578 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
| 579 | LHCF = CFrame.Angles(0, math.rad(-90), 0) | |
| 580 | RHCF = CFrame.Angles(0, math.rad(90), 0) | |
| 581 | attack = false | |
| 582 | equipped = false | |
| 583 | local Anim = "Idle" | |
| 584 | Effects = { }
| |
| 585 | cam = workspace.CurrentCamera | |
| 586 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 587 | local Create = RbxUtility.Create | |
| 588 | local m = Create("Model"){
| |
| 589 | Parent = Char, | |
| 590 | Name = "WeaponModel", | |
| 591 | } | |
| 592 | ||
| 593 | RS.Parent = nil | |
| 594 | LS.Parent = nil | |
| 595 | ||
| 596 | RW = Create("Weld"){
| |
| 597 | Name = "Right Shoulder", | |
| 598 | Part0 = Tor , | |
| 599 | C0 = CFrame.new(1.5, 0.5, 0), | |
| 600 | C1 = CFrame.new(0, 0.5, 0), | |
| 601 | Part1 = RA , | |
| 602 | Parent = Tor , | |
| 603 | } | |
| 604 | ||
| 605 | LW = Create("Weld"){
| |
| 606 | Name = "Left Shoulder", | |
| 607 | Part0 = Tor , | |
| 608 | C0 = CFrame.new(-1.5, 0.5, 0), | |
| 609 | C1 = CFrame.new(0, 0.5, 0) , | |
| 610 | Part1 = LA , | |
| 611 | Parent = Tor , | |
| 612 | } | |
| 613 | ||
| 614 | ||
| 615 | function RemoveOutlines(part) | |
| 616 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 617 | end | |
| 618 | ||
| 619 | function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz) | |
| 620 | local Part = Create("Part"){
| |
| 621 | formFactor = FF, | |
| 622 | Parent = Par, | |
| 623 | Reflectance = Ref, | |
| 624 | Transparency = Tra, | |
| 625 | CanCollide = false, | |
| 626 | Locked = true, | |
| 627 | BrickColor = BrickColor.new(tostring(BC)), | |
| 628 | Name = Nam, | |
| 629 | Size = Siz, | |
| 630 | Position = Tor.Position, | |
| 631 | Material = Mat, | |
| 632 | } | |
| 633 | RemoveOutlines(Part) | |
| 634 | return Part | |
| 635 | end | |
| 636 | ||
| 637 | function CreateMesh(Ms, Par, MType, MId, OS, Sca) | |
| 638 | local Msh = Create(Ms){
| |
| 639 | Parent = Par, | |
| 640 | Offset = OS, | |
| 641 | Scale = Sca, | |
| 642 | } | |
| 643 | if Ms == "SpecialMesh" then | |
| 644 | Msh.MeshType = MType | |
| 645 | Msh.MeshId = MId | |
| 646 | end | |
| 647 | end | |
| 648 | ||
| 649 | function CreateWeld(Par, PartA, PartB, CA, CB) | |
| 650 | local Weld = Create("Weld"){
| |
| 651 | Parent = Par, | |
| 652 | Part0 = PartA, | |
| 653 | Part1 = PartB, | |
| 654 | C0 = CA, | |
| 655 | C1 = CB, | |
| 656 | } | |
| 657 | return Weld | |
| 658 | end | |
| 659 | ||
| 660 | function CreateSound(id, par, vol, pit) | |
| 661 | coroutine.resume(coroutine.create(function() | |
| 662 | local sou = Create("Sound"){
| |
| 663 | Parent = par or workspace, | |
| 664 | Volume = vol, | |
| 665 | Pitch = pit or 1, | |
| 666 | SoundId = id, | |
| 667 | } | |
| 668 | wait() | |
| 669 | sou:play() | |
| 670 | end)) | |
| 671 | end | |
| 672 | ||
| 673 | function clerp(a, b, t) | |
| 674 | return a:lerp(b, t) | |
| 675 | end | |
| 676 | ||
| 677 | function rayCast(Pos, Dir, Max, Ignore) | |
| 678 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 679 | end | |
| 680 | ||
| 681 | ||
| 682 | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) | |
| 683 | for i, v in pairs(hit:GetChildren()) do | |
| 684 | if v:IsA("Humanoid") and hit.Name ~= Char.Name then
| |
| 685 | local find = v:FindFirstChild("Hitz")
| |
| 686 | if not find then | |
| 687 | if v.Parent:findFirstChild("Head") then
| |
| 688 | local BillG = Create("BillboardGui"){
| |
| 689 | Parent = v.Parent.Head, | |
| 690 | Size = UDim2.new(1, 0, 1, 0), | |
| 691 | Adornee = v.Parent.Head, | |
| 692 | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), | |
| 693 | } | |
| 694 | local TL = Create("TextLabel"){
| |
| 695 | Parent = BillG, | |
| 696 | Size = UDim2.new(3, 3, 3, 3), | |
| 697 | BackgroundTransparency = 1, | |
| 698 | Text = tostring(damage).."-", | |
| 699 | TextColor3 = Color1.Color, | |
| 700 | TextStrokeColor3 = Color2.Color, | |
| 701 | TextStrokeTransparency = 0, | |
| 702 | TextXAlignment = Enum.TextXAlignment.Center, | |
| 703 | TextYAlignment = Enum.TextYAlignment.Center, | |
| 704 | FontSize = Enum.FontSize.Size18, | |
| 705 | Font = "ArialBold", | |
| 706 | } | |
| 707 | coroutine.resume(coroutine.create(function() | |
| 708 | wait(1) | |
| 709 | for i = 0, 1, .1 do | |
| 710 | wait(.1) | |
| 711 | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) | |
| 712 | end | |
| 713 | BillG:Destroy() | |
| 714 | end)) | |
| 715 | end | |
| 716 | v.Health = v.Health - damage | |
| 717 | local bool = Create("BoolValue"){
| |
| 718 | Parent = v, | |
| 719 | Name = 'Hitz', | |
| 720 | } | |
| 721 | if HSound ~= nil and HPitch ~= nil then | |
| 722 | CreateSound(HSound, hit, 1, HPitch) | |
| 723 | end | |
| 724 | game:GetService("Debris"):AddItem(bool, cooldown)
| |
| 725 | end | |
| 726 | end | |
| 727 | end | |
| 728 | end | |
| 729 | ||
| 730 | function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HitSound) | |
| 731 | for _, c in pairs(workspace:children()) do | |
| 732 | local hum = c:findFirstChild("Humanoid")
| |
| 733 | if hum ~= nil then | |
| 734 | local head = c:findFirstChild("Torso")
| |
| 735 | if head ~= nil then | |
| 736 | local targ = head.Position - Part.Position | |
| 737 | local mag = targ.magnitude | |
| 738 | if mag <= magni and c.Name ~= Ply.Name then | |
| 739 | Damage(head.Parent, math.random(mindam, maxdam), 0, Color1, Color2, HitSound, 1) | |
| 740 | end | |
| 741 | end | |
| 742 | end | |
| 743 | end | |
| 744 | end | |
| 745 | ||
| 746 | Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Lilac", "Handle", Vector3.new(0.216133296, 0.432266444, 0.200000003)) | |
| 747 | Handleweld = CreateWeld(m, RA, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015)) | |
| 748 | CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
| |
| 749 | FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Lilac", "FakeHandle", Vector3.new(0.216133296, 0.432266444, 0.200000003)) | |
| 750 | FakeHandleweld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) | |
| 751 | Barrel = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Barrel", Vector3.new(0.324199915, 0.200000003, 0.216133296)) | |
| 752 | Barrelweld = CreateWeld(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.45991993, 0.648399353, 1.88395493e-016, 1.00281931e-024, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016)) | |
| 753 | CreateMesh("CylinderMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.567349613, 1))
| |
| 754 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199826, 0.324199826, 0.432266533)) | |
| 755 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.378201485, -0.162090302, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 756 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003)) | |
| 757 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.03202057, 0.162498474, 0.864542007, 5.96045453e-008, 0.999996662, 2.34803412e-008, 4.76836078e-007, 6.32193187e-009, 0.999997854, 0.999997139, -2.98022425e-008, -4.3312528e-007)) | |
| 758 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 759 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003)) | |
| 760 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 761 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 762 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.756466568, 0.200000003, 0.432266533)) | |
| 763 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.8910985, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 764 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 765 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296)) | |
| 766 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.45885229, -0.832115173, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 767 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
| |
| 768 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003)) | |
| 769 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.81047821, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 770 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 771 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003)) | |
| 772 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 773 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
| |
| 774 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 775 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) | |
| 776 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.358781129, 0.748901784))
| |
| 777 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296)) | |
| 778 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741232, -0.702438354, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 779 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 780 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.5, "Lilac", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296)) | |
| 781 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000377655029, -1.56698084, -1.0320282, -4.17232428e-007, 6.32132613e-009, -0.999997616, -0.999997139, 2.98022425e-008, 2.99015426e-007, -8.70414851e-014, 0.999996722, -2.34809274e-008)) | |
| 782 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 783 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.432266563, 2.48553157, 0.216133296)) | |
| 784 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 3.51209116, 0.648399353, 1.78814986e-007, -6.32150376e-009, -1, 0.999999642, -5.96046341e-008, 2.22526424e-007, -5.96046341e-008, -0.999999642, 6.32149666e-009)) | |
| 785 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 786 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296)) | |
| 787 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741327, -0.486289978, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 788 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 789 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.756466269, 0.432266533)) | |
| 790 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.45884228, 0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1)) | |
| 791 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
| |
| 792 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) | |
| 793 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661896, -0.162124634, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) | |
| 794 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504))
| |
| 795 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(2.485533, 0.216133222, 0.432266533)) | |
| 796 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02665424, -0.324203491, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 797 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(2.16133285, 0.200000003, 0.432266533)) | |
| 798 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.18871307, -0.486282349, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 799 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 800 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003)) | |
| 801 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 1.19412231, 0.869961739, 4.17229757e-007, 6.32150021e-009, 0.999997854, 8.70414851e-014, -0.999996722, -2.34808173e-008, 0.999997079, 1.49012358e-008, -3.73518958e-007)) | |
| 802 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 803 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) | |
| 804 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661514, -0.378243446, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) | |
| 805 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469))
| |
| 806 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) | |
| 807 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661896, 1.56696892, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008)) | |
| 808 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504))
| |
| 809 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
| 810 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) | |
| 811 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.369587809, 0.748901784))
| |
| 812 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.29679966, 0.200000003, 0.432266533)) | |
| 813 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.864494324, -0.378234863, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1)) | |
| 814 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 815 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296)) | |
| 816 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270159721, -0.832111359, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 817 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1))
| |
| 818 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.08066642, 0.200000003, 0.432266533)) | |
| 819 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72902441, -0.594367981, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 820 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 821 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) | |
| 822 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661514, 1.35084629, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008)) | |
| 823 | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469))
| |
| 824 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.432266563, 0.648399651, 0.216133296)) | |
| 825 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.864570618, -1.03203201, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008)) | |
| 826 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 827 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003)) | |
| 828 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, -0.161708832, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 829 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
| |
| 830 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003)) | |
| 831 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 832 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 833 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003)) | |
| 834 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 835 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 836 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.864533126, 0.540332973, 0.432266533)) | |
| 837 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.972568512, -0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1)) | |
| 838 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003)) | |
| 839 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810501099, -0.810474396, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 840 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 841 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0.5, "Lilac", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296)) | |
| 842 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.162106514, -1.0320282, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008)) | |
| 843 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 844 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216134712, 0.216134697, 0.216134712)) | |
| 845 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 0.864553452, -1.03203201, 3.57626561e-007, 6.59261232e-008, 1, 0.999999642, 0, -3.1391528e-007, 0, 0.999999642, -6.59261374e-008)) | |
| 846 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(1.40486634, 0.200000003, 0.432266533)) | |
| 847 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 848 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1))
| |
| 849 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003)) | |
| 850 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 851 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 852 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199915, 0.756466269, 0.432266533)) | |
| 853 | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.1330142, 0.648399353, 0, 0, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016)) | |
| 854 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 855 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.864533186)) | |
| 856 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.324199677, -0.972576141, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008)) | |
| 857 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.432266444, 0.216133267)) | |
| 858 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) | |
| 859 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
| |
| 860 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133192, 0.216133267)) | |
| 861 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.108055115, -0.432257652, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008)) | |
| 862 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) | |
| 863 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) | |
| 864 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
| |
| 865 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) | |
| 866 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.161708832, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008)) | |
| 867 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
| |
| 868 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.432266384, 0.216133267)) | |
| 869 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) | |
| 870 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
| |
| 871 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) | |
| 872 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.162475586, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008)) | |
| 873 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
| |
| 874 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133237, 0.216133267)) | |
| 875 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.324203491, 2.37740946, 1.06338617e-018, 5.01342412e-010, 0.999999404, 1.49011701e-008, -0.999999285, 5.01343078e-010, 0.999999285, 1.49011701e-008, 4.37113634e-008)) | |
| 876 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.216133296)) | |
| 877 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.108070374, -0.108057022, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008)) | |
| 878 | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) | |
| 879 | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) | |
| 880 | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1))
| |
| 881 | MagHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "MagHandle", Vector3.new(0.432266504, 0.324199826, 0.216133296)) | |
| 882 | MagHandleweld = CreateWeld(m, FakeHandle, MagHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648423195, -0.0540428162, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) | |
| 883 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296)) | |
| 884 | Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.270163536, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1)) | |
| 885 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
| |
| 886 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296)) | |
| 887 | Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270174026, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1)) | |
| 888 | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1))
| |
| 889 | BoltHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "BoltHandle", Vector3.new(0.216133282, 1.40486586, 0.216133267)) | |
| 890 | BoltHandleweld = CreateWeld(m, FakeHandle, BoltHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.540328979, -0.486276627, -0.000385284424, -4.47034729e-008, -0.999999583, -2.42770696e-015, -0.999999642, 0, -4.37113812e-008, 0, 0, -0.99999994)) | |
| 891 | CreateMesh("CylinderMesh", BoltHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 892 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.216133282, 0.216133252, 0.216133267)) | |
| 893 | Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.70238018, 0, 0.999999523, 4.47034729e-008, 0, 4.47034729e-008, 0.999999642, 0, 0, 0, 0.999999881)) | |
| 894 | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1))
| |
| 895 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199915, 0.324199826, 0.200000003)) | |
| 896 | Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.015832901, 0.146270752, 0.648381233, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009)) | |
| 897 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092))
| |
| 898 | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 0, "Lilac", "Part", Vector3.new(0.324199915, 0.200000003, 0.200000003)) | |
| 899 | Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0158443451, 0.362377167, 0.648385048, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009)) | |
| 900 | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092))
| |
| 901 | ScopeZoom = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.Neon, 0, 1, "Bright violet", "ScopeZoom", Vector3.new(0.216133296, 0.200000003, 0.200000003)) | |
| 902 | ScopeZoomweld = CreateWeld(m, FakeHandle, ScopeZoom, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72752714, -1.03763962, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) | |
| 903 | ||
| 904 | local PE1 = Create("ParticleEmitter"){
| |
| 905 | Parent = Barrel, | |
| 906 | Transparency = NumberSequence.new(0), | |
| 907 | Size = NumberSequence.new(.5), | |
| 908 | Texture = "rbxassetid://1416396236", | |
| 909 | Lifetime = NumberRange.new(.1), | |
| 910 | Rate = 100, | |
| 911 | VelocitySpread = 180, | |
| 912 | Rotation = NumberRange.new(0), | |
| 913 | Speed = NumberRange.new(0), | |
| 914 | LightEmission = .6, | |
| 915 | LockedToPart = true, | |
| 916 | Enabled = false | |
| 917 | } | |
| 918 | ||
| 919 | local PE2 = PE1:Clone() | |
| 920 | PE2.Size = NumberSequence.new(.7) | |
| 921 | PE2.LightEmission = 1 | |
| 922 | PE2.Texture = "rbxassetid://87729590" | |
| 923 | ||
| 924 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 925 | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
| 926 | prt.Anchored = true | |
| 927 | prt.CFrame = cframe | |
| 928 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 929 | game:GetService("Debris"):AddItem(prt, 2)
| |
| 930 | Effects[#Effects + 1] = {
| |
| 931 | prt, | |
| 932 | "Cylinder", | |
| 933 | delay, | |
| 934 | x3, | |
| 935 | y3, | |
| 936 | z3 | |
| 937 | } | |
| 938 | end | |
| 939 | ||
| 940 | local Ammo = 11 | |
| 941 | local Depleted = false | |
| 942 | ||
| 943 | function Shoot(asd, spread1, spread2) | |
| 944 | local MainPos = asd.Position | |
| 945 | local MainPos2 = mouse.Hit.p | |
| 946 | local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100 | |
| 947 | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread) | |
| 948 | num = 30 | |
| 949 | Ammo = Ammo - 1 | |
| 950 | print(Ammo) | |
| 951 | if Ammo == 0 then | |
| 952 | Depleted = true | |
| 953 | end | |
| 954 | coroutine.resume(coroutine.create(function(Spreaded) | |
| 955 | repeat | |
| 956 | wait() | |
| 957 | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 50, RP.Parent) | |
| 958 | local TheHit = mouse.Hit.p | |
| 959 | local mag = (MainPos - pos).magnitude | |
| 960 | CylinderEffect(BrickColor.new("Really red"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2)
| |
| 961 | MainPos = MainPos + (MouseLook.lookVector * 50) | |
| 962 | num = num - 1 | |
| 963 | if hit ~= nil then | |
| 964 | num = 0 | |
| 965 | local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("Pink"), "Reference", Vector3.new())
| |
| 966 | ref.Anchored = true | |
| 967 | ref.CFrame = CFrame.new(pos) | |
| 968 | MagnitudeDamage(ref, 5, 999999999, 999999999, BrickColor.new("Pink"), BrickColor.new("Pink") , "rbxassetid://199149297")
| |
| 969 | game:GetService("Debris"):AddItem(ref, 1)
| |
| 970 | end | |
| 971 | until num <= 0 | |
| 972 | end)) | |
| 973 | end | |
| 974 | local Aiming = false | |
| 975 | gyro = Instance.new("BodyGyro")
| |
| 976 | gyro.Parent = nil | |
| 977 | gyro.P = 1e7 | |
| 978 | gyro.D = 1e3 | |
| 979 | gyro.MaxTorque = Vector3.new(0,1e7,0) | |
| 980 | ||
| 981 | renai = Instance.new("Sound",game.Workspace.mememasterYT65910)
| |
| 982 | renai.Looped = true | |
| 983 | renai.Volume = 0.5 | |
| 984 | renai.SoundId = "rbxassetid://145106641" | |
| 985 | renai.Playing = true | |
| 986 | ||
| 987 | local Crouching = false | |
| 988 | ||
| 989 | function Fire() | |
| 990 | if Aiming == true then | |
| 991 | attack = true | |
| 992 | CreateSound("rbxassetid://2487714799",Barrel)
| |
| 993 | wait(0.5) | |
| 994 | CreateSound("rbxassetid://132572951", Barrel, 1, .9)
| |
| 995 | CreateSound("rbxassetid://130767489", Barrel, .7, 1.2)
| |
| 996 | CreateSound("rbxassetid://281454991", Barrel)
| |
| 997 | wait(0.5) | |
| 998 | CreateSound("rbxassetid://749031341", Barrel)
| |
| 999 | PE1.Enabled = true | |
| 1000 | PE2.Enabled = true | |
| 1001 | Shoot(Barrel, 0, 0) | |
| 1002 | for i = 0, 1, 0.2 do | |
| 1003 | wait() | |
| 1004 | if Crouching == false and Aiming == true then | |
| 1005 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1006 | elseif Crouching == true and Aiming == true then | |
| 1007 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1008 | end | |
| 1009 | ||
| 1010 | ||
| 1011 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(90)), .3) | |
| 1012 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(-20), math.rad(-90)), .5) | |
| 1013 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(140)), .5) | |
| 1014 | if Crouching == false and Aiming == true then | |
| 1015 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1016 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1017 | elseif Crouching == true and Aiming == true then | |
| 1018 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1019 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1020 | end | |
| 1021 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1022 | end | |
| 1023 | PE1.Enabled = false | |
| 1024 | PE2.Enabled = false | |
| 1025 | for i = 0, 1, 0.1 do | |
| 1026 | wait() | |
| 1027 | if Crouching == false and Aiming == true then | |
| 1028 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1029 | elseif Crouching == true and Aiming == true then | |
| 1030 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1031 | end | |
| 1032 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .3) | |
| 1033 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .3) | |
| 1034 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .3) | |
| 1035 | if Crouching == false and Aiming == true then | |
| 1036 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1037 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1038 | elseif Crouching == true and Aiming == true then | |
| 1039 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1040 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1041 | end | |
| 1042 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1043 | end | |
| 1044 | Handleweld.Part0 = LA | |
| 1045 | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1046 | Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875) | |
| 1047 | for i = 0, 1, 0.1 do | |
| 1048 | wait() | |
| 1049 | if Crouching == false and Aiming == true then | |
| 1050 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1051 | elseif Crouching == true and Aiming == true then | |
| 1052 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1053 | end | |
| 1054 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
| 1055 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3) | |
| 1056 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
| 1057 | if Crouching == false and Aiming == true then | |
| 1058 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1059 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1060 | elseif Crouching == true and Aiming == true then | |
| 1061 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1062 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1063 | end | |
| 1064 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1065 | end | |
| 1066 | CreateSound("rbxassetid://146740582", BoltHandle, .7, 1)
| |
| 1067 | for i = 0, 1, 0.1 do | |
| 1068 | wait() | |
| 1069 | if Crouching == false and Aiming == true then | |
| 1070 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1071 | elseif Crouching == true and Aiming == true then | |
| 1072 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1073 | end | |
| 1074 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
| 1075 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) | |
| 1076 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
| 1077 | if Crouching == false and Aiming == true then | |
| 1078 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1079 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1080 | elseif Crouching == true and Aiming == true then | |
| 1081 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1082 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1083 | end | |
| 1084 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1085 | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1086 | end | |
| 1087 | for i = 0, 1, 0.1 do | |
| 1088 | wait() | |
| 1089 | if Crouching == false and Aiming == true then | |
| 1090 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1091 | elseif Crouching == true and Aiming == true then | |
| 1092 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1093 | end | |
| 1094 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
| 1095 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) | |
| 1096 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
| 1097 | if Crouching == false and Aiming == true then | |
| 1098 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1099 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1100 | elseif Crouching == true and Aiming == true then | |
| 1101 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1102 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1103 | end | |
| 1104 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1105 | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1106 | end | |
| 1107 | for i = 0, 1, 0.3 do | |
| 1108 | wait() | |
| 1109 | if Crouching == false and Aiming == true then | |
| 1110 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1111 | elseif Crouching == true and Aiming == true then | |
| 1112 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1113 | end | |
| 1114 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) | |
| 1115 | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) | |
| 1116 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) | |
| 1117 | if Crouching == false and Aiming == true then | |
| 1118 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1119 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1120 | elseif Crouching == true and Aiming == true then | |
| 1121 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1122 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1123 | end | |
| 1124 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1125 | end | |
| 1126 | Handleweld.Part0 = RA | |
| 1127 | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1128 | Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015) | |
| 1129 | attack = false | |
| 1130 | end | |
| 1131 | end | |
| 1132 | ||
| 1133 | local Zoomed = false | |
| 1134 | ||
| 1135 | function Reload() | |
| 1136 | attack = true | |
| 1137 | for i = 0, 1, 0.1 do | |
| 1138 | wait() | |
| 1139 | if Crouching == false and Aiming == true then | |
| 1140 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1141 | elseif Crouching == true and Aiming == true then | |
| 1142 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1143 | end | |
| 1144 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
| 1145 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3) | |
| 1146 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(120)), .3) | |
| 1147 | if Crouching == false and Aiming == true then | |
| 1148 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1149 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1150 | elseif Crouching == true and Aiming == true then | |
| 1151 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1152 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1153 | end | |
| 1154 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1155 | end | |
| 1156 | CreateSound("rbxassetid://131045401", FakeHandle, 1, 1)
| |
| 1157 | MagHandleweld.Part0 = LA | |
| 1158 | MagHandleweld.C0 = CFrame.new(.5, -1, .6) * CFrame.Angles(1.5, 0, 1.5) | |
| 1159 | for i = 0, 1, 0.08 do | |
| 1160 | wait() | |
| 1161 | if Crouching == false and Aiming == true then | |
| 1162 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1163 | elseif Crouching == true and Aiming == true then | |
| 1164 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1165 | end | |
| 1166 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(5), math.rad(50)), .3) | |
| 1167 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3) | |
| 1168 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(20)), .3) | |
| 1169 | if Crouching == false and Aiming == true then | |
| 1170 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1171 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1172 | elseif Crouching == true and Aiming == true then | |
| 1173 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1174 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1175 | end | |
| 1176 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1177 | end | |
| 1178 | CreateSound("rbxassetid://131045429", FakeHandle, 1, 1)
| |
| 1179 | for i = 0, 1, 0.08 do | |
| 1180 | wait() | |
| 1181 | if Crouching == false and Aiming == true then | |
| 1182 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1183 | elseif Crouching == true and Aiming == true then | |
| 1184 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1185 | end | |
| 1186 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
| 1187 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-50)), .5) | |
| 1188 | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(100)), .5) | |
| 1189 | if Crouching == false and Aiming == true then | |
| 1190 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1191 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1192 | elseif Crouching == true and Aiming == true then | |
| 1193 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1194 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1195 | end | |
| 1196 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1197 | end | |
| 1198 | MagHandleweld.Part0 = FakeHandle | |
| 1199 | MagHandleweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
| 1200 | Ammo = 10 | |
| 1201 | print(Ammo) | |
| 1202 | if Depleted == true then | |
| 1203 | Depleted = false | |
| 1204 | Handleweld.Part0 = LA | |
| 1205 | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1206 | Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875) | |
| 1207 | for i = 0, 1, 0.1 do | |
| 1208 | wait() | |
| 1209 | if Crouching == false and Aiming == true then | |
| 1210 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1211 | elseif Crouching == true and Aiming == true then | |
| 1212 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1213 | end | |
| 1214 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
| 1215 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3) | |
| 1216 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
| 1217 | if Crouching == false and Aiming == true then | |
| 1218 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1219 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1220 | elseif Crouching == true and Aiming == true then | |
| 1221 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1222 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1223 | end | |
| 1224 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1225 | end | |
| 1226 | CreateSound("rbxassetid://146740582", BoltHandle, .7, 1)
| |
| 1227 | for i = 0, 1, 0.1 do | |
| 1228 | wait() | |
| 1229 | if Crouching == false and Aiming == true then | |
| 1230 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1231 | elseif Crouching == true and Aiming == true then | |
| 1232 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1233 | end | |
| 1234 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
| 1235 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) | |
| 1236 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
| 1237 | if Crouching == false and Aiming == true then | |
| 1238 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1239 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1240 | elseif Crouching == true and Aiming == true then | |
| 1241 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1242 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1243 | end | |
| 1244 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1245 | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1246 | end | |
| 1247 | for i = 0, 1, 0.3 do | |
| 1248 | wait() | |
| 1249 | if Crouching == false and Aiming == true then | |
| 1250 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1251 | elseif Crouching == true and Aiming == true then | |
| 1252 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1253 | end | |
| 1254 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) | |
| 1255 | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) | |
| 1256 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) | |
| 1257 | if Crouching == false and Aiming == true then | |
| 1258 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1259 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1260 | elseif Crouching == true and Aiming == true then | |
| 1261 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1262 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1263 | end | |
| 1264 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1265 | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1266 | end | |
| 1267 | end | |
| 1268 | Handleweld.Part0 = RA | |
| 1269 | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 1270 | Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015) | |
| 1271 | attack = false | |
| 1272 | end | |
| 1273 | ||
| 1274 | mouse.Button1Down:connect(function() | |
| 1275 | if attack == false and Depleted == false then | |
| 1276 | Fire() | |
| 1277 | end | |
| 1278 | end) | |
| 1279 | ||
| 1280 | mouse.KeyDown:connect(function(k) | |
| 1281 | k = k:lower() | |
| 1282 | if k == "r" and attack == false then | |
| 1283 | Reload() | |
| 1284 | elseif k == "f" and Aiming == false then | |
| 1285 | Aiming = true | |
| 1286 | elseif k == "f" and Aiming == true then | |
| 1287 | Aiming = false | |
| 1288 | elseif k == "c" and Aiming == true and Crouching == false then | |
| 1289 | Crouching = true | |
| 1290 | elseif k == "c" and Aiming == true and Crouching == true then | |
| 1291 | Crouching = false | |
| 1292 | elseif k == "z" and Aiming == true and Zoomed == false then | |
| 1293 | Zoomed = true | |
| 1294 | CreateSound("rbxassetid://180144779", FakeHandle, 1, 1)
| |
| 1295 | for i = 0, 1, 0.2 do | |
| 1296 | wait() | |
| 1297 | cam.FieldOfView = cam.FieldOfView - 5 | |
| 1298 | end | |
| 1299 | Ply.CameraMode = "LockFirstPerson" | |
| 1300 | --Ply.DevEnableMouseLock = false | |
| 1301 | cam.FieldOfView = 10 | |
| 1302 | cam.CameraSubject = ScopeZoom | |
| 1303 | mouse.Icon = "rbxassetid://18006519" | |
| 1304 | elseif k == "z" and Aiming == true and Zoomed == true then | |
| 1305 | Zoomed = false | |
| 1306 | CreateSound("rbxassetid://190623951", FakeHandle, 1, 1)
| |
| 1307 | for i = 0, 1, 0.2 do | |
| 1308 | wait() | |
| 1309 | cam.FieldOfView = cam.FieldOfView + 5 | |
| 1310 | end | |
| 1311 | Ply.CameraMode = "Classic" | |
| 1312 | --Ply.DevEnableMouseLock = true | |
| 1313 | cam.FieldOfView = 80 | |
| 1314 | cam.CameraSubject = Hu | |
| 1315 | mouse.Icon = "" | |
| 1316 | end | |
| 1317 | end) | |
| 1318 | ||
| 1319 | ||
| 1320 | local sine = 0 | |
| 1321 | local change = 1 | |
| 1322 | local val = 0 | |
| 1323 | ||
| 1324 | while true do | |
| 1325 | wait() | |
| 1326 | sine = sine + change | |
| 1327 | local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude | |
| 1328 | local velderp = RP.Velocity.y | |
| 1329 | hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char) | |
| 1330 | if equipped == true or equipped == false then | |
| 1331 | if Aiming == true then | |
| 1332 | if Crouching == false and Aiming == true then | |
| 1333 | Hu.WalkSpeed = 10 | |
| 1334 | elseif Crouching == true and Aiming == true then | |
| 1335 | Hu.WalkSpeed = 5 | |
| 1336 | end | |
| 1337 | gyro.Parent = RP | |
| 1338 | local gunpos = Vector3.new(mouse.Hit.p.x, He.Position.Y, mouse.Hit.p.z) | |
| 1339 | offset = (Tor.Position.y - mouse.Hit.p.y) / 60 | |
| 1340 | local mag = (Tor.Position - mouse.Hit.p).magnitude / 80 | |
| 1341 | offset = offset / mag | |
| 1342 | gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RP.CFrame.p).unit * 100) | |
| 1343 | elseif Aiming == false then | |
| 1344 | Hu.JumpPower = 50 | |
| 1345 | Hu.WalkSpeed = 16 | |
| 1346 | gyro.Parent = nil | |
| 1347 | end | |
| 1348 | if RP.Velocity.y > 1 and hitfloor == nil then | |
| 1349 | Anim = "Jump" | |
| 1350 | if attack == false and Aiming == false then | |
| 1351 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1352 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3) | |
| 1353 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(-40)), .3) | |
| 1354 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(60)), .3) | |
| 1355 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3) | |
| 1356 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3) | |
| 1357 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3) | |
| 1358 | elseif attack == false and Aiming == true then | |
| 1359 | if Crouching == false and Aiming == true then | |
| 1360 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1361 | elseif Crouching == true and Aiming == true then | |
| 1362 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1363 | end | |
| 1364 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) | |
| 1365 | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) | |
| 1366 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) | |
| 1367 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1368 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1369 | if Crouching == false and Aiming == true then | |
| 1370 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1371 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1372 | elseif Crouching == true and Aiming == true then | |
| 1373 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1374 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1375 | end | |
| 1376 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1377 | end | |
| 1378 | elseif RP.Velocity.y < -1 and hitfloor == nil then | |
| 1379 | Anim = "Fall" | |
| 1380 | if attack == false and Aiming == false then | |
| 1381 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) | |
| 1382 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3) | |
| 1383 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-40)), .3) | |
| 1384 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(100)), .3) | |
| 1385 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3) | |
| 1386 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3) | |
| 1387 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3) | |
| 1388 | elseif attack == false and Aiming == true then | |
| 1389 | if Crouching == false and Aiming == true then | |
| 1390 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1391 | elseif Crouching == true and Aiming == true then | |
| 1392 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1393 | end | |
| 1394 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) | |
| 1395 | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) | |
| 1396 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) | |
| 1397 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1398 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1399 | if Crouching == false and Aiming == true then | |
| 1400 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1401 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1402 | elseif Crouching == true and Aiming == true then | |
| 1403 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1404 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1405 | end | |
| 1406 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1407 | end | |
| 1408 | elseif torvel < 1 and hitfloor ~= nil then | |
| 1409 | Anim = "Idle" | |
| 1410 | if attack == false and Aiming == false then | |
| 1411 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3) | |
| 1412 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-50)), .3) | |
| 1413 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-40)), .3) | |
| 1414 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(70)), .3) | |
| 1415 | RH.C0 = clerp(RH.C0, CFrame.new(.9, -.5, .2) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(0)), .3) | |
| 1416 | LH.C0 = clerp(LH.C0, CFrame.new(-.5, -1, -1) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(50)), .3) | |
| 1417 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), .3) | |
| 1418 | elseif attack == false and Aiming == true then | |
| 1419 | if Crouching == false and Aiming == true then | |
| 1420 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1421 | elseif Crouching == true and Aiming == true then | |
| 1422 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1423 | end | |
| 1424 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) | |
| 1425 | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) | |
| 1426 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) | |
| 1427 | if Crouching == false and Aiming == true then | |
| 1428 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1429 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1430 | elseif Crouching == true and Aiming == true then | |
| 1431 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1432 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1433 | end | |
| 1434 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1435 | end | |
| 1436 | elseif torvel > 2 and hitfloor ~= nil then | |
| 1437 | Anim = "Walk" | |
| 1438 | if attack == false and Aiming == false then | |
| 1439 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .3) | |
| 1440 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3) | |
| 1441 | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-40)), .3) | |
| 1442 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(50)), .3) | |
| 1443 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
| 1444 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) | |
| 1445 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3) | |
| 1446 | elseif attack == false and Aiming == true then | |
| 1447 | if Crouching == false and Aiming == true then | |
| 1448 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1449 | elseif Crouching == true and Aiming == true then | |
| 1450 | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) | |
| 1451 | end | |
| 1452 | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) | |
| 1453 | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) | |
| 1454 | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) | |
| 1455 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1456 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1457 | if Crouching == false and Aiming == true then | |
| 1458 | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1459 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1460 | elseif Crouching == true and Aiming == true then | |
| 1461 | RH.C0 = clerp(RH.C0, CFrame.new(1, -.1, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) | |
| 1462 | LH.C0 = clerp(LH.C0, CFrame.new(-1, -.1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) | |
| 1463 | end | |
| 1464 | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) | |
| 1465 | end | |
| 1466 | end | |
| 1467 | ||
| 1468 | end | |
| 1469 | if #Effects > 0 then | |
| 1470 | for e = 1, #Effects do | |
| 1471 | if Effects[e] ~= nil then | |
| 1472 | local Thing = Effects[e] | |
| 1473 | if Thing ~= nil then | |
| 1474 | local Part = Thing[1] | |
| 1475 | local Mode = Thing[2] | |
| 1476 | local Delay = Thing[3] | |
| 1477 | local IncX = Thing[4] | |
| 1478 | local IncY = Thing[5] | |
| 1479 | local IncZ = Thing[6] | |
| 1480 | if Thing[1].Transparency <= 1 then | |
| 1481 | if Thing[2] == "Block1" then | |
| 1482 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1483 | Mesh = Thing[1].Mesh | |
| 1484 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1485 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1486 | elseif Thing[2] == "Cylinder" then | |
| 1487 | Mesh = Thing[1].Mesh | |
| 1488 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1489 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1490 | elseif Thing[2] == "Blood" then | |
| 1491 | Mesh = Thing[7] | |
| 1492 | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) | |
| 1493 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
| 1494 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1495 | elseif Thing[2] == "Elec" then | |
| 1496 | Mesh = Thing[1].Mesh | |
| 1497 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
| 1498 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1499 | elseif Thing[2] == "Disappear" then | |
| 1500 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1501 | end | |
| 1502 | else | |
| 1503 | Part.Parent = nil | |
| 1504 | table.remove(Effects, e) | |
| 1505 | end | |
| 1506 | end | |
| 1507 | end | |
| 1508 | end | |
| 1509 | end | |
| 1510 | end |