SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do | |
| 6 | print("FE Compatibility code V2 by Mokiros")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | i = tostring(math.random(0,10000)) | |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | ||
| 87 | local h,t | |
| 88 | --Give the server mouse data every second frame, but only if the values changed | |
| 89 | --If player is not moving their mouse, client won't fire events | |
| 90 | local HB = game:GetService("RunService").Heartbeat
| |
| 91 | while true do | |
| 92 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 93 | h,t=Mouse.Hit,Mouse.Target | |
| 94 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 95 | end | |
| 96 | --Wait 2 frames | |
| 97 | for i=1,2 do | |
| 98 | HB:Wait() | |
| 99 | end | |
| 100 | end]==],script) | |
| 101 | ||
| 102 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 103 | --Real game object | |
| 104 | local RealGame = game | |
| 105 | ||
| 106 | --Metatable for fake service | |
| 107 | local FakeService_Metatable = {
| |
| 108 | __index = function(self,k) | |
| 109 | local s = rawget(self,"_RealService") | |
| 110 | if s then | |
| 111 | return typeof(s[k])=="function" | |
| 112 | and function(_,...)return s[k](s,...)end or s[k] | |
| 113 | end | |
| 114 | end, | |
| 115 | __newindex = function(self,k,v) | |
| 116 | local s = rawget(self,"_RealService") | |
| 117 | if s then s[k]=v end | |
| 118 | end | |
| 119 | } | |
| 120 | local function FakeService(t,RealService) | |
| 121 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 122 | return setmetatable(t,FakeService_Metatable) | |
| 123 | end | |
| 124 | ||
| 125 | --Fake game object | |
| 126 | local FakeGame = {
| |
| 127 | GetService = function(self,s) | |
| 128 | return rawget(self,s) or RealGame:GetService(s) | |
| 129 | end, | |
| 130 | Players = FakeService({
| |
| 131 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 132 | },"Players"), | |
| 133 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 134 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 135 | RunService = FakeService({
| |
| 136 | _btrs = {},
| |
| 137 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 138 | BindToRenderStep = function(self,name,_,fun) | |
| 139 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 140 | end, | |
| 141 | UnbindFromRenderStep = function(self,name) | |
| 142 | self._btrs[name]:Disconnect() | |
| 143 | end, | |
| 144 | },"RunService") | |
| 145 | } | |
| 146 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 147 | FakeGame.service = FakeGame.GetService | |
| 148 | FakeService(FakeGame,game) | |
| 149 | --Changing owner to fake player object to support owner:GetMouse() | |
| 150 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 151 | end | |
| 152 | local p = game:GetService("Players").LocalPlayer
| |
| 153 | local char = p.Character | |
| 154 | local mouse = p:GetMouse() | |
| 155 | local larm = char["Left Arm"] | |
| 156 | local rarm = char["Right Arm"] | |
| 157 | local lleg = char["Left Leg"] | |
| 158 | local rleg = char["Right Leg"] | |
| 159 | local hed = char.Head | |
| 160 | local torso = char.Torso | |
| 161 | local hum = char.Humanoid | |
| 162 | local cam = game.Workspace.CurrentCamera | |
| 163 | local root = char.HumanoidRootPart | |
| 164 | local deb = false | |
| 165 | local shot = 0 | |
| 166 | local stanceToggle = "Normal" | |
| 167 | local l = game:GetService("Lighting")
| |
| 168 | local rs = game:GetService("RunService").RenderStepped
| |
| 169 | hum.DisplayDistanceType = "None" | |
| 170 | math.randomseed(os.time()) | |
| 171 | for i,v in pairs(char:children()) do | |
| 172 | if v:IsA("Hat") then
| |
| 173 | v:Destroy() | |
| 174 | end | |
| 175 | end | |
| 176 | for i,v in pairs (hed:GetChildren()) do | |
| 177 | if v:IsA("Sound") then
| |
| 178 | v:Destroy() | |
| 179 | end | |
| 180 | end | |
| 181 | ---------------------------------------------------- | |
| 182 | Debounces = {
| |
| 183 | CanAttack = true; | |
| 184 | CanJoke = true; | |
| 185 | NoIdl = false; | |
| 186 | Slashing = false; | |
| 187 | Slashed = false; | |
| 188 | Slapping = false; | |
| 189 | Slapped = false; | |
| 190 | ks = false; | |
| 191 | } | |
| 192 | ---------------------------------------------------- | |
| 193 | function weld5(part0, part1, c0, c1) | |
| 194 | weeld=Instance.new("Weld", part0)
| |
| 195 | weeld.Part0=part0 | |
| 196 | weeld.Part1=part1 | |
| 197 | weeld.C0=c0 | |
| 198 | weeld.C1=c1 | |
| 199 | return weeld | |
| 200 | end | |
| 201 | ---------------------------------------------------- | |
| 202 | mod4 = Instance.new("Model",char)
| |
| 203 | ||
| 204 | ptez = {0.7, 0.8, 0.9, 1}
| |
| 205 | ||
| 206 | function FindNearestTorso(Position,Distance,SinglePlayer) | |
| 207 | if SinglePlayer then return(SinglePlayer.Torso.CFrame.p -Position).magnitude < Distance end | |
| 208 | local List = {}
| |
| 209 | for i,v in pairs(workspace:GetChildren())do | |
| 210 | if v:IsA("Model")then
| |
| 211 | if v:findFirstChild("Torso")then
| |
| 212 | if v ~= char then | |
| 213 | if(v.Torso.Position -Position).magnitude <= Distance then | |
| 214 | table.insert(List,v) | |
| 215 | end | |
| 216 | end | |
| 217 | end | |
| 218 | end | |
| 219 | end | |
| 220 | return List | |
| 221 | end | |
| 222 | ---------------------------------------------------- | |
| 223 | GroundWave3 = function() | |
| 224 | local HandCF = CFrame.new(root.Position - Vector3.new(0,0,0)) * CFrame.Angles(0,0,0) | |
| 225 | local wave1 = Instance.new("Part", torso)
| |
| 226 | wave1.BrickColor = BrickColor.new("Really black")
| |
| 227 | wave1.Anchored = true | |
| 228 | wave1.CanCollide = false | |
| 229 | wave1.Locked = true | |
| 230 | wave1.Material = "Neon" | |
| 231 | wave1.Size = Vector3.new(1, 1, 1) | |
| 232 | wave1.TopSurface = "Smooth" | |
| 233 | wave1.BottomSurface = "Smooth" | |
| 234 | wave1.Transparency = 0.35 | |
| 235 | wave1.CFrame = HandCF | |
| 236 | wm = Instance.new("SpecialMesh", wave1)
| |
| 237 | wm.Scale = Vector3.new(.1,.1,.1) | |
| 238 | wm.MeshType = "Sphere" | |
| 239 | coroutine.wrap(function() | |
| 240 | for i = 1, 20, 1 do | |
| 241 | wm.Scale = Vector3.new(2 + i*2, 2 + i*2, 2 + i*2) | |
| 242 | --wave1.Size = wm.Scale | |
| 243 | wave1.CFrame = HandCF | |
| 244 | wave1.Transparency = i/20 | |
| 245 | wait() | |
| 246 | end | |
| 247 | wait() | |
| 248 | wave1:Destroy() | |
| 249 | end)() | |
| 250 | end | |
| 251 | local HandCF = CFrame.new(root.Position - Vector3.new(0,3,0)) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0)) | |
| 252 | local wave = Instance.new("Part", torso)
| |
| 253 | wave.BrickColor = BrickColor.new("New Yeller")
| |
| 254 | wave.Anchored = true | |
| 255 | wave.CanCollide = false | |
| 256 | wave.Locked = true | |
| 257 | wave.Size = Vector3.new(1, 1, 1) | |
| 258 | wave.TopSurface = "Smooth" | |
| 259 | wave.BottomSurface = "Smooth" | |
| 260 | wave.Transparency = 0.8 | |
| 261 | wave.CFrame = HandCF | |
| 262 | wm = Instance.new("SpecialMesh", wave)
| |
| 263 | wm.MeshId = "rbxassetid://3270017" | |
| 264 | coroutine.wrap(function() | |
| 265 | for i = 1, 14, 1 do | |
| 266 | wm.Scale = Vector3.new(1 + i*1.1, 1 + i*1.1, 1) | |
| 267 | wave.Size = wm.Scale | |
| 268 | wave.CFrame = HandCF | |
| 269 | wave.Transparency = i/14 | |
| 270 | wait() | |
| 271 | end | |
| 272 | wait() | |
| 273 | wave:Destroy() | |
| 274 | end)() | |
| 275 | ---------------------------------------------------- | |
| 276 | function lerp(a, b, t) -- Linear interpolation | |
| 277 | return a + (b - a)*t | |
| 278 | end | |
| 279 | ||
| 280 | function slerp(a, b, t) --Spherical interpolation | |
| 281 | dot = a:Dot(b) | |
| 282 | if dot > 0.99999 or dot < -0.99999 then | |
| 283 | return t <= 0.5 and a or b | |
| 284 | else | |
| 285 | r = math.acos(dot) | |
| 286 | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) | |
| 287 | end | |
| 288 | end | |
| 289 | ||
| 290 | function matrixInterpolate(a, b, t) | |
| 291 | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() | |
| 292 | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() | |
| 293 | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position | |
| 294 | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right | |
| 295 | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up | |
| 296 | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back | |
| 297 | local t = v1:Dot(v2) | |
| 298 | if not (t < 0 or t == 0 or t > 0) then -- Failsafe | |
| 299 | return CFrame.new() | |
| 300 | end | |
| 301 | return CFrame.new( | |
| 302 | v0.x, v0.y, v0.z, | |
| 303 | v1.x, v1.y, v1.z, | |
| 304 | v2.x, v2.y, v2.z, | |
| 305 | v3.x, v3.y, v3.z) | |
| 306 | end | |
| 307 | ---------------------------------------------------- | |
| 308 | function genWeld(a,b) | |
| 309 | local w = Instance.new("Weld",a)
| |
| 310 | w.Part0 = a | |
| 311 | w.Part1 = b | |
| 312 | return w | |
| 313 | end | |
| 314 | function weld(a, b) | |
| 315 | local weld = Instance.new("Weld")
| |
| 316 | weld.Name = "W" | |
| 317 | weld.Part0 = a | |
| 318 | weld.Part1 = b | |
| 319 | weld.C0 = a.CFrame:inverse() * b.CFrame | |
| 320 | weld.Parent = a | |
| 321 | return weld; | |
| 322 | end | |
| 323 | ---------------------------------------------------- | |
| 324 | function Lerp(c1,c2,al) | |
| 325 | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
| |
| 326 | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
| |
| 327 | for i,v in pairs(com1) do | |
| 328 | com1[i] = v+(com2[i]-v)*al | |
| 329 | end | |
| 330 | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) | |
| 331 | end | |
| 332 | ---------------------------------------------------- | |
| 333 | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) | |
| 334 | local wld = Instance.new("Weld", wp1)
| |
| 335 | wld.Part0 = wp0 | |
| 336 | wld.Part1 = wp1 | |
| 337 | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) | |
| 338 | end | |
| 339 | ---------------------------------------------------- | |
| 340 | local AddInstance = function(Object, ...) | |
| 341 | local Obj = Instance.new(Object) | |
| 342 | for i,v in next,(...) do | |
| 343 | Obj[i] = v | |
| 344 | end | |
| 345 | return Obj | |
| 346 | end | |
| 347 | ---------------------------------------------------- | |
| 348 | larm.Size = larm.Size * 4.5 | |
| 349 | rarm.Size = rarm.Size * 4.5 | |
| 350 | lleg.Size = lleg.Size * 4.5 | |
| 351 | rleg.Size = rleg.Size * 4.5 | |
| 352 | torso.Size = torso.Size * 4.5 | |
| 353 | hed.Size = hed.Size * 4.5 | |
| 354 | root.Size = root.Size * 4.5 | |
| 355 | ---------------------------------------------------- | |
| 356 | newWeld(torso, larm, -1.5, 0.5, 0) | |
| 357 | larm.Weld.C1 = CFrame.new(5.2,0.5,0) | |
| 358 | newWeld(torso, rarm, 1.5, 0.5, 0) | |
| 359 | rarm.Weld.C1 = CFrame.new(-5.2, 0.5, 0) | |
| 360 | newWeld(torso, hed, 0, 6.8, 0) | |
| 361 | newWeld(torso, lleg, -0.5, -1, 0) | |
| 362 | lleg.Weld.C1 = CFrame.new(1.7, 8, 0) | |
| 363 | newWeld(torso, rleg, 0.5, -1, 0) | |
| 364 | rleg.Weld.C1 = CFrame.new(-1.7, 8, 0) | |
| 365 | newWeld(root, torso, 0, 0, 0) | |
| 366 | torso.Weld.C1 = CFrame.new(0, 0, 0) | |
| 367 | ---------------------------------------------------- | |
| 368 | --local SIDz = {"167985102"}, 167161785, 148274436
| |
| 369 | z = Instance.new("Sound",char)
| |
| 370 | z.SoundId = "rbxassetid://238510574"--..SIDz[math.random(1,#SIDz)] | |
| 371 | z.Looped = true | |
| 372 | z.Volume = math.huge | |
| 373 | z.Pitch = .72 | |
| 374 | wait(1) | |
| 375 | z:Play() | |
| 376 | hum.WalkSpeed = 16 | |
| 377 | ---------------------------------------------------- | |
| 378 | local Eye1 = AddInstance("Part",{
| |
| 379 | Name = "Eye1", | |
| 380 | Parent = hed, | |
| 381 | CFrame = hed.CFrame, | |
| 382 | Color = Color3.new(255,0,0), | |
| 383 | Material = "Neon", | |
| 384 | formFactor = "Symmetric", | |
| 385 | Size = Vector3.new(1, 1, 1), | |
| 386 | CanCollide = false, | |
| 387 | Shape = "Ball", | |
| 388 | TopSurface = "Smooth", | |
| 389 | BottomSurface = "Smooth", | |
| 390 | Locked = true, | |
| 391 | }) | |
| 392 | local Weld = AddInstance("Weld",{
| |
| 393 | Parent = Eye1, | |
| 394 | Part0 = hed, | |
| 395 | C0 = CFrame.new(-0.7, 0.6, -3.8)*CFrame.Angles(0, 0, 0), | |
| 396 | Part1 = Eye1, | |
| 397 | }) | |
| 398 | local Eye2 = AddInstance("Part",{
| |
| 399 | Name = "Eye2", | |
| 400 | Parent = hed, | |
| 401 | CFrame = hed.CFrame, | |
| 402 | Color = Color3.new(255,0,0), | |
| 403 | Material = "Neon", | |
| 404 | formFactor = "Symmetric", | |
| 405 | Size = Vector3.new(1, 1, 1), | |
| 406 | CanCollide = false, | |
| 407 | Shape = "Ball", | |
| 408 | TopSurface = "Smooth", | |
| 409 | BottomSurface = "Smooth", | |
| 410 | Locked = true, | |
| 411 | }) | |
| 412 | local Weld = AddInstance("Weld",{
| |
| 413 | Parent = Eye2, | |
| 414 | Part0 = hed, | |
| 415 | C0 = CFrame.new(0.7, 0.6, -3.8)*CFrame.Angles(0, 0, 0), | |
| 416 | Part1 = Eye2, | |
| 417 | }) | |
| 418 | local Reaper = AddInstance("Part",{
| |
| 419 | Parent = hed, | |
| 420 | CFrame = hed.CFrame, | |
| 421 | formFactor = "Symmetric", | |
| 422 | Size = Vector3.new(1, 1, 1), | |
| 423 | CanCollide = false, | |
| 424 | TopSurface = "Smooth", | |
| 425 | BottomSurface = "Smooth", | |
| 426 | Locked = true, | |
| 427 | }) | |
| 428 | local Weld = AddInstance("Weld",{
| |
| 429 | Parent = Reaper, | |
| 430 | Part0 = hed, | |
| 431 | C0 = CFrame.new(0, 1, 0)*CFrame.Angles(0, 0, 0), | |
| 432 | Part1 = Reaper, | |
| 433 | }) | |
| 434 | local Mesh = AddInstance("SpecialMesh",{
| |
| 435 | Parent = Reaper, | |
| 436 | MeshId = "rbxassetid://16150814", | |
| 437 | TextureId = "rbxassetid://16150799", | |
| 438 | Scale = Vector3.new(5.181, 5.181, 5.181), | |
| 439 | VertexColor = Vector3.new(0.3, 0.3, 0.3), | |
| 440 | }) | |
| 441 | ---------------------------------------------------- | |
| 442 | local o1 = AddInstance("Model",{
| |
| 443 | Name = "Genkadda", | |
| 444 | Parent = char, | |
| 445 | }) | |
| 446 | local o2 = AddInstance("Part",{
| |
| 447 | Name = "Handle", | |
| 448 | Parent = o1, | |
| 449 | Material = Enum.Material.Granite, | |
| 450 | BrickColor = BrickColor.new("Black"),
| |
| 451 | CanCollide = false, | |
| 452 | Size = Vector3.new(0.54285717, 4.96428585, 1.02857149), | |
| 453 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 454 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 455 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 456 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 457 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 458 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 459 | Color = Color3.new(0.105882, 0.164706, 0.207843), | |
| 460 | Locked = true, | |
| 461 | }) | |
| 462 | local o3 = AddInstance("Part",{
| |
| 463 | Parent = o1, | |
| 464 | Material = Enum.Material.Granite, | |
| 465 | BrickColor = BrickColor.new("Really black"),
| |
| 466 | CanCollide = false, | |
| 467 | Size = Vector3.new(0.521428645, 0.200000003, 4.92857265), | |
| 468 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 469 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 470 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 471 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 472 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 473 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 474 | Color = Color3.new(0.0666667, 0.0666667, 0.0666667), | |
| 475 | Locked = true, | |
| 476 | }) | |
| 477 | local Weld = AddInstance("Weld",{
| |
| 478 | Parent = o3, | |
| 479 | Part0 = o2, | |
| 480 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 481 | Part1 = o3, | |
| 482 | C1 = CFrame.new(7.12578583, -2.70594311, -56.9015656, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 483 | }) | |
| 484 | local o6 = AddInstance("Part",{
| |
| 485 | Name = "8", | |
| 486 | Parent = o1, | |
| 487 | Material = Enum.Material.Neon, | |
| 488 | BrickColor = BrickColor.new("New Yeller"),
| |
| 489 | CanCollide = false, | |
| 490 | Size = Vector3.new(0.864285767, 0.221428677, 5.65714407), | |
| 491 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 492 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 493 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 494 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 495 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 496 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 497 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 498 | Locked = true, | |
| 499 | }) | |
| 500 | local Weld = AddInstance("Weld",{
| |
| 501 | Parent = o6, | |
| 502 | Part0 = o2, | |
| 503 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 504 | Part1 = o6, | |
| 505 | C1 = CFrame.new(7.12578583, -2.68451595, -56.9015579, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 506 | }) | |
| 507 | local o8 = AddInstance("Part",{
| |
| 508 | Name = "20", | |
| 509 | Parent = o1, | |
| 510 | Material = Enum.Material.Neon, | |
| 511 | BrickColor = BrickColor.new("New Yeller"),
| |
| 512 | CanCollide = false, | |
| 513 | Size = Vector3.new(0.54285717, 0.657142878, 1.02857149), | |
| 514 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 515 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 516 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 517 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 518 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 519 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 520 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 521 | Locked = true, | |
| 522 | }) | |
| 523 | local Weld = AddInstance("Weld",{
| |
| 524 | Parent = o8, | |
| 525 | Part0 = o2, | |
| 526 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 527 | Part1 = o8, | |
| 528 | C1 = CFrame.new(7.12578964, 2.69762135, -56.9015579, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 529 | }) | |
| 530 | local o10 = AddInstance("Part",{
| |
| 531 | Name = "15", | |
| 532 | Parent = o1, | |
| 533 | Material = Enum.Material.Neon, | |
| 534 | BrickColor = BrickColor.new("New Yeller"),
| |
| 535 | CanCollide = false, | |
| 536 | Size = Vector3.new(0.54285717, 0.657142937, 2.02857161), | |
| 537 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 538 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 539 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 540 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 541 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 542 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 543 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 544 | Locked = true, | |
| 545 | }) | |
| 546 | local Weld = AddInstance("Weld",{
| |
| 547 | Parent = o10, | |
| 548 | Part0 = o2, | |
| 549 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 550 | Part1 = o10, | |
| 551 | C1 = CFrame.new(7.12578773, 2.69762325, -55.3730087, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 552 | }) | |
| 553 | local o11 = AddInstance("SpecialMesh",{
| |
| 554 | Parent = o10, | |
| 555 | MeshType = Enum.MeshType.Wedge, | |
| 556 | }) | |
| 557 | o12 = AddInstance("Part",{
| |
| 558 | Name = "10", | |
| 559 | Parent = o1, | |
| 560 | Material = Enum.Material.Neon, | |
| 561 | BrickColor = BrickColor.new("New Yeller"),
| |
| 562 | CanCollide = false, | |
| 563 | Size = Vector3.new(0.54285717, 0.657142878, 2.02857161), | |
| 564 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 565 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 566 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 567 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 568 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 569 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 570 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 571 | Locked = true, | |
| 572 | }) | |
| 573 | local Weld = AddInstance("Weld",{
| |
| 574 | Parent = o12, | |
| 575 | Part0 = o2, | |
| 576 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 577 | Part1 = o12, | |
| 578 | C1 = CFrame.new(-7.12579155, 2.69761753, 58.4300995, 0.999990702, -0.00427576201, 0.000560929009, 0.00055484724, -0.00142344052, -0.999998868, 0.0042765555, 0.999989867, -0.00142105494), | |
| 579 | }) | |
| 580 | local o13 = AddInstance("SpecialMesh",{
| |
| 581 | Parent = o12, | |
| 582 | MeshType = Enum.MeshType.Wedge, | |
| 583 | }) | |
| 584 | local o14 = AddInstance("Part",{
| |
| 585 | Name = "9", | |
| 586 | Parent = o1, | |
| 587 | Material = Enum.Material.Neon, | |
| 588 | BrickColor = BrickColor.new("New Yeller"),
| |
| 589 | CanCollide = false, | |
| 590 | Size = Vector3.new(0.54285717, 1.11428583, 0.371428579), | |
| 591 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 592 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 593 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 594 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 595 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 596 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 597 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 598 | Locked = true, | |
| 599 | }) | |
| 600 | local Weld = AddInstance("Weld",{
| |
| 601 | Parent = o14, | |
| 602 | Part0 = o2, | |
| 603 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 604 | Part1 = o14, | |
| 605 | C1 = CFrame.new(7.12578201, 2.12619781, -56.2015648, -0.999990702, 0.00427558692, -0.000560841348, 0.00055476022, -0.00142335275, -0.999998868, -0.00427637994, -0.999989867, 0.00142096763), | |
| 606 | }) | |
| 607 | local o15 = AddInstance("SpecialMesh",{
| |
| 608 | Parent = o14, | |
| 609 | MeshType = Enum.MeshType.Wedge, | |
| 610 | }) | |
| 611 | o16 = AddInstance("Part",{
| |
| 612 | Name = "6", | |
| 613 | Parent = o1, | |
| 614 | Material = Enum.Material.Neon, | |
| 615 | BrickColor = BrickColor.new("New Yeller"),
| |
| 616 | CanCollide = false, | |
| 617 | Size = Vector3.new(0.54285717, 1.11428583, 0.371428579), | |
| 618 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 619 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 620 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 621 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 622 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 623 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 624 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 625 | Locked = true, | |
| 626 | }) | |
| 627 | local Weld = AddInstance("Weld",{
| |
| 628 | Parent = o16, | |
| 629 | Part0 = o2, | |
| 630 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 631 | Part1 = o16, | |
| 632 | C1 = CFrame.new(-7.12579536, 2.12619114, 57.6015701, 0.999990702, -0.00427576201, 0.000560841581, 0.000554759463, -0.0014235276, -0.999998868, 0.0042765555, 0.999989867, -0.00142114237), | |
| 633 | }) | |
| 634 | local o17 = AddInstance("SpecialMesh",{
| |
| 635 | Parent = o16, | |
| 636 | MeshType = Enum.MeshType.Wedge, | |
| 637 | }) | |
| 638 | o18 = AddInstance("Part",{
| |
| 639 | Name = "21", | |
| 640 | Parent = o1, | |
| 641 | Material = Enum.Material.Neon, | |
| 642 | BrickColor = BrickColor.new("New Yeller"),
| |
| 643 | CanCollide = false, | |
| 644 | Size = Vector3.new(0.564285755, 0.257142901, 0.514285743), | |
| 645 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 646 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 647 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 648 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 649 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 650 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 651 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 652 | Locked = true, | |
| 653 | }) | |
| 654 | local Weld = AddInstance("Weld",{
| |
| 655 | Parent = o18, | |
| 656 | Part0 = o2, | |
| 657 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 658 | Part1 = o18, | |
| 659 | C1 = CFrame.new(-7.12578964, 2.24047565, 57.1586876, 0.999990702, -0.00427576201, 0.000560841581, 0.000554759463, -0.0014235276, -0.999998868, 0.0042765555, 0.999989867, -0.00142114237), | |
| 660 | }) | |
| 661 | local o19 = AddInstance("SpecialMesh",{
| |
| 662 | Parent = o18, | |
| 663 | MeshType = Enum.MeshType.Wedge, | |
| 664 | }) | |
| 665 | o20 = AddInstance("Part",{
| |
| 666 | Name = "13", | |
| 667 | Parent = o1, | |
| 668 | Material = Enum.Material.Neon, | |
| 669 | BrickColor = BrickColor.new("New Yeller"),
| |
| 670 | CanCollide = false, | |
| 671 | Size = Vector3.new(0.564285755, 0.257142901, 0.514285743), | |
| 672 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 673 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 674 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 675 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 676 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 677 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 678 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 679 | Locked = true, | |
| 680 | }) | |
| 681 | local Weld = AddInstance("Weld",{
| |
| 682 | Parent = o20, | |
| 683 | Part0 = o2, | |
| 684 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 685 | Part1 = o20, | |
| 686 | C1 = CFrame.new(7.1258049, 2.24045849, -56.6443939, -0.999990702, 0.00427594269, -0.000560964399, 0.000554880884, -0.00142379443, -0.999998868, -0.00427673617, -0.999989867, 0.00142140849), | |
| 687 | }) | |
| 688 | local o21 = AddInstance("SpecialMesh",{
| |
| 689 | Parent = o20, | |
| 690 | MeshType = Enum.MeshType.Wedge, | |
| 691 | }) | |
| 692 | o22 = AddInstance("Part",{
| |
| 693 | Name = "16", | |
| 694 | Parent = o1, | |
| 695 | Material = Enum.Material.Neon, | |
| 696 | BrickColor = BrickColor.new("New Yeller"),
| |
| 697 | CanCollide = false, | |
| 698 | Size = Vector3.new(0.564285755, 1.73571444, 0.200000003), | |
| 699 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 700 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 701 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 702 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 703 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 704 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 705 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 706 | Locked = true, | |
| 707 | }) | |
| 708 | local Weld = AddInstance("Weld",{
| |
| 709 | Parent = o22, | |
| 710 | Part0 = o2, | |
| 711 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 712 | Part1 = o22, | |
| 713 | C1 = CFrame.new(7.1258049, 1.38688946, -56.830143, -0.999990702, 0.00427594269, -0.000560964399, 0.000554880884, -0.00142379443, -0.999998868, -0.00427673617, -0.999989867, 0.00142140849), | |
| 714 | }) | |
| 715 | local o23 = AddInstance("SpecialMesh",{
| |
| 716 | Parent = o22, | |
| 717 | Scale = Vector3.new(1, 1, 0.714285672), | |
| 718 | MeshType = Enum.MeshType.Wedge, | |
| 719 | }) | |
| 720 | o24 = AddInstance("Part",{
| |
| 721 | Name = "14", | |
| 722 | Parent = o1, | |
| 723 | Material = Enum.Material.Neon, | |
| 724 | BrickColor = BrickColor.new("New Yeller"),
| |
| 725 | CanCollide = false, | |
| 726 | Size = Vector3.new(0.564285755, 1.73571444, 0.200000003), | |
| 727 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 728 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 729 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 730 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 731 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 732 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 733 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 734 | Locked = true, | |
| 735 | }) | |
| 736 | local Weld = AddInstance("Weld",{
| |
| 737 | Parent = o24, | |
| 738 | Part0 = o2, | |
| 739 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 740 | Part1 = o24, | |
| 741 | C1 = CFrame.new(-7.12580872, 1.38689709, 56.9729919, 0.999990702, -0.0042760619, 0.000560866669, 0.000554783503, -0.00142366707, -0.999998868, 0.00427685538, 0.999989867, -0.00142128149), | |
| 742 | }) | |
| 743 | local o25 = AddInstance("SpecialMesh",{
| |
| 744 | Parent = o24, | |
| 745 | Scale = Vector3.new(1, 1, 0.714285672), | |
| 746 | MeshType = Enum.MeshType.Wedge, | |
| 747 | }) | |
| 748 | o26 = AddInstance("Part",{
| |
| 749 | Name = "4", | |
| 750 | Parent = o1, | |
| 751 | Material = Enum.Material.Neon, | |
| 752 | BrickColor = BrickColor.new("New Yeller"),
| |
| 753 | CanCollide = false, | |
| 754 | Size = Vector3.new(0.54285717, 0.657142878, 1.02857149), | |
| 755 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 756 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 757 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 758 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 759 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 760 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 761 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 762 | Locked = true, | |
| 763 | }) | |
| 764 | local Weld = AddInstance("Weld",{
| |
| 765 | Parent = o26, | |
| 766 | Part0 = o2, | |
| 767 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 768 | Part1 = o26, | |
| 769 | C1 = CFrame.new(-7.12579346, 2.69762135, 57.9301262, 0.999990702, -0.00427576201, 0.000560929009, 0.00055484724, -0.00142344052, -0.999998868, 0.0042765555, 0.999989867, -0.00142105494), | |
| 770 | }) | |
| 771 | local o27 = AddInstance("SpecialMesh",{
| |
| 772 | Parent = o26, | |
| 773 | MeshType = Enum.MeshType.Wedge, | |
| 774 | }) | |
| 775 | o28 = AddInstance("Part",{
| |
| 776 | Name = "11", | |
| 777 | Parent = o1, | |
| 778 | Material = Enum.Material.Neon, | |
| 779 | BrickColor = BrickColor.new("New Yeller"),
| |
| 780 | CanCollide = false, | |
| 781 | Size = Vector3.new(0.864285767, 0.657142937, 1.02857149), | |
| 782 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 783 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 784 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 785 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 786 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 787 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 788 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 789 | Locked = true, | |
| 790 | }) | |
| 791 | local Weld = AddInstance("Weld",{
| |
| 792 | Parent = o28, | |
| 793 | Part0 = o2, | |
| 794 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 795 | Part1 = o28, | |
| 796 | C1 = CFrame.new(7.12579346, 59.387291, -2.07380676, -0.999990702, 0.00427573128, -0.000560924469, 0.00427652476, 0.999989867, -0.00142105541, 0.000554842758, -0.00142344099, -0.999998868), | |
| 797 | }) | |
| 798 | local o29 = AddInstance("SpecialMesh",{
| |
| 799 | Parent = o28, | |
| 800 | MeshType = Enum.MeshType.Wedge, | |
| 801 | }) | |
| 802 | o30 = AddInstance("Part",{
| |
| 803 | Name = "17", | |
| 804 | Parent = o1, | |
| 805 | Material = Enum.Material.Granite, | |
| 806 | BrickColor = BrickColor.new("Really black"),
| |
| 807 | CanCollide = false, | |
| 808 | Size = Vector3.new(0.542999983, 20, 3.02900004), | |
| 809 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 810 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 811 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 812 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 813 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 814 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 815 | Color = Color3.new(0.0666667, 0.0666667, 0.0666667), | |
| 816 | Locked = true, | |
| 817 | }) | |
| 818 | local Weld = AddInstance("Weld",{
| |
| 819 | Parent = o30, | |
| 820 | Part0 = o2, | |
| 821 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 822 | Part1 = o30, | |
| 823 | C1 = CFrame.new(7.1257782, -12.6132841, -56.901535, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 824 | }) | |
| 825 | local o32 = AddInstance("Part",{
| |
| 826 | Name = "3", | |
| 827 | Parent = o1, | |
| 828 | Material = Enum.Material.Neon, | |
| 829 | BrickColor = BrickColor.new("New Yeller"),
| |
| 830 | CanCollide = false, | |
| 831 | Size = Vector3.new(0.864285767, 0.657142937, 1.02857149), | |
| 832 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 833 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 834 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 835 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 836 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 837 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 838 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 839 | Locked = true, | |
| 840 | }) | |
| 841 | local Weld = AddInstance("Weld",{
| |
| 842 | Parent = o32, | |
| 843 | Part0 = o2, | |
| 844 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 845 | Part1 = o32, | |
| 846 | C1 = CFrame.new(-7.12579155, -54.4158592, -2.07380486, 0.999990702, -0.00427573407, 0.000560930872, -0.00427652756, -0.999989867, 0.00142105471, 0.000554849161, -0.00142344029, -0.999998868), | |
| 847 | }) | |
| 848 | local o33 = AddInstance("SpecialMesh",{
| |
| 849 | Parent = o32, | |
| 850 | MeshType = Enum.MeshType.Wedge, | |
| 851 | }) | |
| 852 | o34 = AddInstance("Part",{
| |
| 853 | Name = "18", | |
| 854 | Parent = o1, | |
| 855 | Material = Enum.Material.Neon, | |
| 856 | BrickColor = BrickColor.new("New Yeller"),
| |
| 857 | CanCollide = false, | |
| 858 | Size = Vector3.new(0.400000006, 6.11428595, 5.03142834), | |
| 859 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 860 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 861 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 862 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 863 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 864 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 865 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 866 | Locked = true, | |
| 867 | }) | |
| 868 | local Weld = AddInstance("Weld",{
| |
| 869 | Parent = o34, | |
| 870 | Part0 = o2, | |
| 871 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 872 | Part1 = o34, | |
| 873 | C1 = CFrame.new(-7.12446594, -25.670372, 56.9022903, 0.999990761, -0.00427558692, 0.000561015506, 0.000554933562, -0.00142352702, -0.999998868, 0.00427638087, 0.999989927, -0.00142114121), | |
| 874 | }) | |
| 875 | local o35 = AddInstance("SpecialMesh",{
| |
| 876 | Parent = o34, | |
| 877 | MeshType = Enum.MeshType.Wedge, | |
| 878 | }) | |
| 879 | o36 = AddInstance("Part",{
| |
| 880 | Name = "7", | |
| 881 | Parent = o1, | |
| 882 | Material = Enum.Material.Granite, | |
| 883 | BrickColor = BrickColor.new("Really black"),
| |
| 884 | CanCollide = false, | |
| 885 | Size = Vector3.new(0.542999983, 4.11428595, 3.03142834), | |
| 886 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 887 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 888 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 889 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 890 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 891 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 892 | Color = Color3.new(0.0666667, 0.0666667, 0.0666667), | |
| 893 | Locked = true, | |
| 894 | }) | |
| 895 | local Weld = AddInstance("Weld",{
| |
| 896 | Parent = o36, | |
| 897 | Part0 = o2, | |
| 898 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 899 | Part1 = o36, | |
| 900 | C1 = CFrame.new(-7.12448502, -24.6703815, 56.9065475, 0.999990761, -0.00427558692, 0.000561015506, 0.000554933562, -0.00142352702, -0.999998868, 0.00427638087, 0.999989927, -0.00142114121), | |
| 901 | }) | |
| 902 | local o37 = AddInstance("SpecialMesh",{
| |
| 903 | Parent = o36, | |
| 904 | MeshType = Enum.MeshType.Wedge, | |
| 905 | }) | |
| 906 | local o38 = AddInstance("Part",{
| |
| 907 | Name = "19", | |
| 908 | Parent = o1, | |
| 909 | Material = Enum.Material.Neon, | |
| 910 | BrickColor = BrickColor.new("New Yeller"),
| |
| 911 | CanCollide = false, | |
| 912 | Size = Vector3.new(4.54285717, 5.01428556, 1.02857161), | |
| 913 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 914 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 915 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 916 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 917 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 918 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 919 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 920 | Locked = true, | |
| 921 | }) | |
| 922 | local Weld = AddInstance("Weld",{
| |
| 923 | Parent = o38, | |
| 924 | Part0 = o2, | |
| 925 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 926 | Part1 = o38, | |
| 927 | C1 = CFrame.new(2.95587444, -56.843811, -7.12423134, -0.000554800034, 0.00142350839, 0.999998927, -0.00427680276, -0.999989867, 0.0014211227, 0.999990702, -0.00427600928, 0.000560882385), | |
| 928 | }) | |
| 929 | local o39 = AddInstance("SpecialMesh",{
| |
| 930 | Parent = o38, | |
| 931 | MeshId = "http://www.roblox.com/asset?id=156292343", | |
| 932 | Scale = Vector3.new(7, 7, 15), | |
| 933 | MeshType = Enum.MeshType.FileMesh, | |
| 934 | }) | |
| 935 | local o40 = AddInstance("Part",{
| |
| 936 | Name = "12", | |
| 937 | Parent = o1, | |
| 938 | Material = Enum.Material.Neon, | |
| 939 | BrickColor = BrickColor.new("New Yeller"),
| |
| 940 | CanCollide = false, | |
| 941 | Size = Vector3.new(4.54285717, 5.01428556, 1.02857161), | |
| 942 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 943 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 944 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 945 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 946 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 947 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 948 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 949 | Locked = true, | |
| 950 | }) | |
| 951 | local Weld = AddInstance("Weld",{
| |
| 952 | Parent = o40, | |
| 953 | Part0 = o2, | |
| 954 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 955 | Part1 = o40, | |
| 956 | C1 = CFrame.new(-12.5559368, 56.88451, -7.11906242, 0.000555172679, -0.00142338919, -0.999998868, 0.00427656481, 0.999989867, -0.00142100221, 0.999990702, -0.00427577086, 0.000561254215), | |
| 957 | }) | |
| 958 | local o41 = AddInstance("SpecialMesh",{
| |
| 959 | Parent = o40, | |
| 960 | MeshId = "rbxassetid://430139732", | |
| 961 | Scale = Vector3.new(0.100000001, 0.100000001, 0.100000001), | |
| 962 | MeshType = Enum.MeshType.FileMesh, | |
| 963 | }) | |
| 964 | local o42 = AddInstance("Part",{
| |
| 965 | Name = "2", | |
| 966 | Parent = o1, | |
| 967 | Material = Enum.Material.Neon, | |
| 968 | BrickColor = BrickColor.new("New Yeller"),
| |
| 969 | CanCollide = false, | |
| 970 | Size = Vector3.new(0.400000006, 20, 5.02900028), | |
| 971 | BackSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 972 | BottomSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 973 | FrontSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 974 | LeftSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 975 | RightSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 976 | TopSurface = Enum.SurfaceType.SmoothNoOutlines, | |
| 977 | Color = Color3.new(0.972549, 0.972549, 0.972549), | |
| 978 | Locked = true, | |
| 979 | }) | |
| 980 | local Weld = AddInstance("Weld",{
| |
| 981 | Parent = o42, | |
| 982 | Part0 = o2, | |
| 983 | C0 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 984 | Part1 = o42, | |
| 985 | C1 = CFrame.new(7.1257782, -12.6132774, -56.9015694, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 986 | }) | |
| 987 | ---------------------------------------------------- | |
| 988 | local cor = AddInstance("Part",{
| |
| 989 | Parent = char.Genkadda, | |
| 990 | Name = "Thingy", | |
| 991 | Locked = true, | |
| 992 | BottomSurface = 0, | |
| 993 | CanCollide = false, | |
| 994 | Size = Vector3.new(5.5, 5.5, 5.5), | |
| 995 | Transparency = 1, | |
| 996 | TopSurface = 0, | |
| 997 | }) | |
| 998 | local corw = AddInstance("Weld",{
| |
| 999 | Parent = cor, | |
| 1000 | Part0 = rarm, | |
| 1001 | Part1 = cor, | |
| 1002 | C0 = CFrame.new(0, -3, 0) * CFrame.Angles(0,0,0), | |
| 1003 | C1 = CFrame.new(0, 0, 0) * CFrame.Angles(0,0,0), | |
| 1004 | }) | |
| 1005 | local weld1 = AddInstance("Weld",{
| |
| 1006 | Parent = char.Genkadda, | |
| 1007 | Part0 = cor, | |
| 1008 | Part1 = o2, | |
| 1009 | C0 = CFrame.new(-7, 57, 0), | |
| 1010 | C1 = CFrame.new(7.12578773, -0.113092422, -56.9015541, -0.999990702, 0.00427567447, -0.000560928893, 0.00055484724, -0.00142344052, -0.999998868, -0.00427646795, -0.999989867, 0.00142105494), | |
| 1011 | }) | |
| 1012 | ---------------------------------------------------- | |
| 1013 | function Vanish() | |
| 1014 | for i = 1, 10 do wait() | |
| 1015 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
| 1016 | if v:IsA("Part") or v:IsA("WedgePart") then
| |
| 1017 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
| 1018 | v.Transparency = v.Transparency + 0.1 | |
| 1019 | ||
| 1020 | end | |
| 1021 | end | |
| 1022 | end | |
| 1023 | end | |
| 1024 | end | |
| 1025 | ---------------------------------------------------- | |
| 1026 | function Appear() | |
| 1027 | for i = 1, 10 do wait() | |
| 1028 | for i,v in pairs(char.Genkadda:GetChildren()) do | |
| 1029 | if v:IsA("Part") or v:IsA("WedgePart") then
| |
| 1030 | if v.Name ~= "HitBox" or v.Name ~= "Thingy" then | |
| 1031 | v.Transparency = v.Transparency - 0.1 | |
| 1032 | end | |
| 1033 | end | |
| 1034 | end | |
| 1035 | end | |
| 1036 | end | |
| 1037 | ---------------------------------------------------- | |
| 1038 | local player = game:GetService("Players").LocalPlayer
| |
| 1039 | local pchar = player.Character | |
| 1040 | local mouse = player:GetMouse() | |
| 1041 | local cam = workspace.CurrentCamera | |
| 1042 | ||
| 1043 | local keysDown = {}
| |
| 1044 | local flySpeed = 0 | |
| 1045 | local MAX_FLY_SPEED = 80 | |
| 1046 | ||
| 1047 | local canFly = false | |
| 1048 | local flyToggled = false | |
| 1049 | ||
| 1050 | local forward, side = 0, 0 | |
| 1051 | local lastForward, lastSide = 0, 0 | |
| 1052 | ||
| 1053 | local floatBP = Instance.new("BodyPosition")
| |
| 1054 | floatBP.maxForce = Vector3.new(0, math.huge, 0) | |
| 1055 | local flyBV = Instance.new("BodyVelocity")
| |
| 1056 | flyBV.maxForce = Vector3.new(9e9, 9e9, 9e9) | |
| 1057 | local turnBG = Instance.new("BodyGyro")
| |
| 1058 | turnBG.maxTorque = Vector3.new(math.huge, math.huge, math.huge) | |
| 1059 | ||
| 1060 | mouse.KeyDown:connect(function(key) | |
| 1061 | keysDown[key] = true | |
| 1062 | ||
| 1063 | if key == "f" then | |
| 1064 | flyToggled = not flyToggled | |
| 1065 | ||
| 1066 | if not flyToggled then | |
| 1067 | stanceToggle = "Normal" | |
| 1068 | floatBP.Parent = nil | |
| 1069 | flyBV.Parent = nil | |
| 1070 | turnBG.Parent = nil | |
| 1071 | root.Velocity = Vector3.new() | |
| 1072 | pchar.Humanoid.PlatformStand = false | |
| 1073 | end | |
| 1074 | end | |
| 1075 | ||
| 1076 | end) | |
| 1077 | mouse.KeyUp:connect(function(key) | |
| 1078 | keysDown[key] = nil | |
| 1079 | end) | |
| 1080 | ||
| 1081 | local function updateFly() | |
| 1082 | ||
| 1083 | if not flyToggled then return end | |
| 1084 | ||
| 1085 | lastForward = forward | |
| 1086 | lastSide = side | |
| 1087 | ||
| 1088 | forward = 0 | |
| 1089 | side = 0 | |
| 1090 | ||
| 1091 | if keysDown.w then | |
| 1092 | forward = forward + 1 | |
| 1093 | end | |
| 1094 | if keysDown.s then | |
| 1095 | forward = forward - 1 | |
| 1096 | end | |
| 1097 | if keysDown.a then | |
| 1098 | side = side - 1 | |
| 1099 | end | |
| 1100 | if keysDown.d then | |
| 1101 | side = side + 1 | |
| 1102 | end | |
| 1103 | ||
| 1104 | canFly = (forward ~= 0 or side ~= 0) | |
| 1105 | ||
| 1106 | if canFly then | |
| 1107 | stanceToggle = "Floating" | |
| 1108 | turnBG.Parent = root | |
| 1109 | floatBP.Parent = nil | |
| 1110 | flyBV.Parent = root | |
| 1111 | ||
| 1112 | flySpeed = flySpeed + 1 + (flySpeed / MAX_FLY_SPEED) | |
| 1113 | if flySpeed > MAX_FLY_SPEED then flySpeed = MAX_FLY_SPEED end | |
| 1114 | else | |
| 1115 | floatBP.position = root.Position | |
| 1116 | floatBP.Parent = root | |
| 1117 | ||
| 1118 | flySpeed = flySpeed - 1 | |
| 1119 | if flySpeed < 0 then flySpeed = 0 end | |
| 1120 | end | |
| 1121 | ||
| 1122 | local camCF = cam.CoordinateFrame | |
| 1123 | local in_forward = canFly and forward or lastForward | |
| 1124 | local in_side = canFly and side or lastSide | |
| 1125 | ||
| 1126 | flyBV.velocity = ((camCF.lookVector * in_forward) + (camCF * CFrame.new(in_side, | |
| 1127 | in_forward * 0.2, 0).p) - camCF.p) * flySpeed | |
| 1128 | ||
| 1129 | turnBG.cframe = camCF * CFrame.Angles(-math.rad(forward * (flySpeed / MAX_FLY_SPEED)), 0, | |
| 1130 | 0) | |
| 1131 | end | |
| 1132 | ||
| 1133 | game:service'RunService'.RenderStepped:connect(function() | |
| 1134 | if flyToggled then | |
| 1135 | pchar.Humanoid.PlatformStand = true | |
| 1136 | end | |
| 1137 | updateFly() | |
| 1138 | end) | |
| 1139 | ---------------------------------------------------- | |
| 1140 | o42.Touched:connect(function(ht) | |
| 1141 | hit = ht.Parent | |
| 1142 | if ht and hit:IsA("Model") then
| |
| 1143 | if hit:FindFirstChild("Humanoid") then
| |
| 1144 | if hit.Name ~= p.Name then | |
| 1145 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1146 | Debounces.Slashed = true | |
| 1147 | hit:FindFirstChild("Humanoid"):TakeDamage(math.huge)
| |
| 1148 | wait(.3) | |
| 1149 | Debounces.Slashed = false | |
| 1150 | end | |
| 1151 | end | |
| 1152 | end | |
| 1153 | elseif ht and hit:IsA("Hat") then
| |
| 1154 | if hit.Parent.Name ~= p.Name then | |
| 1155 | if hit.Parent:FindFirstChild("Humanoid") then
| |
| 1156 | if Debounces.Slashing == true and Debounces.Slashed == false then | |
| 1157 | Debounces.Slashed = true | |
| 1158 | hit.Parent:FindFirstChild("Humanoid"):TakeDamage(math.huge)
| |
| 1159 | wait(.3) | |
| 1160 | Debounces.Slashed = false | |
| 1161 | end | |
| 1162 | end | |
| 1163 | end | |
| 1164 | end | |
| 1165 | end) | |
| 1166 | ---------------------------------------------------- | |
| 1167 | ptz = {0.7, 0.8, 0.9, 1}
| |
| 1168 | idz = {"161006212", "161006195"}
| |
| 1169 | mouse.KeyDown:connect(function(key) | |
| 1170 | if key == "q" then | |
| 1171 | if Debounces.CanAttack == true then | |
| 1172 | Debounces.CanAttack = false | |
| 1173 | Debounces.NoIdl = true | |
| 1174 | Debounces.on = true | |
| 1175 | for i = 1, 20 do | |
| 1176 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(5,0.65,-6)*CFrame.Angles(math.rad(60),math.rad(70),math.rad(70)), 0.2) | |
| 1177 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-1,2.2) *CFrame.Angles(math.rad(-20),math.rad(0),math.rad (-40)), 0.2) | |
| 1178 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(0),math.rad(-50), math.rad(0)), 0.2) | |
| 1179 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(-.4, -1, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), 0.2) | |
| 1180 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles (math.rad(-10), 0, math.rad(-10)), 0.2) | |
| 1181 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles (math.rad(10), 0, math.rad(10)), 0.2) | |
| 1182 | if Debounces.on == false then break end | |
| 1183 | rs:wait(2) | |
| 1184 | end | |
| 1185 | z = Instance.new("Sound", hed)
| |
| 1186 | z.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
| 1187 | z.Pitch = ptz[math.random(1,#ptz)] | |
| 1188 | z.Volume = math.huge | |
| 1189 | wait(.01) | |
| 1190 | z:Play() | |
| 1191 | Debounces.Slashing = true | |
| 1192 | for i = 1, 20 do | |
| 1193 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(2, -2, 3) * CFrame.Angles(math.rad(-40),math.rad(-20),math.rad(40)), 0.3) | |
| 1194 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1, 0.65, -.3) * CFrame.Angles(math.rad(65),math.rad(-20),math.rad(30)), 0.3) | |
| 1195 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(-9),math.rad(35), math.rad(0)), 0.3) | |
| 1196 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 1) * CFrame.Angles(math.rad(0), math.rad(-65), math.rad(0)), 0.3) | |
| 1197 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(10), 0, math.rad(-10)), 0.3) | |
| 1198 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(-10), 0, math.rad(10)), 0.3) | |
| 1199 | if Debounces.on == false then break end | |
| 1200 | rs:wait(2) | |
| 1201 | end | |
| 1202 | Debounces.Slashing = false | |
| 1203 | z:Destroy() | |
| 1204 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
| 1205 | if Debounces.CanAttack == false then | |
| 1206 | Debounces.CanAttack = true | |
| 1207 | Debounces.NoIdl = false | |
| 1208 | Debounces.on = false | |
| 1209 | end | |
| 1210 | end | |
| 1211 | end | |
| 1212 | end) | |
| 1213 | ---------------------------------------------------- | |
| 1214 | mouse.KeyDown:connect(function(key) | |
| 1215 | if key == "r" then | |
| 1216 | if Debounces.CanAttack == true then | |
| 1217 | Debounces.CanAttack = false | |
| 1218 | Debounces.NoIdl = true | |
| 1219 | Debounces.on = true | |
| 1220 | for i = 1, 20 do | |
| 1221 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(40)), 0.3) | |
| 1222 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(130), 0, math.rad(-40)), 0.3) | |
| 1223 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(30), 0, 0), 0.3) | |
| 1224 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(50), 0, 0), 0.3) | |
| 1225 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
| 1226 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -.2, -.5) * CFrame.Angles(math.rad(-10), 0, 0), 0.3) | |
| 1227 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 2, 0) * CFrame.Angles (math.rad(40), math.rad(0), math.rad(0)), 0.35) | |
| 1228 | if Debounces.on==false then break end | |
| 1229 | rs:wait(2) | |
| 1230 | end | |
| 1231 | Debounces.Slashing = true | |
| 1232 | z = Instance.new("Sound",hed)
| |
| 1233 | z.SoundId = "rbxassetid://206083107" | |
| 1234 | z.Pitch = .75 | |
| 1235 | z.Volume = .65 | |
| 1236 | wait(0.1) | |
| 1237 | z:Play() | |
| 1238 | z1 = Instance.new("Sound", hed)
| |
| 1239 | z1.SoundId = "rbxassetid://"..idz[math.random(1,#idz)] | |
| 1240 | z1.Pitch = ptz[math.random(1,#ptz)] | |
| 1241 | z1.Volume = math.huge | |
| 1242 | wait(.01) | |
| 1243 | z1:Play() | |
| 1244 | for i = 1, 20 do | |
| 1245 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(40)), 0.3) | |
| 1246 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.1, 0.6, -.4) * CFrame.Angles(math.rad(50), 0, math.rad(-40)), 0.3) | |
| 1247 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-30), 0, 0), 0.3) | |
| 1248 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(math.rad(10), 0, 0), 0.3) | |
| 1249 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, 0, -.7) * CFrame.Angles(math.rad(20), 0, 0), 0.3) | |
| 1250 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, -.1) * CFrame.Angles(math.rad(-40), 0, 0), 0.3) | |
| 1251 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 2, 0) * CFrame.Angles (math.rad(40), math.rad(20), math.rad(20)), 0.35) | |
| 1252 | if Debounces.on==false then break end | |
| 1253 | rs:wait(2) | |
| 1254 | end | |
| 1255 | Debounces.Slashing = false | |
| 1256 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
| 1257 | if Debounces.CanAttack == false then | |
| 1258 | Debounces.CanAttack = true | |
| 1259 | Debounces.NoIdl = false | |
| 1260 | Debounces.on = false | |
| 1261 | end | |
| 1262 | end | |
| 1263 | end | |
| 1264 | end) | |
| 1265 | ------------------------------- | |
| 1266 | mouse.KeyDown:connect(function(key) | |
| 1267 | if key == "g" then | |
| 1268 | if Debounces.CanAttack == true then | |
| 1269 | Debounces.CanAttack = false | |
| 1270 | Debounces.NoIdl = true | |
| 1271 | Debounces.on = true | |
| 1272 | Debounces.Slashing = true | |
| 1273 | for i = 1, 8 do | |
| 1274 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-8.2, -2.9, 0) * CFrame.Angles(math.rad(0), 0, math.rad(-90)), 0.8) | |
| 1275 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(8.2, -2.9, 0) * CFrame.Angles(math.rad(0), 0, math.rad(90)), 0.8) | |
| 1276 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
| 1277 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles(0, 0, 0), 0.8) | |
| 1278 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
| 1279 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1, 0) * CFrame.Angles(math.rad(0), 0, 0), 0.8) | |
| 1280 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 2, 0) * CFrame.Angles (math.rad(80), math.rad(0), math.rad(0)), 0.35) | |
| 1281 | if Debounces.on==false then break end | |
| 1282 | rs:wait(2) | |
| 1283 | end | |
| 1284 | for i = 1, 1440, 48 do | |
| 1285 | torso.Weld.C1 = CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(i), math.rad(0)) | |
| 1286 | rs:wait(4) | |
| 1287 | end | |
| 1288 | torso.Weld.C1 = CFrame.new(0, -1, 0) | |
| 1289 | cor.Weld.C1 = CFrame.Angles(0,0,0) | |
| 1290 | Debounces.Slashing = false | |
| 1291 | if Debounces.CanAttack == false then | |
| 1292 | Debounces.CanAttack = true | |
| 1293 | Debounces.NoIdl = false | |
| 1294 | Debounces.on = false | |
| 1295 | end | |
| 1296 | end | |
| 1297 | end | |
| 1298 | end) | |
| 1299 | ---------------------------------------------------- | |
| 1300 | pt = {6.6, 6.8, 7, 7.2, 7.4}
| |
| 1301 | mouse.KeyDown:connect(function(key) | |
| 1302 | if key == "h" then | |
| 1303 | if Debounces.CanJoke == true then | |
| 1304 | Debounces.CanJoke = false | |
| 1305 | u = Instance.new("Sound",char)
| |
| 1306 | u.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1307 | u.Pitch = pt[math.random(1,#pt)] | |
| 1308 | u.Volume = math.huge | |
| 1309 | u2 = Instance.new("Sound",char)
| |
| 1310 | u2.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1311 | u2.Pitch = u.Pitch | |
| 1312 | u2.Volume = math.huge | |
| 1313 | u3 = Instance.new("Sound",char)
| |
| 1314 | u3.SoundId = "http://www.roblox.com/asset/?id=261303790" | |
| 1315 | u3.Pitch = u.Pitch | |
| 1316 | u3.Volume = math.huge | |
| 1317 | wait(.01) | |
| 1318 | u:Play() | |
| 1319 | u2:Play() | |
| 1320 | u3:Play() | |
| 1321 | wait(1.5) | |
| 1322 | u:Destroy() | |
| 1323 | u2:Destroy() | |
| 1324 | u3:Destroy() | |
| 1325 | if Debounces.CanJoke == false then | |
| 1326 | Debounces.CanJoke = true | |
| 1327 | end | |
| 1328 | end | |
| 1329 | end | |
| 1330 | end) | |
| 1331 | ---------------------------------------------------- | |
| 1332 | Melee = false | |
| 1333 | mouse.KeyDown:connect(function(key) | |
| 1334 | if key == "m" then | |
| 1335 | if Melee == false then | |
| 1336 | Melee = true | |
| 1337 | Vanish() | |
| 1338 | stanceToggle = "Melee" | |
| 1339 | elseif Melee == true then | |
| 1340 | Melee = false | |
| 1341 | Appear() | |
| 1342 | stanceToggle = "Normal" | |
| 1343 | end | |
| 1344 | end | |
| 1345 | end) | |
| 1346 | ------------------------------- | |
| 1347 | mouse.KeyDown:connect(function(key) | |
| 1348 | if string.byte(key) == 48 then | |
| 1349 | if Debounces.CanAttack == true then | |
| 1350 | if stanceToggle ~= "Floating" then | |
| 1351 | char.Humanoid.WalkSpeed = 80 | |
| 1352 | elseif Debounces.CanAttack == false then | |
| 1353 | elseif stanceToggle == "Floating" then | |
| 1354 | wait() | |
| 1355 | end | |
| 1356 | end | |
| 1357 | end | |
| 1358 | end) | |
| 1359 | mouse.KeyUp:connect(function(key) | |
| 1360 | if string.byte(key) == 48 then | |
| 1361 | char.Humanoid.WalkSpeed = 16 | |
| 1362 | end | |
| 1363 | end) | |
| 1364 | ------------------------------- | |
| 1365 | local animpose = "Idle" | |
| 1366 | local lastanimpose = "Idle" | |
| 1367 | local sine = 0 | |
| 1368 | local change = 1 | |
| 1369 | local val = 0 | |
| 1370 | local ffing = false | |
| 1371 | ------------------------------- | |
| 1372 | --[[if stanceToggle == "Sitting" then | |
| 1373 | if wait(math.random(1,2)) == 1 then | |
| 1374 | stanceToggle = "Sitting2" | |
| 1375 | wait(8) | |
| 1376 | stanceToggle = "Sitting" | |
| 1377 | end | |
| 1378 | end]]-- | |
| 1379 | ------------------------------- | |
| 1380 | game:GetService("RunService").RenderStepped:connect(function()
| |
| 1381 | --[[if char.Humanoid.Jump == true then | |
| 1382 | jump = true | |
| 1383 | else | |
| 1384 | jump = false | |
| 1385 | end]] | |
| 1386 | char.Humanoid.FreeFalling:connect(function(f) | |
| 1387 | if f then | |
| 1388 | ffing = true | |
| 1389 | else | |
| 1390 | ffing = false | |
| 1391 | end | |
| 1392 | end) | |
| 1393 | sine = sine + change | |
| 1394 | if jumpn == true then | |
| 1395 | animpose = "Jumping" | |
| 1396 | elseif ffing == true then | |
| 1397 | animpose = "Freefalling" | |
| 1398 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 2 then | |
| 1399 | animpose = "Idle" | |
| 1400 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude < 20 then | |
| 1401 | animpose = "Walking" | |
| 1402 | elseif (torso.Velocity*Vector3.new(1, 0, 1)).magnitude > 20 then | |
| 1403 | animpose = "Running" | |
| 1404 | end | |
| 1405 | if animpose ~= lastanimpose then | |
| 1406 | sine = 0 | |
| 1407 | if Debounces.NoIdl == false then | |
| 1408 | if stanceToggle == "Normal" then | |
| 1409 | for i = 1, 2 do | |
| 1410 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40)), 0.2) | |
| 1411 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-0.65,0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20)), 0.2) | |
| 1412 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14),math.rad(50),0), 0.2) | |
| 1413 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
| 1414 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
| 1415 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
| 1416 | cor.Weld.C1 = Lerp(cor.Weld.C1, CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 0.3) | |
| 1417 | end | |
| 1418 | elseif stanceToggle == "Floating" then | |
| 1419 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
| 1420 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
| 1421 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
| 1422 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
| 1423 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
| 1424 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
| 1425 | wait() | |
| 1426 | end | |
| 1427 | else | |
| 1428 | end | |
| 1429 | end | |
| 1430 | lastanimpose = animpose | |
| 1431 | if Debounces.NoIdl == false then | |
| 1432 | if animpose == "Idle" then | |
| 1433 | if stanceToggle == "Normal" then | |
| 1434 | change = 0.5 | |
| 1435 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(40+2*math.cos(sine/14))), 0.2) | |
| 1436 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-20),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
| 1437 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(50),0), 0.2) | |
| 1438 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(-50), 0), 0.2) | |
| 1439 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(10), math.rad(30), math.rad(-20)), 0.2) | |
| 1440 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0, -1.2, -0.5) * CFrame.Angles(math.rad(0), math.rad(-15), math.rad(20)), 0.2) | |
| 1441 | elseif stanceToggle == "Melee" then | |
| 1442 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,-0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(20+2*math.cos(sine/14))), 0.2) | |
| 1443 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-0.65+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(-20-2*math.cos(sine/14))), 0.2) | |
| 1444 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-20+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
| 1445 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(0, math.rad(0), 0), 0.2) | |
| 1446 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2) | |
| 1447 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(10)), 0.2) | |
| 1448 | elseif stanceToggle == "Floating" then | |
| 1449 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.4) | |
| 1450 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.4) | |
| 1451 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,-.2)*CFrame.Angles(math.rad(-14+1*math.cos(sine/14)),math.rad(0),0), 0.2) | |
| 1452 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), 0) * CFrame.Angles(0, math.rad(0), math.rad(0)), 0.05) | |
| 1453 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(-8-2*math.cos(sine/14))), 0.4) | |
| 1454 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(0, 0, math.rad(8+2*math.cos(sine/14))), 0.4) | |
| 1455 | end | |
| 1456 | elseif animpose == "Walking" then | |
| 1457 | if stanceToggle == "Normal" then | |
| 1458 | change = 1 | |
| 1459 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(3,-2.2, 0)*CFrame.Angles(math.rad(-20), math.rad(-20),math.rad(40)), 0.2) | |
| 1460 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,0, -math.sin(sine/8)/2.8)*CFrame.Angles(math.sin(sine/8)/4, -math.sin(sine/8)/2, math.rad(-10)), 0.2) | |
| 1461 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
| 1462 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.1*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+2*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
| 1463 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.5, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
| 1464 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.5, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
| 1465 | elseif stanceToggle == "Melee" then | |
| 1466 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5, 0-.05*math.cos(sine/4), math.sin(sine/8)/4) * CFrame.Angles(-math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(10+2*math.cos(sine/4))), 0.2) | |
| 1467 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5, 0+.05*math.cos(sine/4), -math.sin(sine/8)/4)*CFrame.Angles(math.sin(sine/8)/2.8, -math.sin(sine/8)/3, math.rad(-10-2*math.cos(sine/4))), 0.2) | |
| 1468 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-8+2*math.cos(sine/4)), math.rad(0), math.rad(0)),0.2) | |
| 1469 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1+0.07*math.cos(sine/4), 0) * CFrame.Angles(math.rad(-4+1*math.cos(sine/4)), 0, math.rad(0)), 0.2) | |
| 1470 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1-0.14*math.cos(sine/8)/2.8, -0.05 + math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + -math.sin(sine/8)/2.3, 0, 0), .4) | |
| 1471 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1+0.14*math.cos(sine/8)/2.8, -0.05 + -math.sin(sine/8)/3.4) * CFrame.Angles(math.rad(-10) + math.sin(sine/8)/2.3, 0, 0), .4) | |
| 1472 | elseif stanceToggle == "Floating" then | |
| 1473 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
| 1474 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 1475 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, -.2) * CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0), 0.4) | |
| 1476 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(0-8*math.cos(sine/14)), 0, math.rad(-8)), 0.4) | |
| 1477 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(1-9*math.cos(sine/13)), 0, math.rad(8)), 0.4) | |
| 1478 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.2*math.cos(sine/14), 0) * CFrame.Angles(math.rad(-10),0, math.rad(0)), 0.05) | |
| 1479 | end | |
| 1480 | elseif animpose == "Running" then | |
| 1481 | if stanceToggle == "Normal" then | |
| 1482 | change = 1 | |
| 1483 | hed.Weld.C0 = Lerp(hed.Weld.C0, CFrame.new(0, 6.8, 0) * CFrame.Angles (math.rad(44), math.rad (0), math.rad(0)), 0.15) | |
| 1484 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, 1-0.1*math.cos(sine/14), -1) * CFrame.Angles(math.rad(- 80), math.rad(0), 0), 0.15) | |
| 1485 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-4, -0.5, 0) * CFrame.Angles(math.rad (0), math.rad(50), math.rad(-40)), 0.15) | |
| 1486 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(4, -0.5, 0) * CFrame.Angles(math.rad(0), math.rad(-50), math.rad(40)), 0.15) | |
| 1487 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(- 10)), .15) | |
| 1488 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(8), math.rad(0), math.rad(10)), .15) | |
| 1489 | elseif stanceToggle == "Floating" then | |
| 1490 | rarm.Weld.C0 = Lerp(rarm.Weld.C0, CFrame.new(1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(-12),math.rad(10+2*math.cos(sine/14))), 0.2) | |
| 1491 | larm.Weld.C0 = Lerp(larm.Weld.C0, CFrame.new(-1.5,-0.62+0.1*math.cos(sine/14),0)*CFrame.Angles(math.rad(-16),math.rad(12),math.rad(-10-2*math.cos(sine/14))), 0.2) | |
| 1492 | hed.Weld.C0 = CFrame.new(0,6.8,0)*CFrame.Angles(math.rad(-14-4*math.cos(sine/14)),0,0) | |
| 1493 | lleg.Weld.C0 = Lerp(lleg.Weld.C0, CFrame.new(-0.1, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(-8)), 0.4) | |
| 1494 | rleg.Weld.C0 = Lerp(rleg.Weld.C0, CFrame.new(0.1, -1, 0) * CFrame.Angles(math.rad(-10-12*math.cos(sine/16)), 0, math.rad(8)), 0.4) | |
| 1495 | torso.Weld.C0 = Lerp(torso.Weld.C0, CFrame.new(0, -1-0.4*math.cos(sine/14), -.2) * CFrame.Angles(math.rad(-15),0, math.rad(0)), 0.05) | |
| 1496 | end | |
| 1497 | end | |
| 1498 | end | |
| 1499 | end) | |
| 1500 | ||
| 1501 | Spawn(function() | |
| 1502 | while wait() do | |
| 1503 | updateFly() | |
| 1504 | end | |
| 1505 | end) | |
| 1506 | ||
| 1507 | Spawn(function() | |
| 1508 | while wait(5) do | |
| 1509 | GroundWave3() | |
| 1510 | end | |
| 1511 | end) | |
| 1512 | Spawn(function() | |
| 1513 | while wait(0) do | |
| 1514 | hum.MaxHealth = 1.79769e+308 | |
| 1515 | hum.Health = 1.79769e+308 | |
| 1516 | end | |
| 1517 | end) | |
| 1518 | function Lightning(Part0,Part1,Times,Offset,Color,Thickness,Trans) -- Lightning module | |
| 1519 | --[[Part0 = Vector3 (Start pos) | |
| 1520 | Part1 = Vector3 (End pos) | |
| 1521 | Times = number (Amount of lightning parts) | |
| 1522 | Offset = number (Offset) | |
| 1523 | Color = color (brickcolor value) | |
| 1524 | Thickness = number (thickness) | |
| 1525 | Trans = number (transparency) | |
| 1526 | ]]-- | |
| 1527 | local magz = (Part0 - Part1).magnitude | |
| 1528 | local curpos = Part0 | |
| 1529 | local trz = {-Offset,Offset}
| |
| 1530 | for i=1,Times do | |
| 1531 | local li = Instance.new("Part", torso)
| |
| 1532 | li.Name = "Lightning" | |
| 1533 | li.TopSurface =0 | |
| 1534 | li.Material = "Neon" | |
| 1535 | li.BottomSurface = 0 | |
| 1536 | li.Anchored = true | |
| 1537 | li.Locked = true | |
| 1538 | li.Transparency = Trans or 0.4 | |
| 1539 | li.BrickColor = BrickColor.new(Color) | |
| 1540 | li.formFactor = "Custom" | |
| 1541 | li.CanCollide = false | |
| 1542 | li.Size = Vector3.new(Thickness,Thickness,magz/Times) | |
| 1543 | local Offzet = Vector3.new(trz[math.random(1,2)],trz[math.random(1,2)],trz[math.random(1,2)]) | |
| 1544 | local trolpos = CFrame.new(curpos,Part1)*CFrame.new(0,0,magz/Times).p+Offzet | |
| 1545 | if Times == i then | |
| 1546 | local magz2 = (curpos - Part1).magnitude | |
| 1547 | li.Size = Vector3.new(Thickness,Thickness,magz2) | |
| 1548 | li.CFrame = CFrame.new(curpos,Part1)*CFrame.new(0,0,-magz2/2) | |
| 1549 | else | |
| 1550 | li.CFrame = CFrame.new(curpos,trolpos)*CFrame.new(0,0,magz/Times/2) | |
| 1551 | end | |
| 1552 | curpos = li.CFrame*CFrame.new(0,0,magz/Times/2).p | |
| 1553 | game.Debris:AddItem(li,.1) | |
| 1554 | end | |
| 1555 | end | |
| 1556 | ||
| 1557 | BodyParts = {} -- Parts to emit lightning effects from
| |
| 1558 | for _, v in pairs(char:GetChildren()) do | |
| 1559 | if v:IsA("Part") then
| |
| 1560 | table.insert(BodyParts, v) | |
| 1561 | end | |
| 1562 | end | |
| 1563 | ||
| 1564 | Bounding = {} -- Calculate the bounding boxes
| |
| 1565 | for _, v in pairs(BodyParts) do | |
| 1566 | local temp = {X=nil, Y=nil, Z=nil}
| |
| 1567 | temp.X = v.Size.X/2 * 35 | |
| 1568 | temp.Y = v.Size.Y/2 * 35 | |
| 1569 | temp.Z = v.Size.Z/2 * 35 | |
| 1570 | Bounding[v.Name] = temp | |
| 1571 | --table.insert(Bounding, v.Name, temp) | |
| 1572 | end | |
| 1573 | ||
| 1574 | while wait(0) do -- Emit the Lightning effects randomly | |
| 1575 | local Body1 = BodyParts[math.random(#BodyParts)] | |
| 1576 | local Body2 = BodyParts[math.random(#BodyParts)] | |
| 1577 | local Pos1 = Vector3.new( | |
| 1578 | math.random(-Bounding[Body1.Name].X, Bounding[Body1.Name].X)/35, | |
| 1579 | math.random(-Bounding[Body1.Name].Y, Bounding[Body1.Name].Y)/35, | |
| 1580 | math.random(-Bounding[Body1.Name].Z, Bounding[Body1.Name].Z)/35 | |
| 1581 | ) | |
| 1582 | local Pos2 = Vector3.new( | |
| 1583 | math.random(-Bounding[Body2.Name].X, Bounding[Body2.Name].X)/35, | |
| 1584 | math.random(-Bounding[Body2.Name].Y, Bounding[Body2.Name].Y)/35, | |
| 1585 | math.random(-Bounding[Body2.Name].Z, Bounding[Body2.Name].Z)/35 | |
| 1586 | ) | |
| 1587 | local SPos1 = Body1.Position + Pos1 | |
| 1588 | local SPos2 = Body2.Position + Pos2 | |
| 1589 | Lightning(SPos1, SPos2, 4, 3, "New Yeller", .3, .56) | |
| 1590 | end |