SHOW:
|
|
- or go back to the newest paste.
| 1 | - | --https://github.com/Mokiros/roblox-FE-compatibility |
| 1 | + | -- This script has convert to FE by who i don't know? |
| 2 | ||
| 3 | ----------------------------------------------------- | |
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,game,owner = owner,game | |
| 6 | - | print("FE Compatibility code V2 by Mokiros")
|
| 6 | + | |
| 7 | - | local RealPlayer = RealPlayer |
| 7 | + | |
| 8 | - | script.Parent = RealPlayer.Character |
| 8 | + | print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
|
| 9 | local rp = RealPlayer | |
| 10 | script.Parent = rp.Character | |
| 11 | - | local Disconnect_Function = function(this) |
| 11 | + | |
| 12 | - | this[1].Functions[this[2]] = nil |
| 12 | + | --RemoteEvent for communicating |
| 13 | local Event = Instance.new("RemoteEvent")
| |
| 14 | - | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
|
| 14 | + | |
| 15 | - | local FakeEvent_Metatable = {__index={
|
| 15 | + | |
| 16 | - | Connect = function(this,f) |
| 16 | + | |
| 17 | - | local i = tostring(math.random(0,10000)) |
| 17 | + | |
| 18 | - | while this.Functions[i] do |
| 18 | + | local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
|
| 19 | - | i = tostring(math.random(0,10000)) |
| 19 | + | t.connect = t.Connect |
| 20 | return t | |
| 21 | - | this.Functions[i] = f |
| 21 | + | |
| 22 | - | return setmetatable({this,i},Disconnect_Metatable)
|
| 22 | + | |
| 23 | --Creating fake input objects with fake variables | |
| 24 | - | }} |
| 24 | + | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
|
| 25 | - | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect |
| 25 | + | |
| 26 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 27 | - | return setmetatable({Functions={}},FakeEvent_Metatable)
|
| 27 | + | |
| 28 | end} | |
| 29 | --Merged 2 functions into one by checking amount of arguments | |
| 30 | CAS.UnbindAction = CAS.BindAction | |
| 31 | - | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
|
| 31 | + | |
| 32 | - | FakeMouse.keyUp = FakeMouse.KeyUp |
| 32 | + | |
| 33 | - | FakeMouse.keyDown = FakeMouse.KeyDown |
| 33 | + | local function te(self,ev,...) |
| 34 | local t = m[ev] | |
| 35 | if t and t._fakeEvent then | |
| 36 | for _,f in pairs(t.Functions) do | |
| 37 | f(...) | |
| 38 | end | |
| 39 | end | |
| 40 | end | |
| 41 | m.TrigEvent = te | |
| 42 | - | local function TriggerEvent(self,ev,...) |
| 42 | + | UIS.TrigEvent = te |
| 43 | - | for _,f in pairs(self[ev].Functions) do |
| 43 | + | |
| 44 | - | f(...) |
| 44 | + | |
| 45 | if plr~=rp then return end | |
| 46 | m.Target = io.Target | |
| 47 | - | FakeMouse.TriggerEvent = TriggerEvent |
| 47 | + | m.Hit = io.Hit |
| 48 | - | UIS.TriggerEvent = TriggerEvent |
| 48 | + | |
| 49 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 50 | - | --Client communication |
| 50 | + | |
| 51 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 52 | end | |
| 53 | for _,t in pairs(CAS.Actions) do | |
| 54 | - | if plr~=RealPlayer then return end |
| 54 | + | |
| 55 | - | FakeMouse.Target = io.Target |
| 55 | + | |
| 56 | - | FakeMouse.Hit = io.Hit |
| 56 | + | |
| 57 | end | |
| 58 | end | |
| 59 | end | |
| 60 | - | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") |
| 60 | + | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 61 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 62 | - | if io.UserInputType == Enum.UserInputType.MouseButton2 then |
| 62 | + | |
| 63 | - | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") |
| 63 | + | |
| 64 | Event.Parent = NLS([==[ | |
| 65 | local Player = game:GetService("Players").LocalPlayer
| |
| 66 | local Event = script:WaitForChild("UserInput_Event")
| |
| 67 | ||
| 68 | local Mouse = Player:GetMouse() | |
| 69 | local UIS = game:GetService("UserInputService")
| |
| 70 | local input = function(io,a) | |
| 71 | if a then return end | |
| 72 | - | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
| 72 | + | |
| 73 | - | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) |
| 73 | + | |
| 74 | end | |
| 75 | UIS.InputBegan:Connect(input) | |
| 76 | - | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
|
| 76 | + | |
| 77 | - | local Mouse = owner:GetMouse() |
| 77 | + | |
| 78 | local h,t | |
| 79 | - | local input = function(io,RobloxHandled) |
| 79 | + | --Give the server mouse data 30 times every second, but only if the values changed |
| 80 | - | if RobloxHandled then return end |
| 80 | + | |
| 81 | while wait(1/30) do | |
| 82 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 83 | h,t=Mouse.Hit,Mouse.Target | |
| 84 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 85 | end | |
| 86 | end]==],Player.Character) | |
| 87 | ||
| 88 | - | --Give the server mouse data every second frame, but only if the values changed |
| 88 | + | |
| 89 | --Real game object | |
| 90 | - | local HB = game:GetService("RunService").Heartbeat
|
| 90 | + | local _rg = game |
| 91 | - | while true do |
| 91 | + | |
| 92 | --Metatable for fake service | |
| 93 | local fsmt = {
| |
| 94 | __index = function(self,k) | |
| 95 | local s = rawget(self,"_RealService") | |
| 96 | - | --Wait 2 frames |
| 96 | + | if s then return s[k] end |
| 97 | - | for i=1,2 do |
| 97 | + | |
| 98 | - | HB:Wait() |
| 98 | + | |
| 99 | local s = rawget(self,"_RealService") | |
| 100 | - | end]==],script) |
| 100 | + | |
| 101 | end, | |
| 102 | __call = function(self,...) | |
| 103 | local s = rawget(self,"_RealService") | |
| 104 | - | local RealGame = game |
| 104 | + | if s then return s(...) end |
| 105 | end | |
| 106 | } | |
| 107 | - | local FakeService_Metatable = {
|
| 107 | + | |
| 108 | t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService | |
| 109 | return setmetatable(t,fsmt) | |
| 110 | - | if s then |
| 110 | + | |
| 111 | - | return typeof(s[k])=="function" |
| 111 | + | |
| 112 | - | and function(_,...)return s[k](s,...)end or s[k] |
| 112 | + | |
| 113 | local g = {
| |
| 114 | GetService = function(self,s) | |
| 115 | return self[s] | |
| 116 | end, | |
| 117 | Players = FakeService({
| |
| 118 | LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
| |
| 119 | },"Players"), | |
| 120 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 121 | - | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService |
| 121 | + | |
| 122 | - | return setmetatable(t,FakeService_Metatable) |
| 122 | + | |
| 123 | rawset(g.Players,"localPlayer",g.Players.LocalPlayer) | |
| 124 | g.service = g.GetService | |
| 125 | ||
| 126 | - | local FakeGame = {
|
| 126 | + | g.RunService = FakeService({
|
| 127 | RenderStepped = _rg:GetService("RunService").Heartbeat,
| |
| 128 | - | return rawget(self,s) or RealGame:GetService(s) |
| 128 | + | BindToRenderStep = function(self,name,_,fun) |
| 129 | ||
| 130 | end, | |
| 131 | - | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
|
| 131 | + | UnbindFromRenderStep = function(self,name) |
| 132 | self._btrs[name]:Disconnect() | |
| 133 | end, | |
| 134 | },"RunService") | |
| 135 | - | RunService = FakeService({
|
| 135 | + | |
| 136 | - | _btrs = {},
|
| 136 | + | setmetatable(g,{
|
| 137 | - | RenderStepped = RealGame:GetService("RunService").Heartbeat,
|
| 137 | + | __index=function(self,s) |
| 138 | - | BindToRenderStep = function(self,name,_,fun) |
| 138 | + | return _rg:GetService(s) or typeof(_rg[s])=="function" |
| 139 | - | self._btrs[name] = self.Heartbeat:Connect(fun) |
| 139 | + | and function(_,...)return _rg[s](_rg,...)end or _rg[s] |
| 140 | - | end, |
| 140 | + | |
| 141 | - | UnbindFromRenderStep = function(self,name) |
| 141 | + | __newindex = fsmt.__newindex, |
| 142 | - | self._btrs[name]:Disconnect() |
| 142 | + | __call = fsmt.__call |
| 143 | - | end, |
| 143 | + | }) |
| 144 | - | },"RunService") |
| 144 | + | |
| 145 | game,owner = g,g.Players.LocalPlayer | |
| 146 | - | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) |
| 146 | + | |
| 147 | - | FakeGame.service = FakeGame.GetService |
| 147 | + | |
| 148 | - | FakeService(FakeGame,game) |
| 148 | + | |
| 149 | print'test testy testie' | |
| 150 | - | game,owner = FakeGame,FakeGame.Players.LocalPlayer |
| 150 | + | |
| 151 | plr = game.Players.LocalPlayer | |
| 152 | char = plr.Character | |
| 153 | hum = char.Humanoid | |
| 154 | local cam = game.Workspace.CurrentCamera | |
| 155 | t = char.Torso | |
| 156 | h = char.Head | |
| 157 | ra = char["Right Arm"] | |
| 158 | la = char["Left Arm"] | |
| 159 | rl = char["Right Leg"] | |
| 160 | ll = char["Left Leg"] | |
| 161 | tors = char.Torso | |
| 162 | lleg = char["Left Leg"] | |
| 163 | root = char.HumanoidRootPart | |
| 164 | hed = char.Head | |
| 165 | rleg = char["Right Leg"] | |
| 166 | rarm = char["Right Arm"] | |
| 167 | larm = char["Left Arm"] | |
| 168 | vt = Vector3.new | |
| 169 | bc = BrickColor.new | |
| 170 | br = BrickColor.random | |
| 171 | it = Instance.new | |
| 172 | cf = CFrame.new | |
| 173 | ||
| 174 | --rh3.Transparency = 0 | |
| 175 | ||
| 176 | --//Reaper\\-- | |
| 177 | local Orbd = Instance.new("Part", char)
| |
| 178 | Orbd.Name = "Orbd" | |
| 179 | Orbd.Shape = Enum.PartType.Ball | |
| 180 | Orbd.CanCollide = false | |
| 181 | Orbd.BrickColor = BrickColor.new("Maroon")
| |
| 182 | Orbd.Transparency = 0 | |
| 183 | Orbd.Material = "Neon" | |
| 184 | Orbd.Size = Vector3.new(0.3, 0.3, 0.3) | |
| 185 | Orbd.TopSurface = Enum.SurfaceType.Smooth | |
| 186 | Orbd.BottomSurface = Enum.SurfaceType.Smooth | |
| 187 | ||
| 188 | local Weld = Instance.new("Weld", Orbd)
| |
| 189 | Weld.Part0 = char.Head | |
| 190 | Weld.Part1 = Orbd | |
| 191 | Weld.C1 = CFrame.new(-0.26, -0.24, 0.55) | |
| 192 | ||
| 193 | -------------------------------------------------------- | |
| 194 | local Orbvc = Instance.new("Part", char)
| |
| 195 | Orbvc.Name = "Orbvc" | |
| 196 | Orbvc.Shape = Enum.PartType.Ball | |
| 197 | Orbvc.CanCollide = false | |
| 198 | Orbvc.BrickColor = BrickColor.new("Really red")
| |
| 199 | Orbvc.Transparency = 0 | |
| 200 | Orbvc.Material = "Neon" | |
| 201 | Orbvc.Size = Vector3.new(0.3, 0.3, 0.3) | |
| 202 | Orbvc.TopSurface = Enum.SurfaceType.Smooth | |
| 203 | Orbvc.BottomSurface = Enum.SurfaceType.Smooth | |
| 204 | ||
| 205 | local Weld = Instance.new("Weld", Orbvc)
| |
| 206 | Weld.Part0 = char.Head | |
| 207 | Weld.Part1 = Orbvc | |
| 208 | Weld.C1 = CFrame.new(0.26, -0.24, 0.55) | |
| 209 | ||
| 210 | local Mask = Instance.new("Part", char)
| |
| 211 | Mask.Name = "Mask" | |
| 212 | Mask.CanCollide = false | |
| 213 | Mask.BrickColor = BrickColor.new("Black")
| |
| 214 | Mask.Transparency = 0 | |
| 215 | Mask.Material = "Plastic" | |
| 216 | Mask.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 217 | Mask.TopSurface = Enum.SurfaceType.Smooth | |
| 218 | Mask.BottomSurface = Enum.SurfaceType.Smooth | |
| 219 | ||
| 220 | local Weld = Instance.new("Weld", Mask)
| |
| 221 | Weld.Part0 = char.Head | |
| 222 | Weld.Part1 = Mask | |
| 223 | Weld.C1 = CFrame.new(0, -0.1, 0.8) | |
| 224 | ||
| 225 | local M1 = Instance.new("SpecialMesh")
| |
| 226 | M1.Parent = Mask | |
| 227 | M1.MeshId = "http://www.roblox.com/asset/?id=62679079" | |
| 228 | M1.Scale = Vector3.new( 1, 1, 2) | |
| 229 | ---------------------------------------------------------- | |
| 230 | local Hood = Instance.new("Part", char)
| |
| 231 | Hood.Name = "Hood" | |
| 232 | Hood.CanCollide = false | |
| 233 | Hood.BrickColor = BrickColor.new("Brown")
| |
| 234 | Hood.Transparency = 0 | |
| 235 | Hood.Material = "Plastic" | |
| 236 | Hood.Size = Vector3.new(0.1, 0.1, 0.1) | |
| 237 | Hood.TopSurface = Enum.SurfaceType.Smooth | |
| 238 | Hood.BottomSurface = Enum.SurfaceType.Smooth | |
| 239 | ||
| 240 | local Weld = Instance.new("Weld", Hood)
| |
| 241 | Weld.Part0 = char.Head | |
| 242 | Weld.Part1 = Hood | |
| 243 | Weld.C1 = CFrame.new(0, -0.2, 0) | |
| 244 | ||
| 245 | local M2 = Instance.new("SpecialMesh")
| |
| 246 | M2.Parent = Hood | |
| 247 | M2.MeshId = "http://www.roblox.com/asset/?id=83499032" | |
| 248 | M2.Scale = Vector3.new( 1, 1.2, 1.1) | |
| 249 | ||
| 250 | CV="Really red" | |
| 251 | ||
| 252 | local txt = Instance.new("BillboardGui", char)
| |
| 253 | txt.Adornee = char .Head | |
| 254 | txt.Name = "_status" | |
| 255 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 256 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 257 | local text = Instance.new("TextLabel", txt)
| |
| 258 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 259 | text.FontSize = "Size24" | |
| 260 | text.TextScaled = true | |
| 261 | text.TextTransparency = 0 | |
| 262 | text.BackgroundTransparency = 1 | |
| 263 | text.TextTransparency = 0 | |
| 264 | text.TextStrokeTransparency = 0 | |
| 265 | text.Font = "Antique" | |
| 266 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 267 | ||
| 268 | v=Instance.new("Part")
| |
| 269 | v.Name = "ColorBrick" | |
| 270 | v.Parent=plr.Character | |
| 271 | v.FormFactor="Symmetric" | |
| 272 | v.Anchored=true | |
| 273 | v.CanCollide=false | |
| 274 | v.BottomSurface="Smooth" | |
| 275 | v.TopSurface="Smooth" | |
| 276 | v.Size=Vector3.new(10,5,3) | |
| 277 | v.Transparency=1 | |
| 278 | v.CFrame=char.Torso.CFrame | |
| 279 | v.BrickColor=BrickColor.new(CV) | |
| 280 | v.Transparency=1 | |
| 281 | text.TextColor3 = Color3.new(255,0,0) | |
| 282 | v.Shape="Block" | |
| 283 | text.Text = "Soviet Officer..." | |
| 284 | ||
| 285 | local s = Instance.new("Sound",char)
| |
| 286 | s.SoundId = "http://www.roblox.com/asset/?id=415880409" | |
| 287 | s.Pitch = 0.98 | |
| 288 | s.Volume = math.huge | |
| 289 | s.Looped = false | |
| 290 | wait(0.1) | |
| 291 | s:play() | |
| 292 | ||
| 293 | local s2 = Instance.new("Sound",char)
| |
| 294 | s2.SoundId = "http://www.roblox.com/asset/?id=320815294" | |
| 295 | s2.Pitch = 1 | |
| 296 | s2.Volume = math.huge | |
| 297 | s2.Looped = true | |
| 298 | wait(0.1) | |
| 299 | s2:play() | |
| 300 | ||
| 301 | ||
| 302 | function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET) | |
| 303 | local NEWMESH = IT(MESH) | |
| 304 | if MESH == "SpecialMesh" then | |
| 305 | NEWMESH.MeshType = MESHTYPE | |
| 306 | if MESHID ~= "nil" and MESHID ~= "" then | |
| 307 | NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID | |
| 308 | end | |
| 309 | if TEXTUREID ~= "nil" and TEXTUREID ~= "" then | |
| 310 | NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID | |
| 311 | end | |
| 312 | end | |
| 313 | NEWMESH.Offset = OFFSET or VT(0, 0, 0) | |
| 314 | NEWMESH.Scale = SCALE | |
| 315 | NEWMESH.Parent = PARENT | |
| 316 | return NEWMESH | |
| 317 | end | |
| 318 | ||
| 319 | function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE) | |
| 320 | local NEWPART = IT("Part")
| |
| 321 | NEWPART.formFactor = FORMFACTOR | |
| 322 | NEWPART.Reflectance = REFLECTANCE | |
| 323 | NEWPART.Transparency = TRANSPARENCY | |
| 324 | NEWPART.CanCollide = false | |
| 325 | NEWPART.Locked = true | |
| 326 | NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR)) | |
| 327 | NEWPART.Name = NAME | |
| 328 | NEWPART.Size = SIZE | |
| 329 | NEWPART.Position = Torso.Position | |
| 330 | NEWPART.Material = MATERIAL | |
| 331 | NEWPART:BreakJoints() | |
| 332 | NEWPART.Parent = PARENT | |
| 333 | return NEWPART | |
| 334 | end | |
| 335 | ||
| 336 | ||
| 337 | function EndTheWorldBaby() --World End | |
| 338 | s2:Stop() | |
| 339 | local moosick2 = Instance.new("Sound",Character)
| |
| 340 | moosick2.SoundId = "rbxassetid://320815294" --music | |
| 341 | --751746850, 741908765 | |
| 342 | moosick2.Looped = true | |
| 343 | moosick2.Pitch = 1 | |
| 344 | moosick2.Volume = 666 | |
| 345 | moosick2:Play() | |
| 346 | ||
| 347 | Mask.Transparency = 1 | |
| 348 | Orbvc.Transparency = 1 | |
| 349 | Orbd.Transparency = 1 | |
| 350 | ||
| 351 | IT = Instance.new | |
| 352 | CF = CFrame.new | |
| 353 | VT = Vector3.new | |
| 354 | RAD = math.rad | |
| 355 | C3 = Color3.new | |
| 356 | UD2 = UDim2.new | |
| 357 | BRICKC = BrickColor.new | |
| 358 | ANGLES = CFrame.Angles | |
| 359 | EULER = CFrame.fromEulerAnglesXYZ | |
| 360 | COS = math.cos | |
| 361 | ACOS = math.acos | |
| 362 | SIN = math.sin | |
| 363 | ASIN = math.asin | |
| 364 | ABS = math.abs | |
| 365 | MRANDOM = math.random | |
| 366 | FLOOR = math.floor | |
| 367 | ||
| 368 | ||
| 369 | local EyeSizes={
| |
| 370 | NumberSequenceKeypoint.new(0,0.65,0), | |
| 371 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
| 372 | NumberSequenceKeypoint.new(1,0,0) | |
| 373 | } | |
| 374 | local EyeTrans={
| |
| 375 | NumberSequenceKeypoint.new(0,0,0), | |
| 376 | NumberSequenceKeypoint.new(0.5,0,0), | |
| 377 | NumberSequenceKeypoint.new(1,1,0) | |
| 378 | } | |
| 379 | local PE22=Instance.new("ParticleEmitter", la)
| |
| 380 | PE22.LightEmission=.9 | |
| 381 | PE22.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
| |
| 382 | PE22.Size=NumberSequence.new(EyeSizes) | |
| 383 | PE22.Transparency=NumberSequence.new(EyeTrans) | |
| 384 | PE22.Lifetime=NumberRange.new(0.35) | |
| 385 | PE22.Rotation=NumberRange.new(0,360) | |
| 386 | PE22.Rate=999 | |
| 387 | PE22.VelocitySpread = 10000 | |
| 388 | PE22.Acceleration = Vector3.new(0,25,0) | |
| 389 | PE22.ZOffset = 0.5 | |
| 390 | PE22.Drag = 0 | |
| 391 | PE22.Speed = NumberRange.new(0,0,0) | |
| 392 | PE22.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 393 | PE22.Name = "PE22" | |
| 394 | PE22.Enabled = true | |
| 395 | PE22.LockedToPart = true | |
| 396 | ||
| 397 | local EyeSizes={
| |
| 398 | NumberSequenceKeypoint.new(0,0.65,0), | |
| 399 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
| 400 | NumberSequenceKeypoint.new(1,0,0) | |
| 401 | } | |
| 402 | local EyeTrans={
| |
| 403 | NumberSequenceKeypoint.new(0,0,0), | |
| 404 | NumberSequenceKeypoint.new(0.5,0,0), | |
| 405 | NumberSequenceKeypoint.new(1,1,0) | |
| 406 | } | |
| 407 | local PE2=Instance.new("ParticleEmitter", ra)
| |
| 408 | PE2.LightEmission=.9 | |
| 409 | PE2.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
| |
| 410 | PE2.Size=NumberSequence.new(EyeSizes) | |
| 411 | PE2.Transparency=NumberSequence.new(EyeTrans) | |
| 412 | PE2.Lifetime=NumberRange.new(0.35) | |
| 413 | PE2.Rotation=NumberRange.new(0,360) | |
| 414 | PE2.Rate=999 | |
| 415 | PE2.VelocitySpread = 10000 | |
| 416 | PE2.Acceleration = Vector3.new(0,25,0) | |
| 417 | PE2.ZOffset = 0.5 | |
| 418 | PE2.Drag = 0 | |
| 419 | PE2.Speed = NumberRange.new(0,0,0) | |
| 420 | PE2.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 421 | PE2.Name = "PE2" | |
| 422 | PE2.Enabled = true | |
| 423 | PE2.LockedToPart = true | |
| 424 | ||
| 425 | ||
| 426 | local EyeSizes={
| |
| 427 | NumberSequenceKeypoint.new(0,0.65,0), | |
| 428 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
| 429 | NumberSequenceKeypoint.new(1,0,0) | |
| 430 | } | |
| 431 | local EyeTrans={
| |
| 432 | NumberSequenceKeypoint.new(0,0,0), | |
| 433 | NumberSequenceKeypoint.new(0.5,0,0), | |
| 434 | NumberSequenceKeypoint.new(1,1,0) | |
| 435 | } | |
| 436 | local PE3=Instance.new("ParticleEmitter", ll)
| |
| 437 | PE3.LightEmission=.9 | |
| 438 | PE3.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
| |
| 439 | PE3.Size=NumberSequence.new(EyeSizes) | |
| 440 | PE3.Transparency=NumberSequence.new(EyeTrans) | |
| 441 | PE3.Lifetime=NumberRange.new(0.35) | |
| 442 | PE3.Rotation=NumberRange.new(0,360) | |
| 443 | PE3.Rate=999 | |
| 444 | PE3.VelocitySpread = 10000 | |
| 445 | PE3.Acceleration = Vector3.new(0,25,0) | |
| 446 | PE3.ZOffset = 0.5 | |
| 447 | PE3.Drag = 0 | |
| 448 | PE3.Speed = NumberRange.new(0,0,0) | |
| 449 | PE3.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 450 | PE3.Name = "PE3" | |
| 451 | PE3.Enabled = true | |
| 452 | PE3.LockedToPart = true | |
| 453 | ||
| 454 | local EyeSizes={
| |
| 455 | NumberSequenceKeypoint.new(0,0.65,0), | |
| 456 | NumberSequenceKeypoint.new(0.5,0.7,0), | |
| 457 | NumberSequenceKeypoint.new(1,0,0) | |
| 458 | } | |
| 459 | local EyeTrans={
| |
| 460 | NumberSequenceKeypoint.new(0,0,0), | |
| 461 | NumberSequenceKeypoint.new(0.5,0,0), | |
| 462 | NumberSequenceKeypoint.new(1,1,0) | |
| 463 | } | |
| 464 | local PE4=Instance.new("ParticleEmitter", rl)
| |
| 465 | PE4.LightEmission=.9 | |
| 466 | PE4.Color = ColorSequence.new(BRICKC("Maroon").Color,BRICKC("Really red").Color)
| |
| 467 | PE4.Size=NumberSequence.new(EyeSizes) | |
| 468 | PE4.Transparency=NumberSequence.new(EyeTrans) | |
| 469 | PE4.Lifetime=NumberRange.new(0.35) | |
| 470 | PE4.Rotation=NumberRange.new(0,360) | |
| 471 | PE4.Rate=999 | |
| 472 | PE4.VelocitySpread = 10000 | |
| 473 | PE4.Acceleration = Vector3.new(0,25,0) | |
| 474 | PE4.ZOffset = 0.5 | |
| 475 | PE4.Drag = 0 | |
| 476 | PE4.Speed = NumberRange.new(0,0,0) | |
| 477 | PE4.Texture="rbxasset://textures/particles/explosion01_implosion_main.dds" | |
| 478 | PE4.Name = "PE4" | |
| 479 | PE4.Enabled = true | |
| 480 | PE4.LockedToPart = true | |
| 481 | ||
| 482 | ||
| 483 | Reaper2 = Instance.new("Model")
| |
| 484 | Reaper2.Parent = plr.Character | |
| 485 | Reaper2.Name = "Reaper2" | |
| 486 | rh2 = Instance.new("Part")
| |
| 487 | rh2.Parent = Reaper2 | |
| 488 | rh2.Locked = true | |
| 489 | rh2.CanCollide = false | |
| 490 | mesh2 = Instance.new("SpecialMesh")
| |
| 491 | rh2.formFactor = "Symmetric" | |
| 492 | mesh2.MeshType = "FileMesh" | |
| 493 | mesh2.MeshId = "http://www.roblox.com/asset/?id=74220237" | |
| 494 | mesh2.TextureId = "http://www.roblox.com/asset/?id=74220223" | |
| 495 | mesh2.Parent = rh2 | |
| 496 | local weld2 = Instance.new("Weld")
| |
| 497 | weld2.Parent = rh2 | |
| 498 | rh2.Transparency = 0 | |
| 499 | weld2.Part0 = rh2 | |
| 500 | weld2.Part1 = plr.Character.Head | |
| 501 | weld2.C0 = CFrame.new(-0, 0.4, 0.04)*CFrame.Angles(0, 0, 0) | |
| 502 | ||
| 503 | Head.face.Texture = "http://www.roblox.com/asset/?id=1181097155" --Head.face | |
| 504 | ||
| 505 | Reaper4 = Instance.new("Model")
| |
| 506 | Reaper4.Parent = Character | |
| 507 | Reaper4.Name = "Reaper4" | |
| 508 | rh4 = Instance.new("Part")
| |
| 509 | rh4.Parent = Reaper4 | |
| 510 | --[[rh4.BrickColor = BrickColor.new("Royal purple")]]--
| |
| 511 | rh4.Locked = true | |
| 512 | rh4.CanCollide = false | |
| 513 | mesh4 = Instance.new("SpecialMesh")
| |
| 514 | rh4.formFactor = "Symmetric" | |
| 515 | mesh4.MeshType = "FileMesh" | |
| 516 | mesh4.MeshId = "http://www.roblox.com/asset/?id=362013001" | |
| 517 | mesh4.TextureId = "http://www.roblox.com/asset/?id=362013075" | |
| 518 | mesh4.Parent = rh4 | |
| 519 | local weld4 = Instance.new("Weld")
| |
| 520 | weld4.Parent = rh4 | |
| 521 | rh4.Transparency = 0 | |
| 522 | weld4.Part0 = rh4 | |
| 523 | weld4.Part1 = Character.Head | |
| 524 | weld4.C0 = CFrame.new(0, -0.5, -0.03)*CFrame.Angles(0, 0, 0) | |
| 525 | end | |
| 526 | ||
| 527 | local m = Instance.new("Model",char)
| |
| 528 | m.Name = "GaunletModel" | |
| 529 | ||
| 530 | local maincolor = BrickColor.new("Really red")
| |
| 531 | local maincolor2 = BrickColor.new("Really black")
| |
| 532 | ||
| 533 | function CreatePart(parent,transparency,reflectance,material,brickcolor) | |
| 534 | local p = Instance.new("Part")
| |
| 535 | p.Parent = parent | |
| 536 | p.Size = Vector3.new(1,1,1) | |
| 537 | p.Transparency = transparency | |
| 538 | p.Reflectance = reflectance | |
| 539 | p.CanCollide = false | |
| 540 | p.BrickColor = brickcolor | |
| 541 | p.Material = material | |
| 542 | return p | |
| 543 | end | |
| 544 | ||
| 545 | for i,v in pairs(char:children()) do | |
| 546 | if v:IsA("Hat") then
| |
| 547 | v:Destroy() | |
| 548 | end | |
| 549 | end | |
| 550 | for i,v in pairs(char:children()) do | |
| 551 | if v:IsA("Accessory") then
| |
| 552 | v:Destroy() | |
| 553 | end | |
| 554 | end | |
| 555 | for i,v in pairs(char:children()) do | |
| 556 | if v:IsA("Hair") then
| |
| 557 | v:Destroy() | |
| 558 | end | |
| 559 | end | |
| 560 | ||
| 561 | function CreateMesh(parent,meshtype,x1,y1,z1) | |
| 562 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 563 | mesh.MeshType = meshtype | |
| 564 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 565 | return mesh | |
| 566 | end | |
| 567 | ||
| 568 | function CreateSpecialMesh(parent,meshid,x1,y1,z1) | |
| 569 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 570 | mesh.MeshType = "SpecialMesh" | |
| 571 | mesh.MeshId = meshid | |
| 572 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 573 | return mesh | |
| 574 | end | |
| 575 | ||
| 576 | function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1) | |
| 577 | local mesh = Instance.new("SpecialMesh",parent)
| |
| 578 | mesh.MeshType = "FileMesh" | |
| 579 | mesh.MeshId = meshid | |
| 580 | mesh.TextureId = "http://www.roblox.com/asset/?id=269748808" | |
| 581 | mesh.Scale = Vector3.new(x1,y1,z1) | |
| 582 | mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b) | |
| 583 | return mesh | |
| 584 | end | |
| 585 | ||
| 586 | function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za) | |
| 587 | local weld = Instance.new("Weld")
| |
| 588 | weld.Parent = parent | |
| 589 | weld.Part0 = part0 | |
| 590 | weld.Part1 = part1 | |
| 591 | weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za) | |
| 592 | weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za) | |
| 593 | return weld | |
| 594 | end | |
| 595 | ||
| 596 | local llegw = CreatePart(m,1,1,"SmoothPlastic",maincolor2) | |
| 597 | CreateWeld(llegw,lleg,llegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 598 | local rlegw = CreatePart(m,1,1,"SmoothPlastic",maincolor2) | |
| 599 | CreateWeld(rlegw,rleg,rlegw,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 600 | ||
| 601 | local sorb = CreatePart(m,1,1,"SmoothPlastic",maincolor2) | |
| 602 | CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 603 | local sorb2 = CreatePart(m,1,1,"SmoothPlastic",maincolor2) | |
| 604 | CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 605 | ||
| 606 | ---- Right arm | |
| 607 | local handle = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 608 | CreateMesh(handle,"Brick",1.05,1.5,1.05) | |
| 609 | CreateWeld(handle,rarm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 610 | local lowhandle = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 611 | CreateMesh(lowhandle,"Brick",1.025,0.3,1.025) | |
| 612 | CreateWeld(lowhandle,rarm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 613 | local lowhandleo = CreatePart(m,0,0,"Neon",maincolor) | |
| 614 | CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02) | |
| 615 | CreateWeld(lowhandleo,rarm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 616 | local handleg = CreatePart(m,0,0,"Neon",maincolor) | |
| 617 | CreateMesh(handleg,"Brick",1.025,1.5,1.025) | |
| 618 | CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 619 | local handleo = CreatePart(m,0,0,"Neon",maincolor) | |
| 620 | CreateMesh(handleo,"Brick",0.5,0.85,1.085) | |
| 621 | CreateWeld(handleo,handle,handleo,-0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 622 | local handleo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 623 | CreateMesh(handleo2,"Brick",0.5,0.8,1.09) | |
| 624 | CreateWeld(handleo2,handle,handleo2,-0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 625 | local zi = CreatePart(m,0,0,"Neon",maincolor) | |
| 626 | CreateMesh(zi,"Brick",0.025,1.525,1.1) | |
| 627 | CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 628 | ||
| 629 | local to = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 630 | CreateMesh(to,"Brick",0.5,1.5,0.5) | |
| 631 | CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 632 | local tl = CreatePart(m,0,0,"Neon",maincolor) | |
| 633 | CreateMesh(tl,"Brick",0.6,1.45,0.6) | |
| 634 | CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 635 | ||
| 636 | local zo = CreatePart(m,0,0,"Neon",maincolor) | |
| 637 | CreateMesh(zo,"Brick",0.565,0.025,1.1) | |
| 638 | CreateWeld(zo,handle,zo,-0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 639 | local zoa = CreatePart(m,0,0,"Neon",maincolor) | |
| 640 | CreateMesh(zoa,"Brick",0.565,0.025,1.1) | |
| 641 | CreateWeld(zoa,handle,zoa,-0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 642 | local zob = CreatePart(m,0,0,"Neon",maincolor) | |
| 643 | CreateMesh(zob,"Brick",0.565,0.025,1.1) | |
| 644 | CreateWeld(zob,handle,zob,-0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 645 | local zz = CreatePart(m,0,0,"Neon",maincolor) | |
| 646 | CreateMesh(zz,"Brick",0.3,0.3,0.3) | |
| 647 | CreateWeld(zz,zoa,zz,-0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 648 | local zzo = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 649 | CreateMesh(zzo,"Brick",0.315,0.275,0.275) | |
| 650 | CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 651 | ||
| 652 | local li = CreatePart(m,0,0,"Neon",maincolor) | |
| 653 | CreateMesh(li,"Brick",0.275,0.825,0.025) | |
| 654 | CreateWeld(li,handleo,li,-0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 655 | ||
| 656 | local li1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 657 | CreateMesh(li1,"Brick",0.275,0.825,0.025) | |
| 658 | CreateWeld(li1,handleo,li1,-0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 659 | local li2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 660 | CreateMesh(li2,"Brick",0.275,0.825,0.025) | |
| 661 | CreateWeld(li2,handleo,li2,-0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 662 | ||
| 663 | local di = CreatePart(m,0,0,"Neon",maincolor) | |
| 664 | CreateMesh(di,"Brick",0.3,0.3,0.3) | |
| 665 | CreateWeld(di,handleo,di,-0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 666 | ||
| 667 | local di1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 668 | CreateMesh(di1,"Brick",0.3,0.15,0.15) | |
| 669 | CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 670 | local di2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 671 | CreateMesh(di2,"Brick",0.3,0.15,0.15) | |
| 672 | CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 673 | local di3 = CreatePart(m,0,0,"Neon",maincolor) | |
| 674 | CreateMesh(di3,"Brick",0.3,0.15,0.15) | |
| 675 | CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 676 | local di4 = CreatePart(m,0,0,"Neon",maincolor) | |
| 677 | CreateMesh(di4,"Brick",0.3,0.15,0.15) | |
| 678 | CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 679 | local dio = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 680 | CreateMesh(dio,"Brick",0.325,0.275,0.275) | |
| 681 | CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 682 | local dio1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 683 | CreateMesh(dio1,"Brick",0.325,0.125,0.125) | |
| 684 | CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 685 | local dio2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 686 | CreateMesh(dio2,"Brick",0.325,0.125,0.125) | |
| 687 | CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 688 | local dio3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 689 | CreateMesh(dio3,"Brick",0.325,0.125,0.125) | |
| 690 | CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 691 | local dio4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 692 | CreateMesh(dio4,"Brick",0.325,0.125,0.125) | |
| 693 | CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 694 | ||
| 695 | local sq1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 696 | CreateMesh(sq1,"Brick",0.3,0.125,0.125) | |
| 697 | CreateWeld(sq1,handleo,sq1,-0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 698 | local sq2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 699 | CreateMesh(sq2,"Brick",0.3,0.125,0.125) | |
| 700 | CreateWeld(sq2,handleo,sq2,-0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 701 | local sq3 = CreatePart(m,0,0,"Neon",maincolor) | |
| 702 | CreateMesh(sq3,"Brick",0.3,0.125,0.125) | |
| 703 | CreateWeld(sq3,handleo,sq3,-0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 704 | local sq4 = CreatePart(m,0,0,"Neon",maincolor) | |
| 705 | CreateMesh(sq4,"Brick",0.3,0.125,0.125) | |
| 706 | CreateWeld(sq4,handleo,sq4,-0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 707 | ||
| 708 | local sqo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 709 | CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115) | |
| 710 | CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 711 | local sqo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 712 | CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115) | |
| 713 | CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 714 | local sqo3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 715 | CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115) | |
| 716 | CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 717 | local sqo4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 718 | CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115) | |
| 719 | CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 720 | ||
| 721 | local locl = CreatePart(m,0,0,"Neon",maincolor) | |
| 722 | CreateMesh(locl,"Brick",0.1,0.1,0.1) | |
| 723 | CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 724 | ||
| 725 | local dil = CreatePart(m,0,0,"Neon",maincolor) | |
| 726 | CreateMesh(dil,"Brick",0.45,0.45,0.3) | |
| 727 | CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 728 | ||
| 729 | local dil1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 730 | CreateMesh(dil1,"Brick",0.225,0.225,0.3) | |
| 731 | CreateWeld(dil1,dil,dil1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 732 | local dil2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 733 | CreateMesh(dil2,"Brick",0.225,0.225,0.3) | |
| 734 | CreateWeld(dil2,dil,dil2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 735 | ||
| 736 | local dilo = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 737 | CreateMesh(dilo,"Brick",0.375,0.375,0.315) | |
| 738 | CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 739 | local dilo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 740 | CreateMesh(dilo1,"Brick",0.175,0.175,0.315) | |
| 741 | CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 742 | local dilo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 743 | CreateMesh(dilo2,"Brick",0.175,0.175,0.315) | |
| 744 | CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 745 | ||
| 746 | local locr = CreatePart(m,0,0,"Neon",maincolor) | |
| 747 | CreateMesh(locr,"Brick",0.1,0.1,0.1) | |
| 748 | CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 749 | ||
| 750 | local dir = CreatePart(m,0,0,"Neon",maincolor) | |
| 751 | CreateMesh(dir,"Brick",0.45,0.45,0.3) | |
| 752 | CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 753 | ||
| 754 | local dir1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 755 | CreateMesh(dir1,"Brick",0.225,0.225,0.3) | |
| 756 | CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 757 | local dir2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 758 | CreateMesh(dir2,"Brick",0.225,0.225,0.3) | |
| 759 | CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 760 | ||
| 761 | local diro = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 762 | CreateMesh(diro,"Brick",0.375,0.375,0.315) | |
| 763 | CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 764 | local diro1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 765 | CreateMesh(diro1,"Brick",0.175,0.175,0.315) | |
| 766 | CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 767 | local diro2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 768 | CreateMesh(diro2,"Brick",0.175,0.175,0.315) | |
| 769 | CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 770 | ||
| 771 | ---- Left arm | |
| 772 | local handle = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 773 | CreateMesh(handle,"Brick",1.05,1.5,1.05) | |
| 774 | CreateWeld(handle,larm,handle,0,-0.265,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 775 | local lowhandle = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 776 | CreateMesh(lowhandle,"Brick",1.025,0.3,1.025) | |
| 777 | CreateWeld(lowhandle,larm,lowhandle,0,0.865,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 778 | local lowhandleo = CreatePart(m,0,0,"Neon",maincolor) | |
| 779 | CreateMesh(lowhandleo,"Brick",1.02,0.3,1.02) | |
| 780 | CreateWeld(lowhandleo,larm,lowhandleo,0,0.835,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 781 | local handleg = CreatePart(m,0,0,"Neon",maincolor) | |
| 782 | CreateMesh(handleg,"Brick",1.025,1.5,1.025) | |
| 783 | CreateWeld(handleg,handle,handleg,0,0.1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 784 | local handleo = CreatePart(m,0,0,"Neon",maincolor) | |
| 785 | CreateMesh(handleo,"Brick",0.5,0.85,1.085) | |
| 786 | CreateWeld(handleo,handle,handleo,0.315,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 787 | local handleo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 788 | CreateMesh(handleo2,"Brick",0.5,0.8,1.09) | |
| 789 | CreateWeld(handleo2,handle,handleo2,0.3175,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 790 | local zi = CreatePart(m,0,0,"Neon",maincolor) | |
| 791 | CreateMesh(zi,"Brick",0.025,1.525,1.1) | |
| 792 | CreateWeld(zi,handle,zi,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 793 | ||
| 794 | local to = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 795 | CreateMesh(to,"Brick",0.5,1.5,0.5) | |
| 796 | CreateWeld(to,handle,to,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 797 | local tl = CreatePart(m,0,0,"Neon",maincolor) | |
| 798 | CreateMesh(tl,"Brick",0.6,1.45,0.6) | |
| 799 | CreateWeld(tl,handle,tl,0,-0.05,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 800 | ||
| 801 | local zo = CreatePart(m,0,0,"Neon",maincolor) | |
| 802 | CreateMesh(zo,"Brick",0.565,0.025,1.1) | |
| 803 | CreateWeld(zo,handle,zo,0.275,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 804 | local zoa = CreatePart(m,0,0,"Neon",maincolor) | |
| 805 | CreateMesh(zoa,"Brick",0.565,0.025,1.1) | |
| 806 | CreateWeld(zoa,handle,zoa,0.275,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 807 | local zob = CreatePart(m,0,0,"Neon",maincolor) | |
| 808 | CreateMesh(zob,"Brick",0.565,0.025,1.1) | |
| 809 | CreateWeld(zob,handle,zob,0.275,0.7,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 810 | local zz = CreatePart(m,0,0,"Neon",maincolor) | |
| 811 | CreateMesh(zz,"Brick",0.3,0.3,0.3) | |
| 812 | CreateWeld(zz,zoa,zz,0.15,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 813 | local zzo = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 814 | CreateMesh(zzo,"Brick",0.315,0.275,0.275) | |
| 815 | CreateWeld(zzo,zz,zzo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 816 | ||
| 817 | local li = CreatePart(m,0,0,"Neon",maincolor) | |
| 818 | CreateMesh(li,"Brick",0.275,0.825,0.025) | |
| 819 | CreateWeld(li,handleo,li,0.125,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 820 | ||
| 821 | local li1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 822 | CreateMesh(li1,"Brick",0.275,0.825,0.025) | |
| 823 | CreateWeld(li1,handleo,li1,0.125,0,0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 824 | local li2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 825 | CreateMesh(li2,"Brick",0.275,0.825,0.025) | |
| 826 | CreateWeld(li2,handleo,li2,0.125,0,-0.225,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 827 | ||
| 828 | local di = CreatePart(m,0,0,"Neon",maincolor) | |
| 829 | CreateMesh(di,"Brick",0.3,0.3,0.3) | |
| 830 | CreateWeld(di,handleo,di,0.125,0,0,math.rad(45),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 831 | ||
| 832 | local di1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 833 | CreateMesh(di1,"Brick",0.3,0.15,0.15) | |
| 834 | CreateWeld(di1,di,di1,0,0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 835 | local di2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 836 | CreateMesh(di2,"Brick",0.3,0.15,0.15) | |
| 837 | CreateWeld(di2,di,di2,0,0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 838 | local di3 = CreatePart(m,0,0,"Neon",maincolor) | |
| 839 | CreateMesh(di3,"Brick",0.3,0.15,0.15) | |
| 840 | CreateWeld(di3,di,di3,0,-0.15,0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 841 | local di4 = CreatePart(m,0,0,"Neon",maincolor) | |
| 842 | CreateMesh(di4,"Brick",0.3,0.15,0.15) | |
| 843 | CreateWeld(di4,di,di4,0,-0.15,-0.15,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 844 | local dio = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 845 | CreateMesh(dio,"Brick",0.325,0.275,0.275) | |
| 846 | CreateWeld(dio,di,dio,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 847 | local dio1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 848 | CreateMesh(dio1,"Brick",0.325,0.125,0.125) | |
| 849 | CreateWeld(dio1,di1,dio1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 850 | local dio2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 851 | CreateMesh(dio2,"Brick",0.325,0.125,0.125) | |
| 852 | CreateWeld(dio2,di2,dio2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 853 | local dio3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 854 | CreateMesh(dio3,"Brick",0.325,0.125,0.125) | |
| 855 | CreateWeld(dio3,di3,dio3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 856 | local dio4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 857 | CreateMesh(dio4,"Brick",0.325,0.125,0.125) | |
| 858 | CreateWeld(dio4,di4,dio4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 859 | ||
| 860 | local sq1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 861 | CreateMesh(sq1,"Brick",0.3,0.125,0.125) | |
| 862 | CreateWeld(sq1,handleo,sq1,0.125,0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 863 | local sq2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 864 | CreateMesh(sq2,"Brick",0.3,0.125,0.125) | |
| 865 | CreateWeld(sq2,handleo,sq2,0.125,-0.25,0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 866 | local sq3 = CreatePart(m,0,0,"Neon",maincolor) | |
| 867 | CreateMesh(sq3,"Brick",0.3,0.125,0.125) | |
| 868 | CreateWeld(sq3,handleo,sq3,0.125,0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 869 | local sq4 = CreatePart(m,0,0,"Neon",maincolor) | |
| 870 | CreateMesh(sq4,"Brick",0.3,0.125,0.125) | |
| 871 | CreateWeld(sq4,handleo,sq4,0.125,-0.25,-0.4,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 872 | ||
| 873 | local sqo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 874 | CreateMesh(sqo1,"Brick",0.3115,0.1115,0.1115) | |
| 875 | CreateWeld(sqo1,sq1,sqo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 876 | local sqo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 877 | CreateMesh(sqo2,"Brick",0.3115,0.1115,0.1115) | |
| 878 | CreateWeld(sqo2,sq2,sqo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 879 | local sqo3 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 880 | CreateMesh(sqo3,"Brick",0.3115,0.1115,0.1115) | |
| 881 | CreateWeld(sqo3,sq3,sqo3,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 882 | local sqo4 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 883 | CreateMesh(sqo4,"Brick",0.3115,0.1115,0.1115) | |
| 884 | CreateWeld(sqo4,sq4,sqo4,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 885 | ||
| 886 | local locl = CreatePart(m,0,0,"Neon",maincolor) | |
| 887 | CreateMesh(locl,"Brick",0.1,0.1,0.1) | |
| 888 | CreateWeld(locl,handle,locl,0,0,0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 889 | ||
| 890 | local dil = CreatePart(m,0,0,"Neon",maincolor) | |
| 891 | CreateMesh(dil,"Brick",0.45,0.45,0.3) | |
| 892 | CreateWeld(dil,locl,dil,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 893 | ||
| 894 | local dil1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 895 | CreateMesh(dil1,"Brick",0.225,0.225,0.3) | |
| 896 | CreateWeld(dil1,dil,dil1,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 897 | local dil2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 898 | CreateMesh(dil2,"Brick",0.225,0.225,0.3) | |
| 899 | CreateWeld(dil2,dil,dil2,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 900 | ||
| 901 | local dilo = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 902 | CreateMesh(dilo,"Brick",0.375,0.375,0.315) | |
| 903 | CreateWeld(dilo,dil,dilo,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 904 | local dilo1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 905 | CreateMesh(dilo1,"Brick",0.175,0.175,0.315) | |
| 906 | CreateWeld(dilo1,dil1,dilo1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 907 | local dilo2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 908 | CreateMesh(dilo2,"Brick",0.175,0.175,0.315) | |
| 909 | CreateWeld(dilo2,dil2,dilo2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 910 | ||
| 911 | local locr = CreatePart(m,0,0,"Neon",maincolor) | |
| 912 | CreateMesh(locr,"Brick",0.1,0.1,0.1) | |
| 913 | CreateWeld(locr,handle,locr,0,0,-0.435,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 914 | ||
| 915 | local dir = CreatePart(m,0,0,"Neon",maincolor) | |
| 916 | CreateMesh(dir,"Brick",0.45,0.45,0.3) | |
| 917 | CreateWeld(dir,locr,dir,0,0,0,math.rad(0),math.rad(0),math.rad(45),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 918 | ||
| 919 | local dir1 = CreatePart(m,0,0,"Neon",maincolor) | |
| 920 | CreateMesh(dir1,"Brick",0.225,0.225,0.3) | |
| 921 | CreateWeld(dir1,dir,dir1,-0.225,0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 922 | local dir2 = CreatePart(m,0,0,"Neon",maincolor) | |
| 923 | CreateMesh(dir2,"Brick",0.225,0.225,0.3) | |
| 924 | CreateWeld(dir2,dir,dir2,0.225,-0.225,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 925 | ||
| 926 | local diro = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 927 | CreateMesh(diro,"Brick",0.375,0.375,0.315) | |
| 928 | CreateWeld(diro,dir,diro,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 929 | local diro1 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 930 | CreateMesh(diro1,"Brick",0.175,0.175,0.315) | |
| 931 | CreateWeld(diro1,dir1,diro1,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 932 | local diro2 = CreatePart(m,0,0,"SmoothPlastic",maincolor2) | |
| 933 | CreateMesh(diro2,"Brick",0.175,0.175,0.315) | |
| 934 | CreateWeld(diro2,dir2,diro2,0,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0)) | |
| 935 | ||
| 936 | Player=game:GetService("Players").LocalPlayer
| |
| 937 | Character=Player.Character | |
| 938 | PlayerGui=Player.PlayerGui | |
| 939 | Backpack=Player.Backpack | |
| 940 | Torso=Character.Torso | |
| 941 | Head=Character.Head | |
| 942 | Humanoid=Character.Humanoid | |
| 943 | m=Instance.new('Model',Character)
| |
| 944 | LeftArm=Character["Left Arm"] | |
| 945 | LeftLeg=Character["Left Leg"] | |
| 946 | RightArm=Character["Right Arm"] | |
| 947 | RightLeg=Character["Right Leg"] | |
| 948 | LS=Torso["Left Shoulder"] | |
| 949 | LH=Torso["Left Hip"] | |
| 950 | RS=Torso["Right Shoulder"] | |
| 951 | RH=Torso["Right Hip"] | |
| 952 | Face = Head.face | |
| 953 | Neck=Torso.Neck | |
| 954 | it=Instance.new | |
| 955 | attacktype=1 | |
| 956 | vt=Vector3.new | |
| 957 | cf=CFrame.new | |
| 958 | euler=CFrame.fromEulerAnglesXYZ | |
| 959 | angles=CFrame.Angles | |
| 960 | cloaked=false | |
| 961 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 962 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 963 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 964 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 965 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 966 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 967 | RootPart=Character.HumanoidRootPart | |
| 968 | RootJoint=RootPart.RootJoint | |
| 969 | RootCF=euler(-1.57,0,3.14) | |
| 970 | attack = false | |
| 971 | attackdebounce = false | |
| 972 | deb=false | |
| 973 | equipped=true | |
| 974 | hand=false | |
| 975 | MMouse=nil | |
| 976 | combo=0 | |
| 977 | mana=0 | |
| 978 | trispeed=.2 | |
| 979 | attackmode='none' | |
| 980 | local idle=0 | |
| 981 | local Anim="Idle" | |
| 982 | local Effects={}
| |
| 983 | local gun=false | |
| 984 | local shoot=false | |
| 985 | local sine = 0 | |
| 986 | local change = 1 | |
| 987 | player=nil | |
| 988 | ||
| 989 | mouse=Player:GetMouse() | |
| 990 | --save shoulders | |
| 991 | RSH, LSH=nil, nil | |
| 992 | --welds | |
| 993 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 994 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 995 | LH=Torso["Left Hip"] | |
| 996 | RH=Torso["Right Hip"] | |
| 997 | TorsoColor=Torso.BrickColor | |
| 998 | function NoOutline(Part) | |
| 999 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 1000 | end | |
| 1001 | player=Player | |
| 1002 | ch=Character | |
| 1003 | RSH=ch.Torso["Right Shoulder"] | |
| 1004 | LSH=ch.Torso["Left Shoulder"] | |
| 1005 | -- | |
| 1006 | RSH.Parent=nil | |
| 1007 | LSH.Parent=nil | |
| 1008 | -- | |
| 1009 | RW.Name="Right Shoulder" | |
| 1010 | RW.Part0=ch.Torso | |
| 1011 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 1012 | RW.C1=cf(0, 0.5, 0) | |
| 1013 | RW.Part1=ch["Right Arm"] | |
| 1014 | RW.Parent=ch.Torso | |
| 1015 | -- | |
| 1016 | LW.Name="Left Shoulder" | |
| 1017 | LW.Part0=ch.Torso | |
| 1018 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 1019 | LW.C1=cf(0, 0.5, 0) | |
| 1020 | LW.Part1=ch["Left Arm"] | |
| 1021 | LW.Parent=ch.Torso | |
| 1022 | ||
| 1023 | local Stats=Instance.new("BoolValue")
| |
| 1024 | Stats.Name="Stats" | |
| 1025 | Stats.Parent=Character | |
| 1026 | local Atk=Instance.new("NumberValue")
| |
| 1027 | Atk.Name="Damage" | |
| 1028 | Atk.Parent=Stats | |
| 1029 | Atk.Value=1 | |
| 1030 | local Def=Instance.new("NumberValue")
| |
| 1031 | Def.Name="Defense" | |
| 1032 | Def.Parent=Stats | |
| 1033 | Def.Value=1 | |
| 1034 | local Speed=Instance.new("NumberValue")
| |
| 1035 | Speed.Name="Speed" | |
| 1036 | Speed.Parent=Stats | |
| 1037 | Speed.Value=1 | |
| 1038 | local Mvmt=Instance.new("NumberValue")
| |
| 1039 | Mvmt.Name="Movement" | |
| 1040 | Mvmt.Parent=Stats | |
| 1041 | Mvmt.Value=1 | |
| 1042 | ||
| 1043 | local donum=0 | |
| 1044 | ||
| 1045 | ||
| 1046 | function part(formfactor,parent,reflectance,transparency,brickcolor,name,size) | |
| 1047 | local fp=it("Part")
| |
| 1048 | fp.formFactor=formfactor | |
| 1049 | fp.Parent=parent | |
| 1050 | fp.Reflectance=reflectance | |
| 1051 | fp.Transparency=transparency | |
| 1052 | fp.CanCollide=false | |
| 1053 | fp.Locked=true | |
| 1054 | fp.BrickColor=brickcolor | |
| 1055 | fp.Name=name | |
| 1056 | fp.Size=size | |
| 1057 | fp.Position=Torso.Position | |
| 1058 | NoOutline(fp) | |
| 1059 | fp.Material="SmoothPlastic" | |
| 1060 | fp:BreakJoints() | |
| 1061 | return fp | |
| 1062 | end | |
| 1063 | ||
| 1064 | function mesh(Mesh,part,meshtype,meshid,offset,scale) | |
| 1065 | local mesh=it(Mesh) | |
| 1066 | mesh.Parent=part | |
| 1067 | if Mesh=="SpecialMesh" then | |
| 1068 | mesh.MeshType=meshtype | |
| 1069 | if meshid~="nil" then | |
| 1070 | mesh.MeshId="http://www.roblox.com/asset/?id="..meshid | |
| 1071 | end | |
| 1072 | end | |
| 1073 | mesh.Offset=offset | |
| 1074 | mesh.Scale=scale | |
| 1075 | return mesh | |
| 1076 | end | |
| 1077 | ||
| 1078 | function weld(parent,part0,part1,c0) | |
| 1079 | local weld=it("Weld")
| |
| 1080 | weld.Parent=parent | |
| 1081 | weld.Part0=part0 | |
| 1082 | weld.Part1=part1 | |
| 1083 | weld.C0=c0 | |
| 1084 | return weld | |
| 1085 | end | |
| 1086 | ||
| 1087 | local Color1=Torso.BrickColor | |
| 1088 | ||
| 1089 | local bodvel=Instance.new("BodyVelocity")
| |
| 1090 | local bg=Instance.new("BodyGyro")
| |
| 1091 | ||
| 1092 | function swait(num) | |
| 1093 | if num==0 or num==nil then | |
| 1094 | game:service'RunService'.Stepped:wait(0) | |
| 1095 | else | |
| 1096 | for i=0,num do | |
| 1097 | game:service'RunService'.Stepped:wait(0) | |
| 1098 | end | |
| 1099 | end | |
| 1100 | end | |
| 1101 | p = game.Players.LocalPlayer | |
| 1102 | char = p.Character | |
| 1103 | local char = p.Character | |
| 1104 | torso = char.Torso | |
| 1105 | neck = char.Torso.Neck | |
| 1106 | hum = char.Humanoid | |
| 1107 | ||
| 1108 | so = function(id,par,vol,pit) | |
| 1109 | coroutine.resume(coroutine.create(function() | |
| 1110 | local sou = Instance.new("Sound",par or workspace)
| |
| 1111 | sou.Volume=vol | |
| 1112 | sou.Pitch=pit or 1 | |
| 1113 | sou.SoundId=id | |
| 1114 | swait() | |
| 1115 | sou:play() | |
| 1116 | game:GetService("Debris"):AddItem(sou,6)
| |
| 1117 | end)) | |
| 1118 | end | |
| 1119 | ||
| 1120 | function clerp(a,b,t) | |
| 1121 | local qa = {QuaternionFromCFrame(a)}
| |
| 1122 | local qb = {QuaternionFromCFrame(b)}
| |
| 1123 | local ax, ay, az = a.x, a.y, a.z | |
| 1124 | local bx, by, bz = b.x, b.y, b.z | |
| 1125 | local _t = 1-t | |
| 1126 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 1127 | end | |
| 1128 | ||
| 1129 | function QuaternionFromCFrame(cf) | |
| 1130 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 1131 | local trace = m00 + m11 + m22 | |
| 1132 | if trace > 0 then | |
| 1133 | local s = math.sqrt(1 + trace) | |
| 1134 | local recip = 0.5/s | |
| 1135 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 1136 | else | |
| 1137 | local i = 0 | |
| 1138 | if m11 > m00 then | |
| 1139 | i = 1 | |
| 1140 | end | |
| 1141 | if m22 > (i == 0 and m00 or m11) then | |
| 1142 | i = 2 | |
| 1143 | end | |
| 1144 | if i == 0 then | |
| 1145 | local s = math.sqrt(m00-m11-m22+1) | |
| 1146 | local recip = 0.5/s | |
| 1147 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 1148 | elseif i == 1 then | |
| 1149 | local s = math.sqrt(m11-m22-m00+1) | |
| 1150 | local recip = 0.5/s | |
| 1151 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 1152 | elseif i == 2 then | |
| 1153 | local s = math.sqrt(m22-m00-m11+1) | |
| 1154 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 1155 | end | |
| 1156 | end | |
| 1157 | end | |
| 1158 | ||
| 1159 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 1160 | local xs, ys, zs = x + x, y + y, z + z | |
| 1161 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 1162 | local xx = x*xs | |
| 1163 | local xy = x*ys | |
| 1164 | local xz = x*zs | |
| 1165 | local yy = y*ys | |
| 1166 | local yz = y*zs | |
| 1167 | local zz = z*zs | |
| 1168 | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) | |
| 1169 | end | |
| 1170 | ||
| 1171 | function QuaternionSlerp(a, b, t) | |
| 1172 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 1173 | local startInterp, finishInterp; | |
| 1174 | if cosTheta >= 0.0001 then | |
| 1175 | if (1 - cosTheta) > 0.0001 then | |
| 1176 | local theta = math.acos(cosTheta) | |
| 1177 | local invSinTheta = 1/math.sin(theta) | |
| 1178 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 1179 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1180 | else | |
| 1181 | startInterp = 1-t | |
| 1182 | finishInterp = t | |
| 1183 | end | |
| 1184 | else | |
| 1185 | if (1+cosTheta) > 0.0001 then | |
| 1186 | local theta = math.acos(-cosTheta) | |
| 1187 | local invSinTheta = 1/math.sin(theta) | |
| 1188 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 1189 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 1190 | else | |
| 1191 | startInterp = t-1 | |
| 1192 | finishInterp = t | |
| 1193 | end | |
| 1194 | end | |
| 1195 | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp | |
| 1196 | end | |
| 1197 | ||
| 1198 | local function CFrameFromTopBack(at, top, back) | |
| 1199 | local right = top:Cross(back) | |
| 1200 | return CFrame.new(at.x, at.y, at.z, | |
| 1201 | right.x, top.x, back.x, | |
| 1202 | right.y, top.y, back.y, | |
| 1203 | right.z, top.z, back.z) | |
| 1204 | end | |
| 1205 | ||
| 1206 | function Triangle(a, b, c) | |
| 1207 | local edg1 = (c-a):Dot((b-a).unit) | |
| 1208 | local edg2 = (a-b):Dot((c-b).unit) | |
| 1209 | local edg3 = (b-c):Dot((a-c).unit) | |
| 1210 | if edg1 <= (b-a).magnitude and edg1 >= 0 then | |
| 1211 | a, b, c = a, b, c | |
| 1212 | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then | |
| 1213 | a, b, c = b, c, a | |
| 1214 | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then | |
| 1215 | a, b, c = c, a, b | |
| 1216 | else | |
| 1217 | assert(false, "unreachable") | |
| 1218 | end | |
| 1219 | ||
| 1220 | ||
| 1221 | ||
| 1222 | local len1 = (c-a):Dot((b-a).unit) | |
| 1223 | local len2 = (b-a).magnitude - len1 | |
| 1224 | local width = (a + (b-a).unit*len1 - c).magnitude | |
| 1225 | ||
| 1226 | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) | |
| 1227 | ||
| 1228 | local list = {}
| |
| 1229 | ||
| 1230 | if len1 > 0.01 then | |
| 1231 | local w1 = Instance.new('WedgePart', m)
| |
| 1232 | game:GetService("Debris"):AddItem(w1,5)
| |
| 1233 | w1.Material = "SmoothPlastic" | |
| 1234 | w1.FormFactor = 'Custom' | |
| 1235 | w1.BrickColor = BrickColor.new("Really red")
| |
| 1236 | w1.Transparency = 0 | |
| 1237 | w1.Reflectance = 0 | |
| 1238 | w1.Material = "SmoothPlastic" | |
| 1239 | w1.CanCollide = false | |
| 1240 | local l1 = Instance.new("PointLight",w1)
| |
| 1241 | l1.Color = Color3.new(170,0,0) | |
| 1242 | NoOutline(w1) | |
| 1243 | local sz = Vector3.new(0.2, width, len1) | |
| 1244 | w1.Size = sz | |
| 1245 | local sp = Instance.new("SpecialMesh",w1)
| |
| 1246 | sp.MeshType = "Wedge" | |
| 1247 | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size | |
| 1248 | w1:BreakJoints() | |
| 1249 | w1.Anchored = true | |
| 1250 | w1.Parent = workspace | |
| 1251 | w1.Transparency = 0.7 | |
| 1252 | table.insert(Effects,{w1,"Disappear",.01})
| |
| 1253 | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) | |
| 1254 | table.insert(list,w1) | |
| 1255 | end | |
| 1256 | ||
| 1257 | if len2 > 0.01 then | |
| 1258 | local w2 = Instance.new('WedgePart', m)
| |
| 1259 | game:GetService("Debris"):AddItem(w2,5)
| |
| 1260 | w2.Material = "SmoothPlastic" | |
| 1261 | w2.FormFactor = 'Custom' | |
| 1262 | w2.BrickColor = BrickColor.new("Really red")
| |
| 1263 | w2.Transparency = 0 | |
| 1264 | w2.Reflectance = 0 | |
| 1265 | w2.Material = "SmoothPlastic" | |
| 1266 | w2.CanCollide = false | |
| 1267 | local l2 = Instance.new("PointLight",w2)
| |
| 1268 | l2.Color = Color3.new(170,0,0) | |
| 1269 | NoOutline(w2) | |
| 1270 | local sz = Vector3.new(0.2, width, len2) | |
| 1271 | w2.Size = sz | |
| 1272 | local sp = Instance.new("SpecialMesh",w2)
| |
| 1273 | sp.MeshType = "Wedge" | |
| 1274 | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size | |
| 1275 | w2:BreakJoints() | |
| 1276 | w2.Anchored = true | |
| 1277 | w2.Parent = workspace | |
| 1278 | w2.Transparency = 0.7 | |
| 1279 | table.insert(Effects,{w2,"Disappear",.01})
| |
| 1280 | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) | |
| 1281 | table.insert(list,w2) | |
| 1282 | end | |
| 1283 | return unpack(list) | |
| 1284 | end | |
| 1285 | ||
| 1286 | ||
| 1287 | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) | |
| 1288 | if hit.Parent==nil then | |
| 1289 | return | |
| 1290 | end | |
| 1291 | h=hit.Parent:FindFirstChild("Humanoid")
| |
| 1292 | for _,v in pairs(hit.Parent:children()) do | |
| 1293 | if v:IsA("Humanoid") then
| |
| 1294 | h=v | |
| 1295 | end | |
| 1296 | end | |
| 1297 | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
| |
| 1298 | h=hit.Parent.Parent:FindFirstChild("Humanoid")
| |
| 1299 | end | |
| 1300 | if hit.Parent.className=="Hat" then | |
| 1301 | hit=hit.Parent.Parent:findFirstChild("Head")
| |
| 1302 | end | |
| 1303 | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
| |
| 1304 | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
| |
| 1305 | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then | |
| 1306 | return | |
| 1307 | end]] | |
| 1308 | -- hs(hit,1.2) | |
| 1309 | c=Instance.new("ObjectValue")
| |
| 1310 | c.Name="creator" | |
| 1311 | c.Value=game:service("Players").LocalPlayer
| |
| 1312 | c.Parent=h | |
| 1313 | game:GetService("Debris"):AddItem(c,.5)
| |
| 1314 | Damage=math.random(minim,maxim) | |
| 1315 | -- h:TakeDamage(Damage) | |
| 1316 | blocked=false | |
| 1317 | block=hit.Parent:findFirstChild("Block")
| |
| 1318 | if block~=nil then | |
| 1319 | print(block.className) | |
| 1320 | if block.className=="NumberValue" then | |
| 1321 | if block.Value>0 then | |
| 1322 | blocked=true | |
| 1323 | if decreaseblock==nil then | |
| 1324 | block.Value=block.Value-1 | |
| 1325 | end | |
| 1326 | end | |
| 1327 | end | |
| 1328 | if block.className=="IntValue" then | |
| 1329 | if block.Value>0 then | |
| 1330 | blocked=true | |
| 1331 | if decreaseblock~=nil then | |
| 1332 | block.Value=block.Value-1 | |
| 1333 | end | |
| 1334 | end | |
| 1335 | end | |
| 1336 | end | |
| 1337 | if blocked==false then | |
| 1338 | -- h:TakeDamage(Damage) | |
| 1339 | h.Health=h.Health-Damage | |
| 1340 | showDamage(hit.Parent,Damage,.5,BrickColor.new("Really red"))
| |
| 1341 | else | |
| 1342 | h.Health=h.Health-(Damage/2) | |
| 1343 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
| |
| 1344 | end | |
| 1345 | if Type=="Knockdown" then | |
| 1346 | hum=hit.Parent.Humanoid | |
| 1347 | hum.PlatformStand=true | |
| 1348 | coroutine.resume(coroutine.create(function(HHumanoid) | |
| 1349 | swait(1) | |
| 1350 | HHumanoid.PlatformStand=false | |
| 1351 | end),hum) | |
| 1352 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
| 1353 | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) | |
| 1354 | local bodvol=Instance.new("BodyVelocity")
| |
| 1355 | bodvol.velocity=angle*knockback | |
| 1356 | bodvol.P=5000 | |
| 1357 | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 1358 | bodvol.Parent=hit | |
| 1359 | rl=Instance.new("BodyAngularVelocity")
| |
| 1360 | rl.P=3000 | |
| 1361 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 1362 | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) | |
| 1363 | rl.Parent=hit | |
| 1364 | game:GetService("Debris"):AddItem(bodvol,.5)
| |
| 1365 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 1366 | elseif Type=="Normal" then | |
| 1367 | vp=Instance.new("BodyVelocity")
| |
| 1368 | vp.P=500 | |
| 1369 | vp.maxForce=Vector3.new(math.huge,0,math.huge) | |
| 1370 | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback | |
| 1371 | if KnockbackType==1 then | |
| 1372 | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 | |
| 1373 | elseif KnockbackType==2 then | |
| 1374 | vp.velocity=Property.CFrame.lookVector*knockback | |
| 1375 | end | |
| 1376 | if knockback>0 then | |
| 1377 | vp.Parent=hit.Parent.Torso | |
| 1378 | end | |
| 1379 | game:GetService("Debris"):AddItem(vp,.5)
| |
| 1380 | elseif Type=="Up" then | |
| 1381 | local bodyVelocity=Instance.new("BodyVelocity")
| |
| 1382 | bodyVelocity.velocity=vt(0,60,0) | |
| 1383 | bodyVelocity.P=5000 | |
| 1384 | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) | |
| 1385 | bodyVelocity.Parent=hit | |
| 1386 | game:GetService("Debris"):AddItem(bodyVelocity,1)
| |
| 1387 | rl=Instance.new("BodyAngularVelocity")
| |
| 1388 | rl.P=3000 | |
| 1389 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
| 1390 | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
| 1391 | rl.Parent=hit | |
| 1392 | game:GetService("Debris"):AddItem(rl,.5)
| |
| 1393 | elseif Type=="Snare" then | |
| 1394 | bp=Instance.new("BodyPosition")
| |
| 1395 | bp.P=2000 | |
| 1396 | bp.D=100 | |
| 1397 | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 1398 | bp.position=hit.Parent.Torso.Position | |
| 1399 | bp.Parent=hit.Parent.Torso | |
| 1400 | game:GetService("Debris"):AddItem(bp,1)
| |
| 1401 | elseif Type=="Target" then | |
| 1402 | if Targetting==false then | |
| 1403 | ZTarget=hit.Parent.Torso | |
| 1404 | coroutine.resume(coroutine.create(function(Part) | |
| 1405 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 1406 | swait(5) | |
| 1407 | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5)
| |
| 1408 | end),ZTarget) | |
| 1409 | TargHum=ZTarget.Parent:findFirstChild("Humanoid")
| |
| 1410 | targetgui=Instance.new("BillboardGui")
| |
| 1411 | targetgui.Parent=ZTarget | |
| 1412 | targetgui.Size=UDim2.new(10,100,10,100) | |
| 1413 | targ=Instance.new("ImageLabel")
| |
| 1414 | targ.Parent=targetgui | |
| 1415 | targ.BackgroundTransparency=1 | |
| 1416 | targ.Image="rbxassetid://4834067" | |
| 1417 | targ.Size=UDim2.new(1,0,1,0) | |
| 1418 | cam.CameraType="Scriptable" | |
| 1419 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1420 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 1421 | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1422 | Targetting=true | |
| 1423 | RocketTarget=ZTarget | |
| 1424 | for i=1,Property do | |
| 1425 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
| 1426 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
| 1427 | swait() | |
| 1428 | end | |
| 1429 | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) | |
| 1430 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) | |
| 1431 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
| 1432 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
| 1433 | end | |
| 1434 | Targetting=false | |
| 1435 | RocketTarget=nil | |
| 1436 | targetgui.Parent=nil | |
| 1437 | cam.CameraType="Custom" | |
| 1438 | end | |
| 1439 | end | |
| 1440 | debounce=Instance.new("BoolValue")
| |
| 1441 | debounce.Name="DebounceHit" | |
| 1442 | debounce.Parent=hit.Parent | |
| 1443 | debounce.Value=true | |
| 1444 | game:GetService("Debris"):AddItem(debounce,Delay)
| |
| 1445 | c=Instance.new("ObjectValue")
| |
| 1446 | c.Name="creator" | |
| 1447 | c.Value=Player | |
| 1448 | c.Parent=h | |
| 1449 | game:GetService("Debris"):AddItem(c,.5)
| |
| 1450 | CRIT=false | |
| 1451 | hitDeb=true | |
| 1452 | AttackPos=6 | |
| 1453 | end | |
| 1454 | end | |
| 1455 | ||
| 1456 | Reaper3 = Instance.new("Model")
| |
| 1457 | Reaper3.Parent = plr.Character | |
| 1458 | Reaper3.Name = "Reaper3" | |
| 1459 | rh3 = Instance.new("Part")
| |
| 1460 | rh3.Parent = Reaper3 | |
| 1461 | rh3.Locked = true | |
| 1462 | rh3.CanCollide = false | |
| 1463 | mesh3 = Instance.new("SpecialMesh")
| |
| 1464 | rh3.formFactor = "Symmetric" | |
| 1465 | mesh3.MeshType = "FileMesh" | |
| 1466 | mesh3.MeshId = "http://www.roblox.com/asset/?id=15123905" | |
| 1467 | mesh3.TextureId = "http://www.roblox.com/asset/?id=15123875" | |
| 1468 | mesh3.Parent = rh3 | |
| 1469 | local weld3 = Instance.new("Weld")
| |
| 1470 | weld3.Parent = rh3 | |
| 1471 | rh3.Transparency = 0 | |
| 1472 | weld3.Part0 = rh3 | |
| 1473 | weld3.Part1 = p.Character.Head | |
| 1474 | weld3.C0 = CFrame.new(-0, -0.6, 0)*CFrame.Angles(0, 0, 0) | |
| 1475 | ||
| 1476 | showDamage=function(Char,Dealt,du,Color) | |
| 1477 | m=Instance.new("Model")
| |
| 1478 | m.Name=tostring(Dealt) | |
| 1479 | h=Instance.new("Humanoid")
| |
| 1480 | h.Health=0 | |
| 1481 | h.MaxHealth=0 | |
| 1482 | h.Parent=m | |
| 1483 | c=Instance.new("Part")
| |
| 1484 | c.Transparency=0 | |
| 1485 | c.BrickColor=Color | |
| 1486 | c.Transparency = 1 | |
| 1487 | c.Name="Head" | |
| 1488 | c.TopSurface=0 | |
| 1489 | c.BottomSurface=0 | |
| 1490 | c.formFactor="Plate" | |
| 1491 | c.Size=Vector3.new(1,.4,1) | |
| 1492 | ||
| 1493 | local txt = Instance.new("BillboardGui", c)
| |
| 1494 | txt.Adornee = c | |
| 1495 | txt.Name = "_status" | |
| 1496 | txt.Size = UDim2.new(2, 0, 1.2, 0) | |
| 1497 | txt.StudsOffset = Vector3.new(-9, 8, 0) | |
| 1498 | local text = Instance.new("TextLabel", txt)
| |
| 1499 | text.Size = UDim2.new(10, 0, 7, 0) | |
| 1500 | text.FontSize = "Size12" | |
| 1501 | text.TextScaled = true | |
| 1502 | text.TextTransparency = 0.5 | |
| 1503 | text.BackgroundTransparency = 1 | |
| 1504 | text.TextTransparency = 0.5 | |
| 1505 | text.TextStrokeTransparency = 0.5 | |
| 1506 | text.Font = "SciFi" | |
| 1507 | text.TextStrokeColor3 = Color3.new(0,0,0) | |
| 1508 | v=Instance.new("Part")
| |
| 1509 | v.Name = "ColorBrick" | |
| 1510 | v.Parent=c | |
| 1511 | v.FormFactor="Symmetric" | |
| 1512 | v.Anchored=true | |
| 1513 | v.CanCollide=false | |
| 1514 | v.BottomSurface="Smooth" | |
| 1515 | v.TopSurface="Smooth" | |
| 1516 | v.Size=Vector3.new(10,5,3) | |
| 1517 | v.Transparency=1 | |
| 1518 | v.CFrame=c.CFrame | |
| 1519 | v.BrickColor=BrickColor.random() | |
| 1520 | v.Transparency=1 | |
| 1521 | text.TextColor3 = maincolor.Color | |
| 1522 | v.Shape="Block" | |
| 1523 | text.Text = tostring(Dealt) | |
| 1524 | ms=Instance.new("CylinderMesh")
| |
| 1525 | ms.Scale=Vector3.new(.8,.8,.8) | |
| 1526 | local hitsounds={"199149137","199149186","199149221","199149235","199149269","199149297"}
| |
| 1527 | local dam = Instance.new("Sound",c)
| |
| 1528 | local rndm=math.random(1,#hitsounds) | |
| 1529 | local r=rndm | |
| 1530 | dam.SoundId = "http://www.roblox.com/asset/?id="..hitsounds[r] | |
| 1531 | dam.Volume = 1.25 | |
| 1532 | dam.Pitch = 1 | |
| 1533 | dam:Play() | |
| 1534 | if CRIT==true then | |
| 1535 | ms.Scale=Vector3.new(1,1.25,1) | |
| 1536 | end | |
| 1537 | ms.Parent=c | |
| 1538 | c.Reflectance=0 | |
| 1539 | Instance.new("BodyGyro").Parent=c
| |
| 1540 | c.Parent=m | |
| 1541 | if Char:findFirstChild("Head")~=nil then
| |
| 1542 | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 1543 | elseif Char.Parent:findFirstChild("Head")~=nil then
| |
| 1544 | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) | |
| 1545 | end | |
| 1546 | f=Instance.new("BodyPosition")
| |
| 1547 | f.P=2000 | |
| 1548 | f.D=100 | |
| 1549 | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) | |
| 1550 | f.position=c.Position+Vector3.new(0,3,0) | |
| 1551 | f.Parent=c | |
| 1552 | game:GetService("Debris"):AddItem(m,.5+du)
| |
| 1553 | c.CanCollide=false | |
| 1554 | m.Parent=workspace | |
| 1555 | c.CanCollide=false | |
| 1556 | end | |
| 1557 | ||
| 1558 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
| 1559 | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
| |
| 1560 | end | |
| 1561 | ||
| 1562 | function SkullEffect(brickcolor,cframe,x1,y1,z1,delay) | |
| 1563 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1564 | prt.Anchored=true | |
| 1565 | prt.CFrame=cframe | |
| 1566 | local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
| |
| 1567 | --http://www.roblox.com/asset/?id=4770560 | |
| 1568 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1569 | CF=prt.CFrame | |
| 1570 | coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) | |
| 1571 | for i=0,1,0.2 do | |
| 1572 | wait() | |
| 1573 | Part.CFrame=CF*cf(0,0,-0.4) | |
| 1574 | end | |
| 1575 | for i=0,1,delay do | |
| 1576 | wait() | |
| 1577 | --Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5) | |
| 1578 | Mesh.Scale=Mesh.Scale | |
| 1579 | end | |
| 1580 | for i=0,1,0.1 do | |
| 1581 | wait() | |
| 1582 | Part.Transparency=i | |
| 1583 | end | |
| 1584 | Part.Parent=nil | |
| 1585 | end),prt,msh,CF) | |
| 1586 | end | |
| 1587 | ||
| 1588 | function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1589 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1590 | prt.Anchored=true | |
| 1591 | prt.Material = "Neon" | |
| 1592 | prt.CFrame=cframe | |
| 1593 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1594 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1595 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1596 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1597 | for i=0,1,delay do | |
| 1598 | swait() | |
| 1599 | Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1600 | Part.Transparency=i | |
| 1601 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1602 | end | |
| 1603 | Part.Parent=nil | |
| 1604 | end),prt,msh) | |
| 1605 | end | |
| 1606 | ||
| 1607 | function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype) | |
| 1608 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1609 | prt.Anchored=true | |
| 1610 | prt.Material = "Neon" | |
| 1611 | prt.CFrame=cframe | |
| 1612 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1613 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1614 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1615 | local rtype = rottype | |
| 1616 | for i=0,1,delay do | |
| 1617 | swait() | |
| 1618 | if rtype == 1 then | |
| 1619 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1) | |
| 1620 | elseif rtype == 2 then | |
| 1621 | prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1) | |
| 1622 | end | |
| 1623 | Part.Transparency=i | |
| 1624 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1625 | end | |
| 1626 | Part.Parent=nil | |
| 1627 | end),prt,msh) | |
| 1628 | end | |
| 1629 | ||
| 1630 | char.Shirt:Destroy() ---SHIRT SCRIPT HERE PANTS TOO! | |
| 1631 | char.Pants:Destroy() | |
| 1632 | shirt = Instance.new("Shirt", char)
| |
| 1633 | shirt.Name = "Shirt" | |
| 1634 | pants = Instance.new("Pants", char)
| |
| 1635 | pants.Name = "Pants" | |
| 1636 | char.Shirt.ShirtTemplate = "rbxassetid://817333972" | |
| 1637 | char.Pants.PantsTemplate = "rbxassetid://817451408" | |
| 1638 | ||
| 1639 | function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1640 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1641 | prt.Anchored=true | |
| 1642 | prt.CFrame=cframe | |
| 1643 | prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1644 | msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1645 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1646 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1647 | for i=0,1,delay do | |
| 1648 | wait() | |
| 1649 | Part.Transparency=i | |
| 1650 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1651 | end | |
| 1652 | Part.Parent=nil | |
| 1653 | end),prt,msh) | |
| 1654 | end | |
| 1655 | ||
| 1656 | function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1657 | local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1658 | prt.Anchored=false | |
| 1659 | prt.CFrame=cframe | |
| 1660 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1661 | local wld=weld(prt,prt,Parent,cframe) | |
| 1662 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1663 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1664 | for i=0,1,delay do | |
| 1665 | wait() | |
| 1666 | Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe | |
| 1667 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1668 | Part.Transparency=i | |
| 1669 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1670 | end | |
| 1671 | Part.Parent=nil | |
| 1672 | end),prt,msh,wld) | |
| 1673 | end | |
| 1674 | ||
| 1675 | function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay) | |
| 1676 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1677 | prt.Anchored=false | |
| 1678 | prt.CFrame=cframe | |
| 1679 | msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1680 | local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0)) | |
| 1681 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1682 | coroutine.resume(coroutine.create(function(Part,Mesh,Weld) | |
| 1683 | for i=0,1,delay do | |
| 1684 | wait() | |
| 1685 | Weld.C0=euler(i*20,0,0) | |
| 1686 | --Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1687 | Part.Transparency=i | |
| 1688 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1689 | end | |
| 1690 | Part.Parent=nil | |
| 1691 | end),prt,msh,wld) | |
| 1692 | end | |
| 1693 | ||
| 1694 | function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1695 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1696 | prt.Anchored=true | |
| 1697 | prt.CFrame=cframe | |
| 1698 | local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1699 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1700 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1701 | for i=0,1,delay do | |
| 1702 | wait() | |
| 1703 | Part.CFrame=Part.CFrame | |
| 1704 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1705 | local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1706 | prt2.Anchored=true | |
| 1707 | prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1708 | local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
| |
| 1709 | game:GetService("Debris"):AddItem(prt2,2)
| |
| 1710 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1711 | for i=0,1,0.1 do | |
| 1712 | wait() | |
| 1713 | Part.CFrame=Part.CFrame*cf(0,0.5,0) | |
| 1714 | end | |
| 1715 | Part.Parent=nil | |
| 1716 | end),prt2,msh2) | |
| 1717 | end | |
| 1718 | for i=0,1,delay*2 do | |
| 1719 | wait() | |
| 1720 | Part.CFrame=Part.CFrame | |
| 1721 | Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i) | |
| 1722 | end | |
| 1723 | Part.Parent=nil | |
| 1724 | end),prt,msh) | |
| 1725 | end | |
| 1726 | ||
| 1727 | function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1728 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1729 | prt.Anchored=true | |
| 1730 | prt.CFrame=cframe | |
| 1731 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1732 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1733 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1734 | for i=0,1,delay do | |
| 1735 | wait() | |
| 1736 | Part.CFrame=Part.CFrame | |
| 1737 | Part.Transparency=i | |
| 1738 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1739 | end | |
| 1740 | Part.Parent=nil | |
| 1741 | end),prt,msh) | |
| 1742 | end | |
| 1743 | ||
| 1744 | function BreakEffect(brickcolor,cframe,x1,y1,z1) | |
| 1745 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1746 | prt.Anchored=true | |
| 1747 | prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
| 1748 | local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
| |
| 1749 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1750 | coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) | |
| 1751 | CF=Part.CFrame | |
| 1752 | Numbb=0 | |
| 1753 | randnumb=math.random()/10 | |
| 1754 | rand1=math.random()/10 | |
| 1755 | for i=0,1,rand1 do | |
| 1756 | wait() | |
| 1757 | CF=CF*cf(0,math.random()/2,0) | |
| 1758 | --Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0) | |
| 1759 | Part.CFrame=CF*euler(Numbb,0,0) | |
| 1760 | Part.Transparency=i | |
| 1761 | Numbb=Numbb+randnumb | |
| 1762 | end | |
| 1763 | Part.Parent=nil | |
| 1764 | end),prt,CF,Numbb,randnumb) | |
| 1765 | end | |
| 1766 | ||
| 1767 | function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1768 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1769 | prt.Anchored=true | |
| 1770 | prt.CFrame=cframe | |
| 1771 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
| |
| 1772 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1773 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1774 | for i=0,1,delay do | |
| 1775 | wait() | |
| 1776 | Part.CFrame=Part.CFrame*euler(0,0.7,0) | |
| 1777 | Part.Transparency=i | |
| 1778 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1779 | end | |
| 1780 | Part.Parent=nil | |
| 1781 | end),prt,msh) | |
| 1782 | end | |
| 1783 | ||
| 1784 | function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay) | |
| 1785 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1786 | prt.Anchored=true | |
| 1787 | prt.CFrame=cframe | |
| 1788 | msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
| |
| 1789 | game:GetService("Debris"):AddItem(prt,2)
| |
| 1790 | coroutine.resume(coroutine.create(function(Part,Mesh) | |
| 1791 | for i=0,1,delay do | |
| 1792 | wait() | |
| 1793 | Part.CFrame=Part.CFrame*cf(0,y3/2,0) | |
| 1794 | Part.Transparency=i | |
| 1795 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 1796 | end | |
| 1797 | Part.Parent=nil | |
| 1798 | end),prt,msh) | |
| 1799 | end | |
| 1800 | ||
| 1801 | function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay) | |
| 1802 | local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 1803 | prt.Anchored=true | |
| 1804 | prt.CFrame=cframe*cf(x,y,z) | |
| 1805 | msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
| |
| 1806 | game:GetService("Debris"):AddItem(prt,5)
| |
| 1807 | coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) | |
| 1808 | local num=math.random() | |
| 1809 | local num2=math.random(-3,2)+math.random() | |
| 1810 | local numm=0 | |
| 1811 | for i=0,1,delay*2 do | |
| 1812 | swait() | |
| 1813 | Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0) | |
| 1814 | Part.Transparency=i | |
| 1815 | numm=numm+0.01 | |
| 1816 | end | |
| 1817 | Part.Parent=nil | |
| 1818 | Mesh.Parent=nil | |
| 1819 | end),prt,msh,x,y,z) | |
| 1820 | end | |
| 1821 | ||
| 1822 | function dmgstart(dmg,what) | |
| 1823 | hitcon = what.Touched:connect(function(hit) | |
| 1824 | local hum = hit.Parent:FindFirstChild("Humanoid")
| |
| 1825 | if hum and not hum:IsDescendantOf(Character) then | |
| 1826 | hum:TakeDamage(dmg) | |
| 1827 | end | |
| 1828 | end) | |
| 1829 | end | |
| 1830 | ||
| 1831 | function dmgstop() | |
| 1832 | hitcon:disconnect() | |
| 1833 | end | |
| 1834 | ||
| 1835 | function Cloak() | |
| 1836 | Face.Parent=nil | |
| 1837 | cloaked=true | |
| 1838 | for _,v in pairs(Torso.Parent:children()) do | |
| 1839 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 1840 | coroutine.resume(coroutine.create(function() | |
| 1841 | for i=0,1,0.2 do | |
| 1842 | wait() | |
| 1843 | v.Transparency=i | |
| 1844 | end | |
| 1845 | v.Transparency=1 | |
| 1846 | end)) | |
| 1847 | end | |
| 1848 | if v.className=="Hat" then | |
| 1849 | hatp=v.Handle | |
| 1850 | coroutine.resume(coroutine.create(function(derp) | |
| 1851 | for i=0,1,0.2 do | |
| 1852 | wait() | |
| 1853 | derp.Transparency=i | |
| 1854 | end | |
| 1855 | derp.Transparency=1 | |
| 1856 | end),hatp) | |
| 1857 | end | |
| 1858 | end | |
| 1859 | for _,v in pairs(m:children()) do | |
| 1860 | if v.className=="Part" then | |
| 1861 | coroutine.resume(coroutine.create(function() | |
| 1862 | for i=0,1,0.2 do | |
| 1863 | wait() | |
| 1864 | v.Transparency=i | |
| 1865 | end | |
| 1866 | v.Transparency=1 | |
| 1867 | end)) | |
| 1868 | end | |
| 1869 | end | |
| 1870 | end | |
| 1871 | ||
| 1872 | function UnCloak() | |
| 1873 | so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
| |
| 1874 | Face.Parent=Head | |
| 1875 | cloaked=false | |
| 1876 | for _,v in pairs(Torso.Parent:children()) do | |
| 1877 | if v.className=="Part" and v.Name~="HumanoidRootPart" then | |
| 1878 | coroutine.resume(coroutine.create(function() | |
| 1879 | for i=0,1,0.1 do | |
| 1880 | wait() | |
| 1881 | v.Transparency=v.Transparency-0.1 | |
| 1882 | end | |
| 1883 | v.Transparency=0 | |
| 1884 | end)) | |
| 1885 | end | |
| 1886 | if v.className=="Hat" then | |
| 1887 | hatp=v.Handle | |
| 1888 | coroutine.resume(coroutine.create(function(derp) | |
| 1889 | for i=0,1,0.1 do | |
| 1890 | wait() | |
| 1891 | derp.Transparency=derp.Transparency-0.1 | |
| 1892 | end | |
| 1893 | derp.Transparency=0 | |
| 1894 | end),hatp) | |
| 1895 | end | |
| 1896 | end | |
| 1897 | for _,v in pairs(m:children()) do | |
| 1898 | if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then | |
| 1899 | coroutine.resume(coroutine.create(function() | |
| 1900 | for i=0,1,0.1 do | |
| 1901 | wait() | |
| 1902 | v.Transparency=v.Transparency-0.1 | |
| 1903 | end | |
| 1904 | v.Transparency=0 | |
| 1905 | end)) | |
| 1906 | v.Transparency=0 | |
| 1907 | end | |
| 1908 | end | |
| 1909 | end | |
| 1910 | ||
| 1911 | function laser() | |
| 1912 | attack = true | |
| 1913 | so("rbxassetid://588738544",sorb,1,1)
| |
| 1914 | for i = 0,2,0.1 do | |
| 1915 | swait() | |
| 1916 | MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1) | |
| 1917 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3) | |
| 1918 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3) | |
| 1919 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
| 1920 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
| 1921 | end | |
| 1922 | local a = Instance.new("Part",Character)
| |
| 1923 | a.BrickColor = maincolor | |
| 1924 | a.Name = "Lazer" | |
| 1925 | a.Anchored = true | |
| 1926 | a.Material = "Neon" | |
| 1927 | a.CanCollide = false | |
| 1928 | local hitbox = Instance.new("Part",char)
| |
| 1929 | hitbox.Size = Vector3.new(5,5,5) | |
| 1930 | hitbox.CFrame = mouse.hit | |
| 1931 | hitbox.Anchored = true | |
| 1932 | hitbox.Transparency = 1 | |
| 1933 | hitbox.CanCollide = false | |
| 1934 | local ray = Ray.new( | |
| 1935 | sorb.CFrame.p, -- origin | |
| 1936 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
| 1937 | ) | |
| 1938 | local ignore = Character | |
| 1939 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 1940 | if hit then | |
| 1941 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1942 | ||
| 1943 | if not humanoid then | |
| 1944 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 1945 | end | |
| 1946 | if humanoid then | |
| 1947 | if humanoid.Parent:IsA"Model" then | |
| 1948 | Damagefunc(hit,10,15,math.random(10,20),"Normal",RootPart,.2,1) | |
| 1949 | end | |
| 1950 | end | |
| 1951 | end | |
| 1952 | a.BottomSurface = 10 | |
| 1953 | a.TopSurface = 10 | |
| 1954 | local distance = (sorb.CFrame.p - position).magnitude | |
| 1955 | a.Size = Vector3.new(1, 1, distance) | |
| 1956 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 1957 | game:GetService("Debris"):AddItem(a, 10)
| |
| 1958 | game:GetService("Debris"):AddItem(hitbox, 1)
| |
| 1959 | local newmesh = Instance.new("BlockMesh",a)
| |
| 1960 | so("rbxassetid://553712898",sorb,1,2)
| |
| 1961 | so("rbxassetid://553712898",sorb,0.5,1.5)
| |
| 1962 | so("rbxassetid://588737825",sorb,0.05,1)
| |
| 1963 | MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15) | |
| 1964 | MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) | |
| 1965 | MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15) | |
| 1966 | for i = 0, 19*2 do | |
| 1967 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.05/2,-0.05/2,0) | |
| 1968 | a.Transparency = a.Transparency + 0.05/2 | |
| 1969 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-40)),.3) | |
| 1970 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(40)),.3) | |
| 1971 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
| 1972 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.3) | |
| 1973 | swait() | |
| 1974 | end | |
| 1975 | attack = false | |
| 1976 | end | |
| 1977 | ||
| 1978 | function weaklaser1() | |
| 1979 | attack = true | |
| 1980 | for i = 0,1,0.1 do | |
| 1981 | swait() | |
| 1982 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(90)),.3) | |
| 1983 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.3) | |
| 1984 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.3) | |
| 1985 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-20)), 0.3) | |
| 1986 | end | |
| 1987 | local a = Instance.new("Part",Character)
| |
| 1988 | a.BrickColor = maincolor | |
| 1989 | a.Name = "Lazer" | |
| 1990 | a.Anchored = true | |
| 1991 | a.Material = "Neon" | |
| 1992 | a.CanCollide = false | |
| 1993 | local hitbox = Instance.new("Part",char)
| |
| 1994 | hitbox.Size = Vector3.new(5,5,5) | |
| 1995 | hitbox.CFrame = mouse.hit | |
| 1996 | hitbox.Anchored = true | |
| 1997 | hitbox.Transparency = 1 | |
| 1998 | hitbox.CanCollide = false | |
| 1999 | local ray = Ray.new( | |
| 2000 | sorb.CFrame.p, -- origin | |
| 2001 | (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction | |
| 2002 | ) | |
| 2003 | local ignore = Character | |
| 2004 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2005 | if hit then | |
| 2006 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2007 | ||
| 2008 | if not humanoid then | |
| 2009 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2010 | end | |
| 2011 | if humanoid then | |
| 2012 | if humanoid.Parent:IsA"Model" then | |
| 2013 | Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1) | |
| 2014 | end | |
| 2015 | end | |
| 2016 | end | |
| 2017 | a.BottomSurface = 10 | |
| 2018 | a.TopSurface = 10 | |
| 2019 | local distance = (sorb.CFrame.p - position).magnitude | |
| 2020 | a.Size = Vector3.new(0.85, 0.85, distance) | |
| 2021 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 2022 | game:GetService("Debris"):AddItem(a, 10)
| |
| 2023 | game:GetService("Debris"):AddItem(hitbox, 1)
| |
| 2024 | local newmesh = Instance.new("BlockMesh",a)
| |
| 2025 | so("rbxassetid://553712898",sorb,1,2.5)
| |
| 2026 | so("rbxassetid://553712898",sorb,1,2)
| |
| 2027 | MagicBlock(maincolor,sorb.CFrame,1,1,1,1.5,1.25,1.25,0.15) | |
| 2028 | MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) | |
| 2029 | attack = false | |
| 2030 | for i = 0, 19 do | |
| 2031 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0) | |
| 2032 | a.Transparency = a.Transparency + 0.05 | |
| 2033 | swait() | |
| 2034 | end | |
| 2035 | end | |
| 2036 | ||
| 2037 | function weaklaser2() | |
| 2038 | attack = true | |
| 2039 | for i = 0,1,0.1 do | |
| 2040 | swait() | |
| 2041 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-90)),.3) | |
| 2042 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.3) | |
| 2043 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(20)), 0.3) | |
| 2044 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 2045 | end | |
| 2046 | local a = Instance.new("Part",Character)
| |
| 2047 | a.BrickColor = maincolor | |
| 2048 | a.Name = "Lazer" | |
| 2049 | a.Anchored = true | |
| 2050 | a.Material = "Neon" | |
| 2051 | a.CanCollide = false | |
| 2052 | local hitbox = Instance.new("Part",char)
| |
| 2053 | hitbox.Size = Vector3.new(5,5,5) | |
| 2054 | hitbox.CFrame = mouse.hit | |
| 2055 | hitbox.Anchored = true | |
| 2056 | hitbox.Transparency = 1 | |
| 2057 | hitbox.CanCollide = false | |
| 2058 | local ray = Ray.new( | |
| 2059 | sorb2.CFrame.p, -- origin | |
| 2060 | (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction | |
| 2061 | ) | |
| 2062 | local ignore = Character | |
| 2063 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2064 | if hit then | |
| 2065 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2066 | ||
| 2067 | if not humanoid then | |
| 2068 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2069 | end | |
| 2070 | if humanoid then | |
| 2071 | if humanoid.Parent:IsA"Model" then | |
| 2072 | Damagefunc(hit,5,8,math.random(10,20),"Normal",RootPart,.2,1) | |
| 2073 | end | |
| 2074 | end | |
| 2075 | end | |
| 2076 | a.BottomSurface = 10 | |
| 2077 | a.TopSurface = 10 | |
| 2078 | local distance = (sorb2.CFrame.p - position).magnitude | |
| 2079 | a.Size = Vector3.new(0.85, 0.85, distance) | |
| 2080 | a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 2081 | game:GetService("Debris"):AddItem(a, 10)
| |
| 2082 | game:GetService("Debris"):AddItem(hitbox, 1)
| |
| 2083 | local newmesh = Instance.new("BlockMesh",a)
| |
| 2084 | so("rbxassetid://553712898",sorb2,1,2.5)
| |
| 2085 | so("rbxassetid://553712898",sorb2,1,2)
| |
| 2086 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,1.5,1.25,1.25,0.15) | |
| 2087 | MagicBlock(maincolor,mouse.Hit,1,1,1,0.5,0.5,0.5,0.05) | |
| 2088 | attack = false | |
| 2089 | for i = 0, 19 do | |
| 2090 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.05,-0.05,0) | |
| 2091 | a.Transparency = a.Transparency + 0.05 | |
| 2092 | swait() | |
| 2093 | end | |
| 2094 | end | |
| 2095 | ||
| 2096 | local smeshmoveenabled = false | |
| 2097 | ||
| 2098 | function groundwave() | |
| 2099 | attack = true | |
| 2100 | smeshmoveenabled = true | |
| 2101 | so("rbxassetid://255679384",sorb2,2,0.98)
| |
| 2102 | for i = 0,10,0.1 do | |
| 2103 | swait() | |
| 2104 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2105 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2106 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1) | |
| 2107 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1) | |
| 2108 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-90)),.1) | |
| 2109 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.1) | |
| 2110 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(90)), 0.1) | |
| 2111 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1) | |
| 2112 | end | |
| 2113 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,1) | |
| 2114 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.1,2) | |
| 2115 | for i = 0,2,0.1 do | |
| 2116 | swait() | |
| 2117 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1) | |
| 2118 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2119 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2120 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3) | |
| 2121 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.3) | |
| 2122 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(70),math.rad(0),math.rad(-90)),.3) | |
| 2123 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(90)),.3) | |
| 2124 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(120)), 0.3) | |
| 2125 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3) | |
| 2126 | end | |
| 2127 | attack = false | |
| 2128 | smeshmoveenabled = false | |
| 2129 | so("rbxassetid://233091205",sorb2,2.25,0.95)
| |
| 2130 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,1) | |
| 2131 | MagicBlockSteady(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,66,66,1,-1,-1,-0.025,0.025,2) | |
| 2132 | for i = 0, 9 do | |
| 2133 | MagicBlock(maincolor,char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*5,1,1,1,-0.025,10,-0.025,0.065) | |
| 2134 | end | |
| 2135 | local faceam = 5 | |
| 2136 | for i = 0, 9 do | |
| 2137 | faceam = faceam + 10 | |
| 2138 | local hitbox = Instance.new("Part",char)
| |
| 2139 | so("rbxassetid://233091205",hitbox,1,2)
| |
| 2140 | hitbox.Size = Vector3.new(15,15,15) | |
| 2141 | hitbox.Material = "Neon" | |
| 2142 | hitbox.BrickColor = maincolor | |
| 2143 | hitbox.CFrame = char.HumanoidRootPart.CFrame + char.HumanoidRootPart.CFrame.lookVector*faceam | |
| 2144 | hitbox.Anchored = true | |
| 2145 | hitbox.Transparency = 1 | |
| 2146 | hitbox.CanCollide = false | |
| 2147 | MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,15,15,-4.5,0.15,math.random(1,2)) | |
| 2148 | MagicBlockSteady(maincolor,hitbox.CFrame + hitbox.CFrame.lookVector,25,25,25,1.5,1.5,0,0.05,math.random(1,2)) | |
| 2149 | game:GetService("Debris"):AddItem(hitbox, 1)
| |
| 2150 | hitbox.Touched:connect(function(hit) | |
| 2151 | Damagefunc(hit,10,11,math.random(10,20),"Normal",RootPart,.2,1) | |
| 2152 | end) | |
| 2153 | wait(0.1) | |
| 2154 | end | |
| 2155 | end | |
| 2156 | ||
| 2157 | function smesh() | |
| 2158 | attack = true | |
| 2159 | smeshmoveenabled = true | |
| 2160 | hum.WalkSpeed = 8 | |
| 2161 | so("rbxassetid://255679384",sorb2,2,0.98)
| |
| 2162 | for i = 0,10,0.1 do | |
| 2163 | swait() | |
| 2164 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2165 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2166 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.1) | |
| 2167 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(25 + 5 * math.cos(sine / 32))),.1) | |
| 2168 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1.75 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(-50)),.1) | |
| 2169 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(45),math.rad(0),math.rad(50)),.1) | |
| 2170 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(15)), 0.1) | |
| 2171 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-180)), 0.1) | |
| 2172 | end | |
| 2173 | for i = 0,2,0.1 do | |
| 2174 | swait() | |
| 2175 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,0.5,0.5,0.5,0.1) | |
| 2176 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2177 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2178 | RH.C0=clerp(RH.C0,cf(1,-1,-0.5)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(50),math.rad(-25 + 5 * math.cos(sine / 32))),.3) | |
| 2179 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(90),math.rad(25 + 5 * math.cos(sine / 32))),.3) | |
| 2180 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(-80)),.3) | |
| 2181 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(35),math.rad(0),math.rad(80)),.3) | |
| 2182 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-15), math.rad(0), math.rad(35)), 0.3) | |
| 2183 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-170)), 0.3) | |
| 2184 | end | |
| 2185 | so("rbxassetid://165969964",sorb2,1.5,0.98)
| |
| 2186 | local hitbox = Instance.new("Part",char)
| |
| 2187 | hitbox.Size = Vector3.new(20,20,20) | |
| 2188 | hitbox.Material = "Neon" | |
| 2189 | hitbox.BrickColor = maincolor | |
| 2190 | hitbox.CFrame = sorb2.CFrame | |
| 2191 | hitbox.Anchored = true | |
| 2192 | hitbox.Transparency = 1 | |
| 2193 | hitbox.CanCollide = false | |
| 2194 | game:GetService("Debris"):AddItem(hitbox, 1)
| |
| 2195 | hitbox.Touched:connect(function(hit) | |
| 2196 | Damagefunc(hit,9,18,math.random(10,20),"Normal",RootPart,.2,1) | |
| 2197 | end) | |
| 2198 | MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.25,1.25,1.25,0.015) | |
| 2199 | MagicBlock(maincolor,sorb2.CFrame,5,5,5,1.5,1.5,1.5,0.025) | |
| 2200 | MagicBlock(maincolor,sorb2.CFrame,10,10,10,5.5,5.5,5.5,0.15) | |
| 2201 | for i = 0, 9 do | |
| 2202 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,-0.025,10,-0.025,0.065) | |
| 2203 | end | |
| 2204 | hum.WalkSpeed = 16 | |
| 2205 | smeshmoveenabled = false | |
| 2206 | attack = false | |
| 2207 | end | |
| 2208 | ||
| 2209 | local begonemoveenabled = false | |
| 2210 | ||
| 2211 | function BEGONETHOT() | |
| 2212 | smeshmoveenabled = true | |
| 2213 | begonemoveenabled = true | |
| 2214 | hum.WalkSpeed = 8 | |
| 2215 | so("rbxassetid://854345294",sorb2,2.5,1)
| |
| 2216 | wait(2) | |
| 2217 | attack = true | |
| 2218 | for i = 0,8,0.1 do | |
| 2219 | swait() | |
| 2220 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2221 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2222 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.1) | |
| 2223 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.1) | |
| 2224 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,5 + 0.15 * math.cos(sine / 25))* angles(math.rad(-50),math.rad(0),math.rad(0)),.1) | |
| 2225 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.1) | |
| 2226 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.1) | |
| 2227 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.1) | |
| 2228 | end | |
| 2229 | for i = 0,2,0.1 do | |
| 2230 | swait() | |
| 2231 | MagicBlock(maincolor,sorb2.CFrame,1,1,1,2.5,2.5,2.5,0.1) | |
| 2232 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2233 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2234 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.3) | |
| 2235 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.3) | |
| 2236 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1 + 0.15 * math.cos(sine / 25))* angles(math.rad(90),math.rad(0),math.rad(0)),.3) | |
| 2237 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
| 2238 | RW.C0 = clerp(RW.C0, CFrame.new(1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.3) | |
| 2239 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 1, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.3) | |
| 2240 | end | |
| 2241 | so("rbxassetid://165969964",sorb2,3.5,0.98)
| |
| 2242 | local hitbox = Instance.new("Part",char)
| |
| 2243 | hitbox.Size = Vector3.new(75,75,75) | |
| 2244 | hitbox.Material = "Neon" | |
| 2245 | hitbox.BrickColor = maincolor | |
| 2246 | hitbox.CFrame = sorb2.CFrame | |
| 2247 | hitbox.Anchored = true | |
| 2248 | hitbox.Transparency = 1 | |
| 2249 | hitbox.CanCollide = false | |
| 2250 | game:GetService("Debris"):AddItem(hitbox, 1)
| |
| 2251 | hitbox.Touched:connect(function(hit) | |
| 2252 | Damagefunc(hit,888,1337,math.random(10,20),"Normal",RootPart,.2,1) | |
| 2253 | end) | |
| 2254 | MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.25*2.5,1.25*2.5,1.25*2.5,0.015) | |
| 2255 | MagicBlock(maincolor,sorb2.CFrame,5*2.5,5*2.5,5*2.5,1.5*2.5,1.5*2.5,1.5*2.5,0.025) | |
| 2256 | MagicBlock(maincolor,sorb2.CFrame,10*2.5,10*2.5,10*2.5,5.5*2.5,5.5*2.5,5.5*2.5,0.15) | |
| 2257 | for i = 0, 9 do | |
| 2258 | MagicBlock(maincolor,sorb2.CFrame,1*2.5,1*2.5,1*2.5,-0.025*2.5,10*2.5,-0.025*2.5,0.065) | |
| 2259 | end | |
| 2260 | hum.WalkSpeed = 16 | |
| 2261 | begonemoveenabled = false | |
| 2262 | smeshmoveenabled = false | |
| 2263 | attack = false | |
| 2264 | end | |
| 2265 | ||
| 2266 | function doomsdaylaser() | |
| 2267 | attack = true | |
| 2268 | for i = 0,1,0.1 do | |
| 2269 | swait() | |
| 2270 | MagicBlock(maincolor,sorb.CFrame,1,1,1,0.25,0.25,0.25,0.1) | |
| 2271 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
| 2272 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(70)),.3) | |
| 2273 | RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(180)), 0.3) | |
| 2274 | LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-50)), 0.3) | |
| 2275 | end | |
| 2276 | local a = Instance.new("Part",Character)
| |
| 2277 | a.BrickColor = maincolor | |
| 2278 | a.Name = "Lazer" | |
| 2279 | a.Anchored = true | |
| 2280 | a.Transparency = 1 | |
| 2281 | a.Material = "Neon" | |
| 2282 | a.CanCollide = false | |
| 2283 | local hitbox = Instance.new("Part",char)
| |
| 2284 | hitbox.Size = Vector3.new(10,10,10) | |
| 2285 | hitbox.Material = "Neon" | |
| 2286 | hitbox.BrickColor = maincolor | |
| 2287 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
| 2288 | hitbox.Anchored = true | |
| 2289 | hitbox.Transparency = 1 | |
| 2290 | hitbox.CanCollide = false | |
| 2291 | local hmesh = CreateMesh(hitbox,"Sphere",1,1,1) | |
| 2292 | so("rbxassetid://136007472",sorb,1,0.7)
| |
| 2293 | for i = 0, 19 do | |
| 2294 | swait() | |
| 2295 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
| 2296 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
| 2297 | MagicBlock(maincolor,hitbox.CFrame,10,10,10,1.15,1.15,1.15,0.15) | |
| 2298 | hitbox.Transparency = hitbox.Transparency - 0.05 | |
| 2299 | end | |
| 2300 | for i = 0, 49 do | |
| 2301 | swait() | |
| 2302 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
| 2303 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
| 2304 | end | |
| 2305 | a.Transparency = 0 | |
| 2306 | local ray = Ray.new( | |
| 2307 | hitbox.CFrame.p, -- origin | |
| 2308 | (mouse.Hit.p - hitbox.CFrame.p).unit * 500 -- direction | |
| 2309 | ) | |
| 2310 | local ignore = Character | |
| 2311 | local hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2312 | if hit then | |
| 2313 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2314 | ||
| 2315 | if not humanoid then | |
| 2316 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2317 | end | |
| 2318 | if humanoid then | |
| 2319 | if humanoid.Parent:IsA"Model" then | |
| 2320 | Damagefunc(hit,25,35,math.random(10,20),"Normal",RootPart,.2,1) | |
| 2321 | end | |
| 2322 | end | |
| 2323 | end | |
| 2324 | a.BottomSurface = 10 | |
| 2325 | a.TopSurface = 10 | |
| 2326 | local distance = (sorb.CFrame.p - position).magnitude | |
| 2327 | a.Size = Vector3.new(1, 1, distance) | |
| 2328 | a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 2329 | game:GetService("Debris"):AddItem(a, 15)
| |
| 2330 | game:GetService("Debris"):AddItem(hitbox, 15)
| |
| 2331 | local newmesh = Instance.new("BlockMesh",a)
| |
| 2332 | so("rbxassetid://553712898",sorb,3.5,1)
| |
| 2333 | so("rbxassetid://553712898",sorb,0.5,0.5)
| |
| 2334 | so("rbxassetid://588737825",sorb,2.75,1)
| |
| 2335 | MagicBlock(maincolor,sorb.CFrame,1,1,1,5,5,5,0.15) | |
| 2336 | MagicBlock(maincolor,mouse.Hit,1,1,1,2.5,2.5,2.5,0.05) | |
| 2337 | MagicBlock(maincolor,mouse.Hit,1,1,1,1.5,1.5,1.5,0.15) | |
| 2338 | local beamscale = 1.5 | |
| 2339 | local sizemax = 1*10 | |
| 2340 | for i = 0, 99 do | |
| 2341 | hitbox.CFrame = sorb.CFrame + Vector3.new(0,6.25,0) | |
| 2342 | sizemax = sizemax - 0.01*10 | |
| 2343 | beamscale = beamscale - 0.01 | |
| 2344 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(0),math.rad(0),math.rad(-70)),.3) | |
| 2345 | so("rbxassetid://553712898",sorb,0.5,2.5)
| |
| 2346 | ray = Ray.new( | |
| 2347 | hitbox.CFrame.p, -- origin | |
| 2348 | (mouse.Hit.p - hitbox.CFrame.p).unit * 2000 -- direction | |
| 2349 | ) | |
| 2350 | hit, position, normal = workspace:FindPartOnRay(ray, ignore) | |
| 2351 | distance = (hitbox.CFrame.p - position).magnitude | |
| 2352 | if hit then | |
| 2353 | local humanoid = hit.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2354 | ||
| 2355 | if not humanoid then | |
| 2356 | humanoid = hit.Parent.Parent:FindFirstChildOfClass("Humanoid")
| |
| 2357 | end | |
| 2358 | if humanoid then | |
| 2359 | if humanoid.Parent:IsA"Model" then | |
| 2360 | Damagefunc(hit,15,17,math.random(10,20),"Normal",RootPart,.2,1) | |
| 2361 | end | |
| 2362 | end | |
| 2363 | end | |
| 2364 | a.Size = Vector3.new(5, 5, distance) | |
| 2365 | hmesh.Scale = hmesh.Scale - Vector3.new(0.01,0.01,0.01) | |
| 2366 | a.CFrame = CFrame.new(hitbox.CFrame.p, position) * CFrame.new(0, 0, -distance / 2) | |
| 2367 | newmesh.Scale = newmesh.Scale + Vector3.new(-0.01,-0.01,0) | |
| 2368 | MagicBlock(maincolor,mouse.Hit,sizemax,sizemax,sizemax,beamscale,beamscale,beamscale,0.05) | |
| 2369 | swait() | |
| 2370 | end | |
| 2371 | attack = false | |
| 2372 | end | |
| 2373 | local attacktype = 0 | |
| 2374 | mouse.Button1Down:connect(function() | |
| 2375 | if attack == false and attacktype == 0 and begonemoveenabled == false then | |
| 2376 | attacktype = 1 | |
| 2377 | weaklaser1() | |
| 2378 | elseif attack == false and attacktype == 1 and begonemoveenabled == false then | |
| 2379 | attacktype = 0 | |
| 2380 | weaklaser2() | |
| 2381 | end | |
| 2382 | end) | |
| 2383 | ||
| 2384 | mouse.KeyDown:connect(function(k) | |
| 2385 | if k == "z" and attack == false and begonemoveenabled == false then | |
| 2386 | laser() | |
| 2387 | end | |
| 2388 | if k == "x" and attack == false and begonemoveenabled == false then | |
| 2389 | groundwave() | |
| 2390 | end | |
| 2391 | if k == "g" and attack == false and begonemoveenabled == false then | |
| 2392 | EndTheWorldBaby() | |
| 2393 | end | |
| 2394 | if k == "c" and attack == false and begonemoveenabled == false then | |
| 2395 | smesh() | |
| 2396 | end | |
| 2397 | if k == "v" and attack == false and begonemoveenabled == false then | |
| 2398 | doomsdaylaser() | |
| 2399 | end | |
| 2400 | if k == "p" and attack == false and begonemoveenabled == false then | |
| 2401 | BEGONETHOT() | |
| 2402 | end | |
| 2403 | end) | |
| 2404 | ||
| 2405 | Humanoid.Animator.Parent = nil | |
| 2406 | ||
| 2407 | attack = true | |
| 2408 | hum.WalkSpeed = 0 | |
| 2409 | hum.MaxHealth = math.huge | |
| 2410 | hum.Health = math.huge | |
| 2411 | for i = 0,10,0.05 do | |
| 2412 | swait() | |
| 2413 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2414 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2415 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-30)),.025) | |
| 2416 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(30)),.025) | |
| 2417 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(-30),math.rad(0),math.rad(0)),.025) | |
| 2418 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.025) | |
| 2419 | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(-130)), 0.025) | |
| 2420 | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5, -0.5) * angles(math.rad(0), math.rad(10), math.rad(130)), 0.025) | |
| 2421 | end | |
| 2422 | MagicBlock(maincolor,t.CFrame,10,10,10,1.5,1.5,1.5,0.025) | |
| 2423 | MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.015) | |
| 2424 | MagicBlock(maincolor,t.CFrame,10,10,10,1.75,1.75,1.75,0.05) | |
| 2425 | MagicBlock(maincolor,t.CFrame,10,10,10,2,2,2,0.076) | |
| 2426 | so("rbxassetid://588737825",t,0.5,1)
| |
| 2427 | so("rbxassetid://588737825",t,0.5,1)
| |
| 2428 | so("rbxassetid://588698460",t,1,0.5)
| |
| 2429 | so("rbxassetid://440794203",t,1,1)
| |
| 2430 | so("rbxassetid://553712898",t,1,0.85)
| |
| 2431 | so("rbxassetid://553712898",t,1.5,0.5)
| |
| 2432 | so("rbxassetid://553712898",t,1.5,0.25)
| |
| 2433 | so("rbxassetid://553712898",t,1.5,0.15)
| |
| 2434 | for i = 0,10,0.05 do | |
| 2435 | swait() | |
| 2436 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2437 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2438 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.125) | |
| 2439 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.025) | |
| 2440 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))* angles(math.rad(20),math.rad(0),math.rad(0)),.125) | |
| 2441 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-20),math.rad(0),math.rad(0)),.125) | |
| 2442 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(-20), math.rad(85)), 0.125) | |
| 2443 | LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(20), math.rad(-85)), 0.125) | |
| 2444 | end | |
| 2445 | attack = false | |
| 2446 | hum.WalkSpeed = 16 | |
| 2447 | hum.MaxHealth = 250 | |
| 2448 | hum.Health = 250 | |
| 2449 | ||
| 2450 | idleanim=.4 | |
| 2451 | while true do | |
| 2452 | swait() | |
| 2453 | sine = sine + change | |
| 2454 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 2455 | local velderp=RootPart.Velocity.y | |
| 2456 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
| 2457 | if equipped==true or equipped==false then | |
| 2458 | if attack==false then | |
| 2459 | idle=idle+1 | |
| 2460 | else | |
| 2461 | idle=0 | |
| 2462 | end | |
| 2463 | if idle>=500 then | |
| 2464 | if attack==false then | |
| 2465 | --Sheath() | |
| 2466 | end | |
| 2467 | end | |
| 2468 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
| 2469 | Anim="Jump" | |
| 2470 | if attack==false then | |
| 2471 | Neck.C0=clerp(Neck.C0,necko*euler(-0.2,0,0),.3) | |
| 2472 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 2473 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 2474 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(-.5,0,0.5)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
| 2475 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2476 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(-.5,0,-0.5),.3) | |
| 2477 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2478 | RH.C0=clerp(RH.C0,cf(1,-1,-.3)*euler(-0.5,1.57,0)*euler(-.2,0,0),.2) | |
| 2479 | LH.C0=clerp(LH.C0,cf(-1,-1,-.3)*euler(-0.5,-1.57,0)*euler(-.2,0,0),.2) | |
| 2480 | end | |
| 2481 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
| 2482 | Anim="Fall" | |
| 2483 | if attack==false then | |
| 2484 | Neck.C0=clerp(Neck.C0,necko*euler(0.4,0,0),.3) | |
| 2485 | Neck.C1=clerp(Neck.C1,necko2*euler(0,0,0),.3) | |
| 2486 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0.25)*angles(math.rad(5),math.rad(0),math.rad(0)),.3) | |
| 2487 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*euler(0.3,0,0.2)*angles(math.rad(-25),math.rad(0),math.rad(0)),.3) | |
| 2488 | RW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2489 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*euler(0.3,0,-0.2),.3) | |
| 2490 | LW.C1=clerp(LW.C1,cf(0,0.5,0)*euler(0,0,0),.3) | |
| 2491 | RH.C0=clerp(RH.C0,cf(1,-1,0)*euler(0.4,1.57,0),.2) | |
| 2492 | LH.C0=clerp(LH.C0,cf(-1,-1,0)*euler(-0.2,-1.57,0),.2) | |
| 2493 | end | |
| 2494 | elseif torvel<1 and hitfloor~=nil then | |
| 2495 | Anim="Idle" | |
| 2496 | if smeshmoveenabled == false then | |
| 2497 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3) | |
| 2498 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(20),math.rad(0 + 5 * math.cos(sine / 32))),.3) | |
| 2499 | MagicBlock(maincolor,llegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2500 | MagicBlock(maincolor,rlegw.CFrame,0.5,0.5,0.5,0.25,0.25,0.25,0.15) | |
| 2501 | end | |
| 2502 | if attack==false then | |
| 2503 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(0),math.rad(-5),math.rad(-35)),.3) | |
| 2504 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(5),math.rad(35)),.3) | |
| 2505 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3) | |
| 2506 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-15),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3) | |
| 2507 | end | |
| 2508 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
| 2509 | Anim="Walk" | |
| 2510 | if smeshmoveenabled == false then | |
| 2511 | RH.C0=clerp(RH.C0,cf(1,-1,-0.25)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3) | |
| 2512 | LH.C0=clerp(LH.C0,cf(-1,-0.25,-0.5)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(-5 + 5 * math.cos(sine / 32))),.3) | |
| 2513 | MagicBlock(maincolor,llegw.CFrame,1,1,1,0.25,0.25,0.25,0.5) | |
| 2514 | MagicBlock(maincolor,rlegw.CFrame,1,1,1,0.25,0.25,0.25,0.5) | |
| 2515 | MagicBlock(maincolor,llegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15) | |
| 2516 | MagicBlock(maincolor,rlegw.CFrame,1,1,1,-0.05,-0.05,-0.05,0.15) | |
| 2517 | end | |
| 2518 | if attack==false then | |
| 2519 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,1 + 0.15 * math.cos(sine / 25))*angles(math.rad(15),math.rad(0),math.rad(0)),.3) | |
| 2520 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 2521 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(12.5 + 2.5 * math.cos(sine / 24))),.3) | |
| 2522 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-35),math.rad(0),math.rad(-12.5 - 2.5 * math.cos(sine / 32))),.3) | |
| 2523 | end | |
| 2524 | elseif torvel>=22 and hitfloor~=nil then | |
| 2525 | Anim="Run" | |
| 2526 | RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
| 2527 | LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3) | |
| 2528 | if attack==false then | |
| 2529 | RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3) | |
| 2530 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
| 2531 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3) | |
| 2532 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3) | |
| 2533 | end | |
| 2534 | end | |
| 2535 | end | |
| 2536 | end |