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,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
| |
| 6 | --[[ FPS M1911 by KillerDarkness0105/Codex#6685]]-- | |
| 7 | ||
| 8 | ||
| 9 | Player=game:GetService("Players").LocalPlayer
| |
| 10 | Character=Player.Character | |
| 11 | PlayerGui=Player.PlayerGui | |
| 12 | Backpack=Player.Backpack | |
| 13 | Torso=Character.Torso | |
| 14 | Head=Character.Head | |
| 15 | Humanoid=Character.Humanoid | |
| 16 | LeftArm=Character["Left Arm"] | |
| 17 | LeftLeg=Character["Left Leg"] | |
| 18 | RightArm=Character["Right Arm"] | |
| 19 | RightLeg=Character["Right Leg"] | |
| 20 | LS=Torso["Left Shoulder"] | |
| 21 | LH=Torso["Left Hip"] | |
| 22 | RS=Torso["Right Shoulder"] | |
| 23 | RH=Torso["Right Hip"] | |
| 24 | Face = Head.face | |
| 25 | Neck=Torso.Neck | |
| 26 | it=Instance.new | |
| 27 | attacktype=1 | |
| 28 | attacktype2=1 | |
| 29 | vt=Vector3.new | |
| 30 | it=Instance.new | |
| 31 | cf=CFrame.new | |
| 32 | cn=CFrame.new | |
| 33 | euler=CFrame.fromEulerAnglesXYZ | |
| 34 | angles=CFrame.Angles | |
| 35 | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 36 | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
| 37 | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 38 | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) | |
| 39 | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 40 | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) | |
| 41 | RootPart=Character.HumanoidRootPart | |
| 42 | RootJoint=RootPart.RootJoint | |
| 43 | RootCF=euler(-1.57,0,3.14) | |
| 44 | attack = false | |
| 45 | local Effects = {}
| |
| 46 | attackspeed = 0.14 | |
| 47 | df = false | |
| 48 | Swing = 1 | |
| 49 | local sine = 0 | |
| 50 | local change = 1 | |
| 51 | local val = 0 | |
| 52 | local speed = 0 | |
| 53 | local rs = game:GetService("RunService").RenderStepped
| |
| 54 | cam = workspace.CurrentCamera | |
| 55 | local RbxUtility = LoadLibrary("RbxUtility")
| |
| 56 | local Create = RbxUtility.Create | |
| 57 | deb = game:GetService("Debris")
| |
| 58 | Player.CameraMode = 1 | |
| 59 | local aim = false | |
| 60 | mouse = Player:GetMouse() | |
| 61 | ||
| 62 | local lerp = function(a, b, t) | |
| 63 | return a * (1 - t) + b * t | |
| 64 | end | |
| 65 | ||
| 66 | ||
| 67 | ||
| 68 | ||
| 69 | ||
| 70 | ||
| 71 | ||
| 72 | ||
| 73 | ||
| 74 | ||
| 75 | local accuracymain = Instance.new("ScreenGui", Player.PlayerGui)
| |
| 76 | ||
| 77 | accuracymain.Name = 'GunAccuracyFrame' | |
| 78 | ||
| 79 | local accuracyFrame = Instance.new("Frame", accuracymain)
| |
| 80 | ||
| 81 | accuracyFrame.Size = UDim2.new(0, 30, 0, 30) | |
| 82 | ||
| 83 | accuracyFrame.BackgroundTransparency = 1 | |
| 84 | ||
| 85 | game:service'RunService'.RenderStepped:connect(function() | |
| 86 | ||
| 87 | accuracyFrame.Position = UDim2.new(0, Player:GetMouse().X-accuracyFrame.Size.X.Offset/2, 0, Player:GetMouse().Y-accuracyFrame.Size.Y.Offset/2) | |
| 88 | ||
| 89 | end) | |
| 90 | ||
| 91 | local accuracy1 = Instance.new("Frame", accuracyFrame)
| |
| 92 | ||
| 93 | accuracy1.BackgroundColor = BrickColor.new("White")
| |
| 94 | ||
| 95 | accuracy1.Size = UDim2.new(0, 8, 0, 2) | |
| 96 | ||
| 97 | accuracy1.Position = UDim2.new(0, 0, .5, -1) | |
| 98 | ||
| 99 | local accuracy2 = Instance.new("Frame", accuracyFrame)
| |
| 100 | ||
| 101 | accuracy2.BackgroundColor = BrickColor.new("White")
| |
| 102 | ||
| 103 | accuracy2.Size = UDim2.new(0, 8, 0, 2) | |
| 104 | ||
| 105 | accuracy2.Position = UDim2.new(1, -8, .5, -1) | |
| 106 | ||
| 107 | local accuracy3 = Instance.new("Frame", accuracyFrame)
| |
| 108 | ||
| 109 | accuracy3.BackgroundColor = BrickColor.new("White")
| |
| 110 | ||
| 111 | accuracy3.Size = UDim2.new(0, 2, 0, 8) | |
| 112 | ||
| 113 | accuracy3.Position = UDim2.new(.5, -1, 0, 0) | |
| 114 | ||
| 115 | local accuracy4 = Instance.new("Frame", accuracyFrame)
| |
| 116 | ||
| 117 | accuracy4.BackgroundColor = BrickColor.new("White")
| |
| 118 | ||
| 119 | accuracy4.Size = UDim2.new(0, 2, 0, 8) | |
| 120 | ||
| 121 | accuracy4.Position = UDim2.new(.5, -1, 1, -8) | |
| 122 | ||
| 123 | accuracyFrame.Visible = true | |
| 124 | ||
| 125 | ||
| 126 | mouse.Icon = "http://www.roblox.com/asset?id=75216962" | |
| 127 | ||
| 128 | ||
| 129 | ||
| 130 | ||
| 131 | ||
| 132 | ||
| 133 | ||
| 134 | New = function(Object, Parent, Name, Data) | |
| 135 | local Object = Instance.new(Object) | |
| 136 | for Index, Value in pairs(Data or {}) do
| |
| 137 | Object[Index] = Value | |
| 138 | end | |
| 139 | Object.Parent = Parent | |
| 140 | Object.Name = Name | |
| 141 | return Object | |
| 142 | end | |
| 143 | K1911 = New("Model",Character,"K1911",{})
| |
| 144 | Handle = New("Part",K1911,"Handle",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.530000031, 1.11000001, 0.269999951),CFrame = CFrame.new(-34.6798782, 2.69211316, -16, 0.994522989, 0.104528531, 0, -0.104528464, 0.994521201, 0, 0, 0, 1.00000072),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 145 | Triggermesh = New("Part",K1911,"Triggermesh",{BrickColor = BrickColor.new("Dark stone grey"),Reflectance = 0.10000000149012,FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(0.179999992, 0.25999999, 0.0599999726),CFrame = CFrame.new(-34.2399559, 3.03731799, -15.9999371, 0.390543848, 0.920583785, -0.00219476013, 0.920583367, -0.390543371, 0.000196098365, -0.000676624477, -0.00209704484, -0.999998927),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 146 | Mesh = New("SpecialMesh",Triggermesh,"Mesh",{Scale = Vector3.new(0.333333343, 0.466666669, 0.666666687),MeshId = "http://www.roblox.com/asset/?id=3270017",MeshType = Enum.MeshType.FileMesh,})
| |
| 147 | mot = New("Motor",Triggermesh,"mot",{Part0 = Triggermesh,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.390543371, 0.920584202, -0.000676623837, 0.920582354, -0.39054364, -0.00209704298, -0.00219475664, 0.00019609835, -0.999997973),C1 = CFrame.new(0.401428223, 0.389298439, 6.29425049e-05, 0.994522274, -0.104528472, 0, 0.104528494, 0.994521677, 0, 0, 0, 1.00000024),})
| |
| 148 | bullethole = New("Part",K1911,"bullethole",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.809999943, 0.189999968, 0.189999968),CFrame = CFrame.new(-33.333004, 3.3820014, -16, 1.00000179, -9.68575478e-08, 0, -1.11758709e-07, 0.999998868, 0, 0, 0, 1.00000119),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 149 | mot = New("Motor",bullethole,"mot",{Part0 = bullethole,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000036, -2.98023224e-08, 0, -1.49011612e-08, 0.999999762, 0, 0, 0, 1.00000024),C1 = CFrame.new(1.26737976, 0.826895952, 0, 0.994522274, -0.104528472, 0, 0.104528494, 0.994521677, 0, 0, 0, 1.00000024),})
| |
| 150 | Part = New("Part",K1911,"Part",{Material = Enum.Material.SmoothPlastic,Reflectance = 0.11999999731779,Size = Vector3.new(1.98999989, 0.370000035, 0.289999992),CFrame = CFrame.new(-33.9300079, 3.37500191, -16, 1.00000036, -1.49011612e-08, 0, -2.23517418e-08, 0.999999762, 0, 0, 0, 1.00000024),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 151 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000036, -2.23517418e-08, 0, -1.49011612e-08, 0.999999762, 0, 0, 0, 1.00000024),C1 = CFrame.new(0.674381256, 0.757531166, 0, 0.994522274, -0.104528472, 0, 0.104528494, 0.994521677, 0, 0, 0, 1.00000024),})
| |
| 152 | Part = New("Part",K1911,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.05999994, 0.179999977, 0.249999985),CFrame = CFrame.new(-33.8850136, 3.13003469, -16, 1.00000322, -1.71363354e-07, 0, -1.86264515e-07, 0.999997973, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 153 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -6.70552254e-08, 0, -5.21540642e-08, 0.999999344, 0, 0, 0, 1.00000072),C1 = CFrame.new(0.744735718, 0.518609047, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 154 | Part = New("Part",K1911,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.620000005, 0.229999989, 0.229999989),CFrame = CFrame.new(-33.2650108, 3.1581521, -16, 1.00000322, -1.71363354e-07, 0, -1.86264515e-07, 0.999997973, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 155 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -6.70552254e-08, 0, -5.21540642e-08, 0.999999344, 0, 0, 0, 1.00000072),C1 = CFrame.new(1.35840225, 0.611380339, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 156 | Part = New("Part",K1911,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.530000031, 1.07000005, 0.189999953),CFrame = CFrame.new(-34.611969, 2.67222261, -16, 0.994525135, 0.104528643, 0, -0.104528435, 0.99451983, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 157 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),C1 = CFrame.new(0.0696144104, -0.0126833916, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 158 | Clip = New("Part",K1911,"Clip",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.420000017, 1.07000005, 0.189999953),CFrame = CFrame.new(-34.6671104, 2.66717649, -16, 0.994525135, 0.104528643, 0, -0.104528435, 0.99451983, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 159 | mot = New("Motor",Clip,"mot",{Part0 = Clip,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),C1 = CFrame.new(0.0153045654, -0.023465395, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 160 | bhole = New("Part",K1911,"bhole",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(1.66999996, 0.169999972, 0.169999972),CFrame = CFrame.new(-33.7600136, 3.38231826, -16, 1.00000322, -1.71363354e-07, 0, -1.86264515e-07, 0.999997973, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 161 | mot = New("Motor",bhole,"mot",{Part0 = bhole,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -6.70552254e-08, 0, -5.21540642e-08, 0.999999344, 0, 0, 0, 1.00000072),C1 = CFrame.new(0.84267807, 0.782576561, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 162 | Part = New("Part",K1911,"Part",{BrickColor = BrickColor.new("Burnt Sienna"),Material = Enum.Material.Wood,Size = Vector3.new(0.370000064, 0.920000076, 0.280000001),CFrame = CFrame.new(-34.6795921, 2.66959429, -16, 0.994525135, 0.104528643, 0, -0.104528435, 0.99451983, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.415686, 0.223529, 0.0352941),})
| |
| 163 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),C1 = CFrame.new(0.00263977051, -0.0223655701, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 164 | Part = New("Part",K1911,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.289999962, 0.160000041, 0.160000041),CFrame = CFrame.new(-34.7095528, 2.37562132, -16, 1.09896426e-07, -1.71363354e-07, -1.00000322, -2.04281037e-14, 0.999997914, 1.86264515e-07, 1.00000215, 0, 1.09896298e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 165 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.09896185e-07, -7.10542736e-15, 1.00000072, -5.21540642e-08, 0.999999285, 0, -1.00000107, 6.70552254e-08, 1.09896142e-07),C1 = CFrame.new(0.00357055664, -0.317860126, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 166 | Part = New("Part",K1911,"Part",{Material = Enum.Material.SmoothPlastic,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.289999962, 0.160000026, 0.160000026),CFrame = CFrame.new(-34.6395531, 2.95001388, -16, 1.09896426e-07, -1.71363354e-07, -1.00000322, -2.04281037e-14, 0.999997795, 1.86264515e-07, 1.00000215, 0, 1.09896298e-07),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 167 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.09896185e-07, -7.10542736e-15, 1.00000072, -5.21540642e-08, 0.999999166, 0, -1.00000107, 6.70552254e-08, 1.09896142e-07),C1 = CFrame.new(0.0131454468, 0.260703087, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 168 | Part = New("Part",K1911,"Part",{BrickColor = BrickColor.new("Really black"),Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.189999953, 0.119999975, 0.119999975),CFrame = CFrame.new(-33.0400124, 3.15800071, -16, 1.00000322, -1.78813934e-07, 0, -1.86264515e-07, 0.999997735, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
| |
| 169 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -6.70552254e-08, 0, -5.96046448e-08, 0.999999106, 0, 0, 0, 1.00000072),C1 = CFrame.new(1.58218384, 0.634748459, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 170 | Part = New("Part",K1911,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.110000029, 0.109999999, 0.200000003),CFrame = CFrame.new(-34.8181458, 3.55000734, -15.9967442, 1.00000322, -1.86264515e-07, 0, -1.86264515e-07, 0.999997735, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 171 | mot = New("Motor",Part,"mot",{Part0 = Part,C1 = CFrame.new(-0.0431270599, 0.729999065, -0.00174999237, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 172 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -6.70552254e-08, 0, -6.70552254e-08, 0.999999106, 0, 0, 0, 1.00000072),C1 = CFrame.new(-0.227184296, 0.838742256, 0.00325584412, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 173 | Part = New("Part",K1911,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.110000029, 0.0500000007, 0.0500000082),CFrame = CFrame.new(-34.8181458, 3.63000631, -16.0717449, 1.00000322, -1.86264515e-07, 0, -1.86264515e-07, 0.999997735, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 174 | mot = New("Motor",Part,"mot",{Part0 = Part,C1 = CFrame.new(-0.0431270599, 0.729999065, -0.00174999237, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 175 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -6.70552254e-08, 0, -6.70552254e-08, 0.999999106, 0, 0, 0, 1.00000072),C1 = CFrame.new(-0.235546112, 0.918303013, -0.0717449188, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 176 | Part = New("Part",K1911,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.110000029, 0.0500000007, 0.0500000007),CFrame = CFrame.new(-34.8181419, 3.62999988, -15.9217443, 1.00000322, -1.86264515e-07, 0, -1.86264515e-07, 0.999997735, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 177 | mot = New("Motor",Part,"mot",{Part0 = Part,C1 = CFrame.new(-0.0431270599, 0.729999065, -0.00174999237, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
| |
| 178 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -6.70552254e-08, 0, -6.70552254e-08, 0.999999106, 0, 0, 0, 1.00000072),C1 = CFrame.new(-0.235542297, 0.918297052, 0.0782556534, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 179 | Part = New("Part",K1911,"Part",{BrickColor = BrickColor.new("Dark stone grey"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.10999997, 0.179999977, 0.0500000007),CFrame = CFrame.new(-34.220005, 3.02002287, -16, 0.981630385, -0.190809816, 0, 0.190808371, 0.981624961, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
| |
| 180 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.981628299, 0.190808743, 0, -0.19080928, 0.981626272, 0, 0, 0, 1.00000072),C1 = CFrame.new(0.42307663, 0.374183416, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 181 | Part = New("Part",K1911,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.100000069, 0.139999986, 0.0800000057),CFrame = CFrame.new(-33.0113029, 3.55999947, -16, 1.00000322, -1.78813934e-07, 0, -2.01165676e-07, 0.999997735, 0, 0, 0, 1.00000215),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 182 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000107, -8.19563866e-08, 0, -5.96046448e-08, 0.999999106, 0, 0, 0, 1.00000072),C1 = CFrame.new(1.56871414, 1.03754616, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 183 | Part = New("Part",K1911,"Part",{Material = Enum.Material.Metal,Shape = Enum.PartType.Cylinder,Size = Vector3.new(0.080000028, 0.119999945, 0.119999945),CFrame = CFrame.new(-34.9629974, 3.43419743, -16, 0, -1.86264515e-07, 1.00000334, 0, 0.999997735, -1.93715096e-07, -1.00000226, 0, 0),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 184 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1.00000083, -6.70552254e-08, 0.999999106, 0, 1.00000119, -7.4505806e-08, 0),C1 = CFrame.new(-0.359138489, 0.708425283, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 185 | Part = New("Part",K1911,"Part",{Material = Enum.Material.Metal,Size = Vector3.new(0.120000049, 0.160000026, 0.0800000727),CFrame = CFrame.new(-34.9034996, 3.41254854, -16, 0.777148902, 0.62932241, 0, -0.629318953, 0.777144134, 0, 0, 0, 1.00000238),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 186 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.777147114, -0.629319727, 0, 0.629321098, 0.777145267, 0, 0, 0, 1.00000095),C1 = CFrame.new(-0.297702789, 0.693114519, 0, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 187 | Part = New("Part",K1911,"Part",{Transparency = 1,Transparency = 1,Size = Vector3.new(0.459999889, 0.24000001, 0.179999948),CFrame = CFrame.new(-33.6749954, 3.41999912, -15.9449997, 1.00000358, -1.93715096e-07, 0, -2.01165676e-07, 0.999997735, 0, 0, 0, 1.00000238),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,})
| |
| 188 | mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1.00000143, -8.19563866e-08, 0, -7.4505806e-08, 0.999999106, 0, 0, 0, 1.00000095),C1 = CFrame.new(0.923290253, 0.828937769, 0.0550003052, 0.994522989, -0.104528464, 0, 0.104528531, 0.994521201, 0, 0, 0, 1.00000072),})
| |
| 189 | ||
| 190 | local NewInstance = function(instance,parent,properties) | |
| 191 | local inst = Instance.new(instance,parent) | |
| 192 | if(properties)then | |
| 193 | for i,v in next, properties do | |
| 194 | pcall(function() inst[i] = v end) | |
| 195 | end | |
| 196 | end | |
| 197 | return inst; | |
| 198 | end | |
| 199 | ||
| 200 | ||
| 201 | local HW = NewInstance('Weld',Character,{Part0=RightArm,Part1=Handle,C0 = CFrame.new(0,-0.72,-0.14)*CFrame.Angles(math.rad(-95),math.rad(90),math.rad(0))})
| |
| 202 | ||
| 203 | ||
| 204 | ||
| 205 | ||
| 206 | so = function(id,par,vol,pit) | |
| 207 | coroutine.resume(coroutine.create(function() | |
| 208 | local sou = Instance.new("Sound",par or workspace)
| |
| 209 | sou.Volume=vol | |
| 210 | sou.Pitch=pit or 1 | |
| 211 | sou.SoundId=id | |
| 212 | sou:play() | |
| 213 | game:GetService("Debris"):AddItem(sou,8)
| |
| 214 | end)) | |
| 215 | end | |
| 216 | ||
| 217 | ||
| 218 | function clerp(a,b,t) | |
| 219 | local qa = {QuaternionFromCFrame(a)}
| |
| 220 | local qb = {QuaternionFromCFrame(b)}
| |
| 221 | local ax, ay, az = a.x, a.y, a.z | |
| 222 | local bx, by, bz = b.x, b.y, b.z | |
| 223 | local _t = 1-t | |
| 224 | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) | |
| 225 | end | |
| 226 | ||
| 227 | function QuaternionFromCFrame(cf) | |
| 228 | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() | |
| 229 | local trace = m00 + m11 + m22 | |
| 230 | if trace > 0 then | |
| 231 | local s = math.sqrt(1 + trace) | |
| 232 | local recip = 0.5/s | |
| 233 | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 | |
| 234 | else | |
| 235 | local i = 0 | |
| 236 | if m11 > m00 then | |
| 237 | i = 1 | |
| 238 | end | |
| 239 | if m22 > (i == 0 and m00 or m11) then | |
| 240 | i = 2 | |
| 241 | end | |
| 242 | if i == 0 then | |
| 243 | local s = math.sqrt(m00-m11-m22+1) | |
| 244 | local recip = 0.5/s | |
| 245 | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip | |
| 246 | elseif i == 1 then | |
| 247 | local s = math.sqrt(m11-m22-m00+1) | |
| 248 | local recip = 0.5/s | |
| 249 | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip | |
| 250 | elseif i == 2 then | |
| 251 | local s = math.sqrt(m22-m00-m11+1) | |
| 252 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
| 253 | end | |
| 254 | end | |
| 255 | end | |
| 256 | ||
| 257 | ||
| 258 | ||
| 259 | function QuaternionToCFrame(px, py, pz, x, y, z, w) | |
| 260 | local xs, ys, zs = x + x, y + y, z + z | |
| 261 | local wx, wy, wz = w*xs, w*ys, w*zs | |
| 262 | local xx = x*xs | |
| 263 | local xy = x*ys | |
| 264 | local xz = x*zs | |
| 265 | local yy = y*ys | |
| 266 | local yz = y*zs | |
| 267 | local zz = z*zs | |
| 268 | 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)) | |
| 269 | end | |
| 270 | function QuaternionSlerp(a, b, t) | |
| 271 | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] | |
| 272 | local startInterp, finishInterp; | |
| 273 | if cosTheta >= 0.0001 then | |
| 274 | if (1 - cosTheta) > 0.0001 then | |
| 275 | local theta = math.acos(cosTheta) | |
| 276 | local invSinTheta = 1/math.sin(theta) | |
| 277 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
| 278 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 279 | else | |
| 280 | startInterp = 1-t | |
| 281 | finishInterp = t | |
| 282 | end | |
| 283 | else | |
| 284 | if (1+cosTheta) > 0.0001 then | |
| 285 | local theta = math.acos(-cosTheta) | |
| 286 | local invSinTheta = 1/math.sin(theta) | |
| 287 | startInterp = math.sin((t-1)*theta)*invSinTheta | |
| 288 | finishInterp = math.sin(t*theta)*invSinTheta | |
| 289 | else | |
| 290 | startInterp = t-1 | |
| 291 | finishInterp = t | |
| 292 | end | |
| 293 | end | |
| 294 | 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 | |
| 295 | end | |
| 296 | mouse=Player:GetMouse() | |
| 297 | --save shoulders | |
| 298 | RSH, LSH=nil, nil | |
| 299 | --welds | |
| 300 | RW, LW=Instance.new("Weld"), Instance.new("Weld")
| |
| 301 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
| 302 | LH=Torso["Left Hip"] | |
| 303 | RH=Torso["Right Hip"] | |
| 304 | TorsoColor=Torso.BrickColor | |
| 305 | function NoOutline(Part) | |
| 306 | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 | |
| 307 | end | |
| 308 | player=Player | |
| 309 | ch=Character | |
| 310 | RSH=ch.Torso["Right Shoulder"] | |
| 311 | LSH=ch.Torso["Left Shoulder"] | |
| 312 | -- | |
| 313 | RSH.Parent=nil | |
| 314 | LSH.Parent=nil | |
| 315 | -- | |
| 316 | RW.Name="Right Shoulder" | |
| 317 | RW.Part0=ch.Torso | |
| 318 | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) | |
| 319 | RW.C1=cf(0, 0.5, 0) | |
| 320 | RW.Part1=ch["Right Arm"] | |
| 321 | RW.Parent=ch.Torso | |
| 322 | -- | |
| 323 | LW.Name="Left Shoulder" | |
| 324 | LW.Part0=ch.Torso | |
| 325 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
| 326 | LW.C1=cf(0, 0.5, 0) | |
| 327 | LW.Part1=ch["Left Arm"] | |
| 328 | LW.Parent=ch.Torso | |
| 329 | ||
| 330 | ArtificialHB = Instance.new("BindableEvent", script)
| |
| 331 | ArtificialHB.Name = "Heartbeat" | |
| 332 | ||
| 333 | script:WaitForChild("Heartbeat")
| |
| 334 | ||
| 335 | frame = 1 / 80 | |
| 336 | tf = 0 | |
| 337 | allowframeloss = false | |
| 338 | tossremainder = false | |
| 339 | lastframe = tick() | |
| 340 | script.Heartbeat:Fire() | |
| 341 | game:GetService("RunService").Heartbeat:connect(function(s, p)
| |
| 342 | tf = tf + s | |
| 343 | if tf >= frame then | |
| 344 | if allowframeloss then | |
| 345 | script.Heartbeat:Fire() | |
| 346 | lastframe = tick() | |
| 347 | else | |
| 348 | for i = 1, math.floor(tf / frame) do | |
| 349 | script.Heartbeat:Fire() | |
| 350 | end | |
| 351 | lastframe = tick() | |
| 352 | end | |
| 353 | if tossremainder then | |
| 354 | tf = 0 | |
| 355 | else | |
| 356 | tf = tf - frame * math.floor(tf / frame) | |
| 357 | end | |
| 358 | end | |
| 359 | end) | |
| 360 | ||
| 361 | --[[] | |
| 362 | function swait(num) | |
| 363 | if num == 0 or num == nil then | |
| 364 | ArtificialHB.Event:wait() | |
| 365 | else | |
| 366 | for i = 0, num do | |
| 367 | ArtificialHB.Event:wait() | |
| 368 | end | |
| 369 | end | |
| 370 | end | |
| 371 | ||
| 372 | ]] | |
| 373 | ||
| 374 | ||
| 375 | function swait(num) | |
| 376 | if num == 0 or num == nil then | |
| 377 | game:service("RunService").Stepped:wait()
| |
| 378 | else | |
| 379 | for i = 0, num do | |
| 380 | game:service("RunService").Stepped:wait()
| |
| 381 | end | |
| 382 | end | |
| 383 | end | |
| 384 | ||
| 385 | ||
| 386 | game:GetService("UserInputService").MouseIconEnabled = false
| |
| 387 | ||
| 388 | ||
| 389 | ||
| 390 | ||
| 391 | ||
| 392 | ||
| 393 | ||
| 394 | ||
| 395 | ||
| 396 | ||
| 397 | ||
| 398 | ||
| 399 | ||
| 400 | ||
| 401 | function RemoveOutlines(part) | |
| 402 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
| 403 | end | |
| 404 | ||
| 405 | ||
| 406 | ||
| 407 | ||
| 408 | ||
| 409 | ||
| 410 | ||
| 411 | ||
| 412 | ||
| 413 | ||
| 414 | F1 = Instance.new("Folder", Character)
| |
| 415 | F1.Name = "Effects Folder" | |
| 416 | F2 = Instance.new("Folder", F1)
| |
| 417 | F2.Name = "Effects" | |
| 418 | Triangle = function(a, b, c) | |
| 419 | end | |
| 420 | ||
| 421 | MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent) | |
| 422 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 423 | prt.Anchored = true | |
| 424 | prt.CFrame = cframe | |
| 425 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 426 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 427 | if Type == 1 or Type == nil then | |
| 428 | table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
| |
| 429 | else | |
| 430 | if Type == 2 then | |
| 431 | table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
| |
| 432 | else | |
| 433 | if Type == 3 then | |
| 434 | table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
| |
| 435 | end | |
| 436 | end | |
| 437 | end | |
| 438 | end | |
| 439 | MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
| 440 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 441 | prt.Anchored = true | |
| 442 | prt.CFrame = cframe | |
| 443 | msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 444 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 445 | table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
| |
| 446 | end | |
| 447 | MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 448 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 449 | prt.Anchored = true | |
| 450 | prt.CFrame = cframe | |
| 451 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 452 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 453 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 454 | end | |
| 455 | MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 456 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5)) | |
| 457 | prt.Anchored = true | |
| 458 | prt.CFrame = cframe * cf(x2, y2, z2) | |
| 459 | local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 460 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 461 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 462 | end | |
| 463 | MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push) | |
| 464 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 465 | prt.Anchored = true | |
| 466 | prt.CFrame = cframe | |
| 467 | local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 468 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 469 | table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
| |
| 470 | end | |
| 471 | MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 472 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 473 | prt.Anchored = true | |
| 474 | prt.CFrame = cframe | |
| 475 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 476 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 477 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 478 | end | |
| 479 | MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe) | |
| 480 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 481 | prt.Anchored = true | |
| 482 | prt.CFrame = cframe | |
| 483 | local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 484 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 485 | table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
| |
| 486 | end | |
| 487 | MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 488 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 489 | prt.Anchored = true | |
| 490 | prt.CFrame = cframe | |
| 491 | local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 492 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 493 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 494 | end | |
| 495 | ClangEffect = function(brickcolor, cframe, duration, decrease, size, power) | |
| 496 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
| 497 | prt.Anchored = true | |
| 498 | prt.CFrame = cframe | |
| 499 | local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
| |
| 500 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 501 | table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
| |
| 502 | end | |
| 503 | MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 504 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 505 | prt.Anchored = true | |
| 506 | prt.CFrame = cframe | |
| 507 | local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 508 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 509 | table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
| |
| 510 | end | |
| 511 | MagicFire = function(brickcolor, cframe, x1, y1, z1, delay) | |
| 512 | local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt()) | |
| 513 | prt.Anchored = true | |
| 514 | prt.CFrame = cframe | |
| 515 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 516 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 517 | table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
| |
| 518 | end | |
| 519 | MagicFireWave = function(brickcolor, cframe, x1, y1, z1) | |
| 520 | local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt()) | |
| 521 | prt.Anchored = true | |
| 522 | prt.CFrame = cframe | |
| 523 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
| |
| 524 | d = Instance.new("Decal")
| |
| 525 | d.Parent = prt | |
| 526 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
| 527 | d.Face = "Top" | |
| 528 | d = Instance.new("Decal")
| |
| 529 | d.Parent = prt | |
| 530 | d.Texture = "http://www.roblox.com/asset/?id=26356434" | |
| 531 | d.Face = "Bottom" | |
| 532 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 533 | table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
| |
| 534 | end | |
| 535 | ElecEffect = function(cff, x, y, z) | |
| 536 | local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
| |
| 537 | prt.Anchored = true | |
| 538 | prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
| 539 | prt.CFrame = cf(prt.Position) | |
| 540 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 541 | xval = math.random() / 3 | |
| 542 | yval = math.random() / 3 | |
| 543 | zval = math.random() / 3 | |
| 544 | msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
| |
| 545 | Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
| |
| 546 | end | |
| 547 | ||
| 548 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
| 549 | if SinglePlayer then | |
| 550 | return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance | |
| 551 | end | |
| 552 | local List = {}
| |
| 553 | for i, v in pairs(workspace:GetChildren()) do | |
| 554 | if v:IsA("Model") then
| |
| 555 | if v:findFirstChild("Torso") then
| |
| 556 | if v ~= Character then | |
| 557 | if (v.Torso.Position - Position).magnitude <= Distance then | |
| 558 | table.insert(List, v) | |
| 559 | end | |
| 560 | end | |
| 561 | end | |
| 562 | end | |
| 563 | end | |
| 564 | return List | |
| 565 | end | |
| 566 | ||
| 567 | ||
| 568 | function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
| 569 | local Part = Create("Part"){
| |
| 570 | Parent = Parent, | |
| 571 | Reflectance = Reflectance, | |
| 572 | Transparency = Transparency, | |
| 573 | CanCollide = false, | |
| 574 | Locked = true, | |
| 575 | BrickColor = BrickColor.new(tostring(BColor)), | |
| 576 | Name = Name, | |
| 577 | Size = Size, | |
| 578 | Material = Material, | |
| 579 | } | |
| 580 | RemoveOutlines(Part) | |
| 581 | return Part | |
| 582 | end | |
| 583 | ||
| 584 | function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
| 585 | local Msh = Create(Mesh){
| |
| 586 | Parent = Part, | |
| 587 | Offset = OffSet, | |
| 588 | Scale = Scale, | |
| 589 | } | |
| 590 | if Mesh == "SpecialMesh" then | |
| 591 | Msh.MeshType = MeshType | |
| 592 | Msh.MeshId = MeshId | |
| 593 | end | |
| 594 | return Msh | |
| 595 | end | |
| 596 | ||
| 597 | ||
| 598 | ||
| 599 | function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
| 600 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 601 | prt.Anchored = true | |
| 602 | prt.CFrame = cframe | |
| 603 | local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 604 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 605 | if Type == 1 or Type == nil then | |
| 606 | table.insert(Effects, {
| |
| 607 | prt, | |
| 608 | "Block1", | |
| 609 | delay, | |
| 610 | x3, | |
| 611 | y3, | |
| 612 | z3, | |
| 613 | msh | |
| 614 | }) | |
| 615 | elseif Type == 2 then | |
| 616 | table.insert(Effects, {
| |
| 617 | prt, | |
| 618 | "Block2", | |
| 619 | delay, | |
| 620 | x3, | |
| 621 | y3, | |
| 622 | z3, | |
| 623 | msh | |
| 624 | }) | |
| 625 | end | |
| 626 | end | |
| 627 | ||
| 628 | function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 629 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 630 | prt.Anchored = true | |
| 631 | prt.CFrame = cframe | |
| 632 | prt.Name = "prt" | |
| 633 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 634 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 635 | table.insert(Effects, {
| |
| 636 | prt, | |
| 637 | "Cylinder", | |
| 638 | delay, | |
| 639 | x3, | |
| 640 | y3, | |
| 641 | z3, | |
| 642 | msh | |
| 643 | }) | |
| 644 | end | |
| 645 | ||
| 646 | function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 647 | local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5)) | |
| 648 | prt.Anchored=true | |
| 649 | prt.CFrame=cframe | |
| 650 | msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
| |
| 651 | game:GetService("Debris"):AddItem(prt,2)
| |
| 652 | coroutine.resume(coroutine.create(function(Part,Mesh,num) | |
| 653 | for i=0,1,delay do | |
| 654 | swait() | |
| 655 | Part.Transparency=i | |
| 656 | Mesh.Scale=Mesh.Scale+vt(x3,y3,z3) | |
| 657 | end | |
| 658 | Part.Parent=nil | |
| 659 | end),prt,msh,(math.random(0,1)+math.random())/5) | |
| 660 | end | |
| 661 | ||
| 662 | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 663 | local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 664 | prt.Anchored = true | |
| 665 | prt.CFrame = cframe | |
| 666 | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 667 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 668 | table.insert(Effects, {
| |
| 669 | prt, | |
| 670 | "Cylinder", | |
| 671 | delay, | |
| 672 | x3, | |
| 673 | y3, | |
| 674 | z3, | |
| 675 | msh | |
| 676 | }) | |
| 677 | end | |
| 678 | ||
| 679 | function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 680 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 681 | prt.Anchored = true | |
| 682 | prt.CFrame = cframe | |
| 683 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 684 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 685 | table.insert(Effects, {
| |
| 686 | prt, | |
| 687 | "Cylinder", | |
| 688 | delay, | |
| 689 | x3, | |
| 690 | y3, | |
| 691 | z3, | |
| 692 | msh | |
| 693 | }) | |
| 694 | end | |
| 695 | ||
| 696 | function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 697 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 698 | prt.Anchored = true | |
| 699 | prt.CFrame = cframe | |
| 700 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 701 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 702 | table.insert(Effects, {
| |
| 703 | prt, | |
| 704 | "Cylinder", | |
| 705 | delay, | |
| 706 | x3, | |
| 707 | y3, | |
| 708 | z3, | |
| 709 | msh | |
| 710 | }) | |
| 711 | end | |
| 712 | ||
| 713 | ||
| 714 | function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 715 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 716 | prt.Anchored = true | |
| 717 | prt.CFrame = cframe | |
| 718 | local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 719 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 720 | table.insert(Effects, {
| |
| 721 | prt, | |
| 722 | "Cylinder", | |
| 723 | delay, | |
| 724 | x3, | |
| 725 | y3, | |
| 726 | z3, | |
| 727 | msh | |
| 728 | }) | |
| 729 | end | |
| 730 | ||
| 731 | function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
| 732 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
| 733 | prt.Anchored = true | |
| 734 | prt.CFrame = cframe | |
| 735 | local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 736 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 737 | table.insert(Effects, {
| |
| 738 | prt, | |
| 739 | "Cylinder", | |
| 740 | delay, | |
| 741 | x3, | |
| 742 | y3, | |
| 743 | z3, | |
| 744 | msh | |
| 745 | }) | |
| 746 | end | |
| 747 | ||
| 748 | function BreakEffect(brickcolor, cframe, x1, y1, z1) | |
| 749 | local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
| 750 | prt.Anchored = true | |
| 751 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 752 | local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
| |
| 753 | local num = math.random(10, 50) / 1000 | |
| 754 | game:GetService("Debris"):AddItem(prt, 10)
| |
| 755 | table.insert(Effects, {
| |
| 756 | prt, | |
| 757 | "Shatter", | |
| 758 | num, | |
| 759 | prt.CFrame, | |
| 760 | math.random() - math.random(), | |
| 761 | 0, | |
| 762 | math.random(50, 100) / 100 | |
| 763 | }) | |
| 764 | end | |
| 765 | ||
| 766 | function FindNearestHead(Position, Distance, SinglePlayer) | |
| 767 | if SinglePlayer then | |
| 768 | return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude | |
| 769 | end | |
| 770 | local List = {}
| |
| 771 | for i, v in pairs(workspace:GetChildren()) do | |
| 772 | if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
| |
| 773 | table.insert(List, v) | |
| 774 | end | |
| 775 | end | |
| 776 | return List | |
| 777 | end | |
| 778 | ||
| 779 | ||
| 780 | ||
| 781 | function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation) | |
| 782 | swait() | |
| 783 | local Bullet = Instance.new("Part",Workspace)
| |
| 784 | Bullet.Locked = true | |
| 785 | Bullet.Name = "Bullet" | |
| 786 | Bullet.Anchored = bounce | |
| 787 | Bullet.CanCollide = collide | |
| 788 | Bullet.Transparency = 0.24 | |
| 789 | Bullet.BrickColor = BrickColor.new(color) | |
| 790 | Bullet.Size = Vector3.new(0.2,0.2,5) | |
| 791 | Bullet.Material = "Neon" | |
| 792 | Bullet.Orientation = vt(0,0,0) | |
| 793 | local Bulletforce = Instance.new("BodyForce")
| |
| 794 | Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0) | |
| 795 | Bulletforce.Parent = Bullet | |
| 796 | Bullet.CFrame = thinggy.CFrame*CFrame.new(0.75,0.74,0) | |
| 797 | local bv = Instance.new("BodyVelocity",Bullet)
| |
| 798 | bv.maxForce = Vector3.new(math.huge,math.huge,math.huge) | |
| 799 | Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p) | |
| 800 | bv.velocity = Bullet.CFrame.lookVector*velocity | |
| 801 | deb:AddItem(bv,0.4) | |
| 802 | deb:AddItem(Bullet,30) | |
| 803 | ||
| 804 | Bullet.Touched:connect(function(hit) | |
| 805 | ||
| 806 | if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "Bullet" and Bullet.Anchored == false and hit.Name ~= "block" and hit.Name ~= "Shell") then | |
| 807 | local hitsound = Instance.new("Sound", Bullet)
| |
| 808 | hitsound.Volume = 3 | |
| 809 | hitsound.PlayOnRemove = true | |
| 810 | hitsound.SoundId = "http://roblox.com/asset/?id=578289949" | |
| 811 | hitsound.Pitch = 1 | |
| 812 | hitsound:Destroy() | |
| 813 | deb:AddItem(hitsound, 4) | |
| 814 | Bullet.Anchored = true | |
| 815 | Bullet.Transparency = 1 | |
| 816 | deb:AddItem(Bullet, 4) | |
| 817 | if hit.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
| |
| 818 | local bullethitsound = Instance.new("Sound", Bullet)
| |
| 819 | bullethitsound.Volume = 4 | |
| 820 | bullethitsound.PlayOnRemove = true | |
| 821 | bullethitsound.SoundId = "http://roblox.com/asset/?id=1452522753" | |
| 822 | bullethitsound.Pitch = 1 | |
| 823 | bullethitsound:Destroy() | |
| 824 | deb:AddItem(bullethitsound, 4) | |
| 825 | hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(23,42))
| |
| 826 | blood(12,Bullet.CFrame) | |
| 827 | end | |
| 828 | if hit.Parent:FindFirstChildOfClass("Humanoid") == nil then
| |
| 829 | for i = 1,math.random(2,7) do | |
| 830 | local block = Instance.new("Part",Workspace)
| |
| 831 | block.BrickColor = hit.BrickColor | |
| 832 | block.CFrame = Bullet.CFrame*CFrame.new(math.random(-4,6),math.random(1,3),math.random(-7,8)) | |
| 833 | block.Size = vt(0.3,0.4,0.3) | |
| 834 | block.Name = "block" | |
| 835 | block.Material = hit.Material | |
| 836 | block.Velocity = vt(math.random(-22,33),math.random(-20,40),math.random(-10,20)) | |
| 837 | deb:AddItem(block,8) | |
| 838 | end | |
| 839 | end | |
| 840 | coroutine.resume(coroutine.create(function() | |
| 841 | BlockEffect(BrickColor.new("New Yeller"), CFrame.new(Bullet.Position), 2, 2, 2, 1.5, 1.5, 1.5, 0.06)
| |
| 842 | ||
| 843 | end)) | |
| 844 | end | |
| 845 | end) | |
| 846 | coroutine.resume(coroutine.create(function() | |
| 847 | wait(0.5) | |
| 848 | while true do | |
| 849 | swait() | |
| 850 | Bullet.Velocity = Bullet.Velocity - Vector3.new(0, 14.81*.2, 0) | |
| 851 | end | |
| 852 | end)) | |
| 853 | ||
| 854 | end | |
| 855 | ||
| 856 | ||
| 857 | ||
| 858 | function blood(amount,pp) | |
| 859 | ||
| 860 | for i = 1,amount do | |
| 861 | local bloodpart = Instance.new("Part",Workspace)
| |
| 862 | bloodpart.Color = Color3.fromRGB(64,0,0) | |
| 863 | bloodpart.Size = vt(0.2,0.08,0.2) | |
| 864 | bloodpart.Archivable = true | |
| 865 | bloodpart.CFrame = pp | |
| 866 | bloodpart:BreakJoints() | |
| 867 | bloodpart.Velocity = (pp * CFrame.Angles(math.rad(math.random(20,30)*8), -math.rad(-40), math.rad(-20))).lookVector * 23 | |
| 868 | deb:AddItem(bloodpart,8) | |
| 869 | end | |
| 870 | end | |
| 871 | ||
| 872 | ||
| 873 | ||
| 874 | ||
| 875 | ||
| 876 | ||
| 877 | local ammo = 8 | |
| 878 | function reload() | |
| 879 | ||
| 880 | attack = true | |
| 881 | RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) *angles(0,0,0),1) | |
| 882 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * angles(0,0,0),1) | |
| 883 | Torso.Neck.C1 = clerp(Torso.Neck.C1,necko2 *angles(0,0,0),1) | |
| 884 | for i = 0,1.6,0.1 do | |
| 885 | swait() | |
| 886 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(9),math.rad(0),math.rad(0)),.1) | |
| 887 | RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.5, -0.3) * angles(math.rad(90), math.rad(0), math.rad(-23)),.2) | |
| 888 | LW.C0 = clerp(LW.C0, CFrame.new(-.75, 0.5, -.9) * angles(math.rad(70), math.rad(-12), math.rad(47)),.2) | |
| 889 | HW.C0 = clerp(HW.C0, CFrame.new(0,-1,-0.14)*CFrame.Angles(math.rad(-90),math.rad(90),math.rad(0)),0.15) | |
| 890 | end | |
| 891 | local Clip2 = Instance.new("Part")
| |
| 892 | Clip2.Parent = Workspace | |
| 893 | Clip2.Size = Vector3.new(.2,.7,.2) | |
| 894 | Clip2.Archivable = true | |
| 895 | Clip2.Transparency = 0 | |
| 896 | Clip2.CanCollide = true | |
| 897 | Clip2.Anchored = true | |
| 898 | Clip2.BrickColor = BrickColor.New("Black")
| |
| 899 | Clip2.Material = "Metal" | |
| 900 | Clip2.CFrame = LeftArm.CFrame | |
| 901 | so("rbxassetid://1042833810",Handle,1,1)
| |
| 902 | Clip.Transparency = 1 | |
| 903 | Clip2:BreakJoints() | |
| 904 | Clip2.Anchored = false | |
| 905 | Clip2.Velocity = (LeftArm.CFrame * CFrame.Angles(math.rad(math.random(20,30)*8), -math.rad(-40), math.rad(-20))).lookVector * 42 | |
| 906 | game:service'Debris':AddItem(Clip2,10) | |
| 907 | ||
| 908 | for i = 0,1.6,0.1 do | |
| 909 | swait() | |
| 910 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(9),math.rad(0),math.rad(23)),.15) | |
| 911 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(108), math.rad(0), math.rad(63)),.1) | |
| 912 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0) * angles(math.rad(87), math.rad(32), math.rad(-47-6*i)),.34) | |
| 913 | HW.C0 = clerp(HW.C0, CFrame.new(0,-1,-0.34)*CFrame.Angles(math.rad(-70),math.rad(90),math.rad(0)),0.15) | |
| 914 | end | |
| 915 | ||
| 916 | ||
| 917 | for i = 0,1.8,0.1 do | |
| 918 | swait() | |
| 919 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(18),math.rad(0),math.rad(27)),.15) | |
| 920 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(100), math.rad(0), math.rad(63)),.2) | |
| 921 | LW.C0 = clerp(LW.C0, CFrame.new(-1.25, 0.5, 0) * angles(math.rad(-17), math.rad(0), math.rad(4)),.2) | |
| 922 | HW.C0 = clerp(HW.C0, CFrame.new(0,-1,-0.34)*CFrame.Angles(math.rad(-70),math.rad(90),math.rad(0)),0.15) | |
| 923 | end | |
| 924 | ||
| 925 | ||
| 926 | ||
| 927 | ||
| 928 | ||
| 929 | ||
| 930 | local Clip3 = Instance.new("Part")
| |
| 931 | Clip3.Parent = Workspace | |
| 932 | Clip3.Size = Vector3.new(.2,.7,.2) | |
| 933 | Clip3.Archivable = true | |
| 934 | Clip3.Transparency = 0 | |
| 935 | Clip3.CanCollide = false | |
| 936 | Clip3.BrickColor = BrickColor.new("Black")
| |
| 937 | Clip3.Material = "Metal" | |
| 938 | local Clip3weld = Instance.new("Weld")
| |
| 939 | Clip3weld.Parent = Clip3 | |
| 940 | Clip3weld.Part0 = LeftArm | |
| 941 | Clip3weld.Part1 = Clip3 | |
| 942 | Clip3weld.C1 = CFrame.new(-0.12, .65, -0.7)*CFrame.Angles(math.rad(-80),math.rad(0),math.rad(0)) | |
| 943 | Clip3weld.Part0 = LeftArm | |
| 944 | ||
| 945 | ||
| 946 | so("rbxassetid://1042833484",Handle,1,1)
| |
| 947 | for i = 0,1.7,0.1 do | |
| 948 | swait() | |
| 949 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(9),math.rad(0),math.rad(0)),.1) | |
| 950 | RW.C0 = clerp(RW.C0, CFrame.new(0.7, 0.5, -0.3) * angles(math.rad(90), math.rad(0), math.rad(-23)),.2) | |
| 951 | LW.C0 = clerp(LW.C0, CFrame.new(-.87, 0.5, -.9) * angles(math.rad(60), math.rad(-12), math.rad(62)),.25) | |
| 952 | HW.C0 = clerp(HW.C0, CFrame.new(0,-1,-0.14)*CFrame.Angles(math.rad(-90),math.rad(90),math.rad(0)),0.15) | |
| 953 | end | |
| 954 | ||
| 955 | Clip3:Destroy() | |
| 956 | Clip.Transparency = 0 | |
| 957 | so("rbxassetid://170160994",Handle,1,1)
| |
| 958 | ||
| 959 | ||
| 960 | ||
| 961 | ||
| 962 | for i = 0,1.6,0.1 do | |
| 963 | swait() | |
| 964 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(-14)),.1) | |
| 965 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-33)),.2) | |
| 966 | LW.C0 = clerp(LW.C0, CFrame.new(-.75, 0.7, -.8) * angles(math.rad(60), math.rad(-12), math.rad(57)),.13) | |
| 967 | HW.C0 = clerp(HW.C0, CFrame.new(0,-1,-0.14)*CFrame.Angles(math.rad(-100),math.rad(90),math.rad(0)),0.15) | |
| 968 | end | |
| 969 | ||
| 970 | ||
| 971 | ||
| 972 | so("rbxassetid://170160964",Handle ,1,1)
| |
| 973 | ||
| 974 | ||
| 975 | for i = 0,1.6,0.1 do | |
| 976 | swait() | |
| 977 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(-8)),.1) | |
| 978 | RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-33)),.2) | |
| 979 | LW.C0 = clerp(LW.C0, CFrame.new(-.75, 0.7, -1) * angles(math.rad(60), math.rad(-12), math.rad(37)),.2) | |
| 980 | HW.C0 = clerp(HW.C0, CFrame.new(0,-1,-0.14)*CFrame.Angles(math.rad(-100),math.rad(90),math.rad(0)),0.15) | |
| 981 | end | |
| 982 | ammo = 8 | |
| 983 | attack = false | |
| 984 | end | |
| 985 | ||
| 986 | local recoil = 0 | |
| 987 | local maxrecoil = 0 | |
| 988 | ||
| 989 | ||
| 990 | function shoot() | |
| 991 | recoil = recoil + .6 | |
| 992 | ammo = ammo - 1 | |
| 993 | local Shell = Instance.new("Part")
| |
| 994 | Shell.Parent = Workspace | |
| 995 | Shell.Size = Vector3.new(.1,.3,.1) | |
| 996 | Shell.Archivable = true | |
| 997 | Shell.Transparency = 0 | |
| 998 | Shell.Name = "Shell" | |
| 999 | Shell.CanCollide = true | |
| 1000 | Shell.BrickColor = BrickColor.new("New Yeller")
| |
| 1001 | Shell.Material = "Neon" | |
| 1002 | Shell.CFrame = bhole.CFrame*CFrame.new(-0.2,0.5,0) | |
| 1003 | Shell.Velocity = (bhole.CFrame * CFrame.Angles(math.rad(math.random(20,30)*8), -math.rad(-40), math.rad(-20))).lookVector * 42 | |
| 1004 | ||
| 1005 | ||
| 1006 | local SLight = Instance.new('PointLight', bullethole)
| |
| 1007 | SLight.Range = 12 | |
| 1008 | SLight.Color = Color3.new(1,.6,.1) | |
| 1009 | SLight.Brightness = 3 | |
| 1010 | game:service'Debris':AddItem(SLight, .05) | |
| 1011 | ||
| 1012 | ||
| 1013 | ||
| 1014 | game:service'Debris':AddItem(Shell,7) | |
| 1015 | ||
| 1016 | so("rbxassetid://966405773",bullethole,1,1)
| |
| 1017 | Bullets(bullethole,0,0,"New Yeller",300,25.5,false,false) | |
| 1018 | ||
| 1019 | ||
| 1020 | accuracy1.Position = UDim2.new(0, -recoil*10, .5, -1) | |
| 1021 | ||
| 1022 | accuracy2.Position = UDim2.new(1, -8 + recoil*10, .5, -1) | |
| 1023 | ||
| 1024 | accuracy3.Position = UDim2.new(.5, -1, 0, -recoil*10) | |
| 1025 | ||
| 1026 | accuracy4.Position = UDim2.new(.5, -1, 1, -8 + recoil*10) | |
| 1027 | ||
| 1028 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.rad(math.random(-26.35*1.8,26.35*1.8)*recoil),math.rad(math.random(-26.35*1.8,26.35*1.8)*recoil),0.35*1.8*recoil),0.14) | |
| 1029 | ||
| 1030 | ||
| 1031 | RW.C0 = clerp(RW.C0, CFrame.new(0, 0.67, -0.25) * angles(math.rad(114), math.rad(0), math.rad(0)),.2) | |
| 1032 | LW.C0 = clerp(LW.C0, CFrame.new(-.35, 0.67, -0.66) * angles(math.rad(104), math.rad(0), math.rad(37)),.4) | |
| 1033 | HW.C0 = clerp(HW.C0, CFrame.new(0,-0.92,-0.24)*CFrame.Angles(math.rad(-25),math.rad(90),math.rad(0)),0.6) | |
| 1034 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12),math.rad(0),math.rad(0)),.4) | |
| 1035 | attack = false | |
| 1036 | ||
| 1037 | end | |
| 1038 | ||
| 1039 | ||
| 1040 | mouse.KeyDown:connect(function(key) | |
| 1041 | ||
| 1042 | if key == 'r' and attack == false then | |
| 1043 | reload() | |
| 1044 | end | |
| 1045 | end) | |
| 1046 | ||
| 1047 | ||
| 1048 | mouse.Button1Down:connect(function() | |
| 1049 | if attack == false and ammo > 0 then | |
| 1050 | if Swing == 2 then | |
| 1051 | Humanoid.WalkSpeed = 16 | |
| 1052 | end | |
| 1053 | shoot() | |
| 1054 | end | |
| 1055 | end) | |
| 1056 | ||
| 1057 | ||
| 1058 | ||
| 1059 | mouse.Button2Down:connect(function() | |
| 1060 | aim = true | |
| 1061 | Character.Humanoid.WalkSpeed = 16 | |
| 1062 | accuracyFrame.Visible = false | |
| 1063 | end) | |
| 1064 | ||
| 1065 | ||
| 1066 | mouse.Button2Up:connect(function() | |
| 1067 | aim = false | |
| 1068 | accuracyFrame.Visible = true | |
| 1069 | end) | |
| 1070 | ||
| 1071 | ||
| 1072 | ||
| 1073 | ||
| 1074 | ||
| 1075 | ||
| 1076 | mouse.KeyDown:connect(function(key) | |
| 1077 | if string.byte(key) == 48 then | |
| 1078 | Swing = 2 | |
| 1079 | aim = false | |
| 1080 | Humanoid.WalkSpeed = 32 | |
| 1081 | end | |
| 1082 | ||
| 1083 | end) | |
| 1084 | ||
| 1085 | mouse.KeyUp:connect(function(key) | |
| 1086 | if string.byte(key) == 48 then | |
| 1087 | Swing = 1 | |
| 1088 | Humanoid.WalkSpeed = 16 | |
| 1089 | ||
| 1090 | end | |
| 1091 | end) | |
| 1092 | local look = 0 | |
| 1093 | ||
| 1094 | ||
| 1095 | ||
| 1096 | while true do | |
| 1097 | swait() | |
| 1098 | sine = sine + change | |
| 1099 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
| 1100 | local velderp=RootPart.Velocity.y | |
| 1101 | RightArm.LocalTransparencyModifier = 0 | |
| 1102 | LeftArm.LocalTransparencyModifier = 0 | |
| 1103 | for _,v in pairs(K1911:GetChildren()) do | |
| 1104 | v.LocalTransparencyModifier = 0 | |
| 1105 | end | |
| 1106 | ||
| 1107 | ||
| 1108 | ||
| 1109 | if recoil > 0 then | |
| 1110 | recoil = recoil - .025 | |
| 1111 | accuracy1.Position = UDim2.new(0, -recoil*10, .5, -1) | |
| 1112 | ||
| 1113 | accuracy2.Position = UDim2.new(1, -8 + recoil*10, .5, -1) | |
| 1114 | ||
| 1115 | accuracy3.Position = UDim2.new(.5, -1, 0, -recoil*10) | |
| 1116 | ||
| 1117 | accuracy4.Position = UDim2.new(.5, -1, 1, -8 + recoil*10) | |
| 1118 | ||
| 1119 | end | |
| 1120 | ||
| 1121 | ||
| 1122 | if attack == false then | |
| 1123 | ||
| 1124 | HW.C0 = clerp(HW.C0, CFrame.new(0,-0.72,-0.14)*CFrame.Angles(math.rad(-95),math.rad(90),math.rad(0)),0.15) | |
| 1125 | RW.C1 = clerp(RW.C1, CFrame.new(0, 0.5, 0) * angles(-math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0),.25) | |
| 1126 | LW.C1 = clerp(LW.C1, CFrame.new(0, 0.5, 0) * angles(-math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0),.25) | |
| 1127 | Torso.Neck.C1 = clerp(Torso.Neck.C1,necko2 *angles(math.asin((mouse.Hit.p-mouse.Origin.p).unit.y),0,0),.25) | |
| 1128 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.08) | |
| 1129 | if aim == false and torvel <1 then | |
| 1130 | cam.FieldOfView = lerp(cam.FieldOfView, 90, 0.076) | |
| 1131 | RW.C0 = clerp(RW.C0, CFrame.new(0.95, 0.3, -0.2) * angles(math.rad(90), math.rad(0), math.rad(0)+RootPart.RotVelocity.Y / 16),.2) | |
| 1132 | LW.C0 = clerp(LW.C0, CFrame.new(-.15, 0.3, -.65) * angles(math.rad(80), math.rad(0), math.rad(53)- RootPart.RotVelocity.Y / 32),.2) | |
| 1133 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.25) | |
| 1134 | end | |
| 1135 | if aim == false and torvel>1 and torvel<28 then | |
| 1136 | cam.FieldOfView = lerp(cam.FieldOfView, 100, 0.076) | |
| 1137 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0+0.57*math.cos(sine/8),0+0.34*math.sin(sine/4),0),0.15) | |
| 1138 | RW.C0 = clerp(RW.C0, CFrame.new(0.95, 0.3, -0.2) * angles(math.rad(90), math.rad(0), math.rad(0)+RootPart.RotVelocity.Y / 16),.2) | |
| 1139 | LW.C0 = clerp(LW.C0, CFrame.new(-.15, 0.3, -.65) * angles(math.rad(80), math.rad(0), math.rad(53)- RootPart.RotVelocity.Y / 32),.2) | |
| 1140 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.25) | |
| 1141 | end | |
| 1142 | ||
| 1143 | if aim == false and torvel>28 then | |
| 1144 | cam.FieldOfView = lerp(cam.FieldOfView, 120, 0.076) | |
| 1145 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0+0.67*math.cos(sine/6),0+0.44*math.sin(sine/3),0),0.15) | |
| 1146 | RW.C0 = clerp(RW.C0, CFrame.new(0.95, 0.4, -0.2) * angles(math.rad(60), math.rad(0), math.rad(0)+RootPart.RotVelocity.Y / 16),.2) | |
| 1147 | LW.C0 = clerp(LW.C0, CFrame.new(-.15, 0.3, -.65) * angles(math.rad(30), math.rad(0), math.rad(53)- RootPart.RotVelocity.Y / 32),.2) | |
| 1148 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(12),math.rad(0),math.rad(-16)),.25) | |
| 1149 | end | |
| 1150 | ||
| 1151 | if aim == true then | |
| 1152 | cam.FieldOfView = lerp(cam.FieldOfView, 80, 0.076) | |
| 1153 | ||
| 1154 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(17),math.rad(14),math.rad(0)),.34) | |
| 1155 | RW.C0 = clerp(RW.C0, CFrame.new(0, 0.33, -0.7) * angles(math.rad(90), math.rad(0), math.rad(0)+RootPart.RotVelocity.Y / 16),.34) | |
| 1156 | LW.C0 = clerp(LW.C0, CFrame.new(-.65, 0.33, -1.15) * angles(math.rad(80), math.rad(0), math.rad(37)- RootPart.RotVelocity.Y / 32),.34) | |
| 1157 | end | |
| 1158 | ||
| 1159 | if aim == true and torvel>1 then | |
| 1160 | Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0+0.17*math.cos(sine/8),0+0.14*math.sin(sine/4),0),0.15) | |
| 1161 | Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(17),math.rad(14),math.rad(0)),.34) | |
| 1162 | RW.C0 = clerp(RW.C0, CFrame.new(0, 0.33, -0.7) * angles(math.rad(90), math.rad(0), math.rad(0)+RootPart.RotVelocity.Y / 16),.34) | |
| 1163 | LW.C0 = clerp(LW.C0, CFrame.new(-.65, 0.33, -1.15) * angles(math.rad(80), math.rad(0), math.rad(37)- RootPart.RotVelocity.Y / 32),.34) | |
| 1164 | end | |
| 1165 | end | |
| 1166 | ||
| 1167 | ||
| 1168 | ||
| 1169 | ||
| 1170 | ||
| 1171 | ||
| 1172 | ||
| 1173 | ||
| 1174 | ||
| 1175 | ||
| 1176 | ||
| 1177 | ||
| 1178 | ||
| 1179 | ||
| 1180 | ||
| 1181 | ||
| 1182 | if 0 < #Effects then | |
| 1183 | for e = 1, #Effects do | |
| 1184 | if Effects[e] ~= nil then | |
| 1185 | local Thing = Effects[e] | |
| 1186 | if Thing ~= nil then | |
| 1187 | local Part = Thing[1] | |
| 1188 | local Mode = Thing[2] | |
| 1189 | local Delay = Thing[3] | |
| 1190 | local IncX = Thing[4] | |
| 1191 | local IncY = Thing[5] | |
| 1192 | local IncZ = Thing[6] | |
| 1193 | if Thing[2] == "CylinderClang" then | |
| 1194 | if Thing[3] <= 1 then | |
| 1195 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
| 1196 | Thing[7] = Thing[1].CFrame | |
| 1197 | effect("New Yeller", 0, Thing[8], Thing[7])
| |
| 1198 | Thing[8] = Thing[7] | |
| 1199 | Thing[3] = Thing[3] + Thing[4] | |
| 1200 | else | |
| 1201 | Part.Parent = nil | |
| 1202 | table.remove(Effects, e) | |
| 1203 | end | |
| 1204 | end | |
| 1205 | if Thing[2] == "showDamage" then | |
| 1206 | if Thing[6] < Thing[5] then | |
| 1207 | Thing[6] = Thing[6] + 1 | |
| 1208 | else | |
| 1209 | if Thing[6] < Thing[7] then | |
| 1210 | Thing[4].position = Thing[4].position + vt(0, -0.2, 0) | |
| 1211 | Thing[6] = Thing[6] + 1 | |
| 1212 | else | |
| 1213 | if Thing[6] < Thing[8] then | |
| 1214 | Thing[6] = Thing[6] + 1 | |
| 1215 | else | |
| 1216 | if Thing[6] < Thing[9] then | |
| 1217 | Thing[6] = Thing[6] + 1 | |
| 1218 | Thing[4].position = Thing[4].position + vt(0, 0.2, 0) | |
| 1219 | Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1 | |
| 1220 | Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1 | |
| 1221 | else | |
| 1222 | Thing[1].Parent = nil | |
| 1223 | table.remove(Effects, e) | |
| 1224 | end | |
| 1225 | end | |
| 1226 | end | |
| 1227 | end | |
| 1228 | end | |
| 1229 | if Thing[2] == "PartiEmi" then | |
| 1230 | Thing[3] = Thing[3] - 1 | |
| 1231 | if Thing[3] <= 0 then | |
| 1232 | Thing[1].Enabled = false | |
| 1233 | table.remove(Effects, e) | |
| 1234 | end | |
| 1235 | end | |
| 1236 | if Thing[2] == "AdjuEff" then | |
| 1237 | if 0 < Thing[3] then | |
| 1238 | Thing[3] = Thing[3] - 1 | |
| 1239 | Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0) | |
| 1240 | Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0) | |
| 1241 | Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1 | |
| 1242 | else | |
| 1243 | Thing[1].Parent = nil | |
| 1244 | table.remove(Effects, e) | |
| 1245 | end | |
| 1246 | end | |
| 1247 | if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then | |
| 1248 | if Thing[1].Transparency <= 1 then | |
| 1249 | if Thing[2] == "Block1" then | |
| 1250 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1251 | Mesh = Thing[7] | |
| 1252 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1253 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1254 | else | |
| 1255 | if Thing[2] == "Block2" then | |
| 1256 | Thing[1].CFrame = Thing[1].CFrame | |
| 1257 | Mesh = Thing[7] | |
| 1258 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1259 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1260 | else | |
| 1261 | if Thing[2] == "Block3" then | |
| 1262 | Thing[9] = Thing[9] + 0.5 | |
| 1263 | Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0) | |
| 1264 | Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
| 1265 | Mesh = Thing[7] | |
| 1266 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1267 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1268 | else | |
| 1269 | if Thing[2] == "Skull" then | |
| 1270 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8]) | |
| 1271 | Mesh = Thing[7] | |
| 1272 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1273 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1274 | else | |
| 1275 | if Thing[2] == "Cylinder" then | |
| 1276 | Mesh = Thing[7] | |
| 1277 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1278 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1279 | else | |
| 1280 | if Thing[2] == "Cylinder2" then | |
| 1281 | Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0) | |
| 1282 | Mesh = Thing[7] | |
| 1283 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1284 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1285 | else | |
| 1286 | if Thing[2] == "Blood" then | |
| 1287 | Mesh = Thing[7] | |
| 1288 | Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0) | |
| 1289 | Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6]) | |
| 1290 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1291 | else | |
| 1292 | if Thing[2] == "Elec" then | |
| 1293 | Mesh = Thing[10] | |
| 1294 | Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9]) | |
| 1295 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1296 | else | |
| 1297 | if Thing[2] == "Disappear" then | |
| 1298 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
| 1299 | end | |
| 1300 | end | |
| 1301 | end | |
| 1302 | end | |
| 1303 | end | |
| 1304 | end | |
| 1305 | end | |
| 1306 | end | |
| 1307 | end | |
| 1308 | else | |
| 1309 | Part.Parent = nil | |
| 1310 | table.remove(Effects, e) | |
| 1311 | end | |
| 1312 | end | |
| 1313 | end | |
| 1314 | end | |
| 1315 | end | |
| 1316 | end | |
| 1317 | ||
| 1318 | ||
| 1319 | end |