SHOW:
|
|
- or go back to the newest paste.
1 | - | -- Made by 1ndrew Ballista |
1 | + | --https://github.com/Mokiros/roblox-FE-compatibility |
2 | - | --Controls |
2 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
3 | - | --T for Stand by |
3 | + | local Player,game,owner = owner,game |
4 | - | --R for Reload |
4 | + | local RealPlayer = Player |
5 | - | --Right Click to Aim |
5 | + | do |
6 | - | --Q for Inspect |
6 | + | print("FE Compatibility code V2 by Mokiros") |
7 | - | --C to Crouch |
7 | + | local RealPlayer = RealPlayer |
8 | - | --X to get back up |
8 | + | script.Parent = RealPlayer.Character |
9 | - | --Left Shift to Sprint |
9 | + | |
10 | - | --Q to cock the chamber faster |
10 | + | --Fake event to make stuff like Mouse.KeyDown work |
11 | - | --G for safe mode |
11 | + | local Disconnect_Function = function(this) |
12 | - | function sandbox(var,func) |
12 | + | this[1].Functions[this[2]] = nil |
13 | - | local env = getfenv(func) |
13 | + | end |
14 | - | local newenv = setmetatable({},{ |
14 | + | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}} |
15 | - | __index = function(self,k) |
15 | + | local FakeEvent_Metatable = {__index={ |
16 | - | if k=="script" then |
16 | + | Connect = function(this,f) |
17 | - | return var |
17 | + | local i = tostring(math.random(0,10000)) |
18 | - | else |
18 | + | while this.Functions[i] do |
19 | - | return env[k] |
19 | + | i = tostring(math.random(0,10000)) |
20 | end | |
21 | - | end, |
21 | + | this.Functions[i] = f |
22 | - | }) |
22 | + | return setmetatable({this,i},Disconnect_Metatable) |
23 | - | setfenv(func,newenv) |
23 | + | end |
24 | - | return func |
24 | + | }} |
25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
26 | - | cors = {} |
26 | + | local function fakeEvent() |
27 | - | mas = Instance.new("Model",game:GetService("Lighting")) |
27 | + | return setmetatable({Functions={}},FakeEvent_Metatable) |
28 | - | Tool0 = Instance.new("Tool") |
28 | + | end |
29 | - | Part1 = Instance.new("Part") |
29 | + | |
30 | - | CylinderMesh2 = Instance.new("CylinderMesh") |
30 | + | --Creating fake input objects with fake variables |
31 | - | Part3 = Instance.new("Part") |
31 | + | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()} |
32 | - | CylinderMesh4 = Instance.new("CylinderMesh") |
32 | + | FakeMouse.keyUp = FakeMouse.KeyUp |
33 | - | Decal5 = Instance.new("Decal") |
33 | + | FakeMouse.keyDown = FakeMouse.KeyDown |
34 | - | Part6 = Instance.new("Part") |
34 | + | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} |
35 | - | BlockMesh7 = Instance.new("BlockMesh") |
35 | + | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) |
36 | - | Part8 = Instance.new("Part") |
36 | + | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil |
37 | - | BlockMesh9 = Instance.new("BlockMesh") |
37 | + | end} |
38 | - | Part10 = Instance.new("Part") |
38 | + | --Merged 2 functions into one by checking amount of arguments |
39 | - | SpecialMesh11 = Instance.new("SpecialMesh") |
39 | + | CAS.UnbindAction = CAS.BindAction |
40 | - | Part12 = Instance.new("Part") |
40 | + | |
41 | - | SpecialMesh13 = Instance.new("SpecialMesh") |
41 | + | --This function will trigger the events that have been :Connect()'ed |
42 | - | Part14 = Instance.new("Part") |
42 | + | local function TriggerEvent(self,ev,...) |
43 | - | SpecialMesh15 = Instance.new("SpecialMesh") |
43 | + | for _,f in pairs(self[ev].Functions) do |
44 | - | Part16 = Instance.new("Part") |
44 | + | f(...) |
45 | - | SurfaceGui17 = Instance.new("SurfaceGui") |
45 | + | end |
46 | - | Frame18 = Instance.new("Frame") |
46 | + | end |
47 | - | ImageLabel19 = Instance.new("ImageLabel") |
47 | + | FakeMouse.TriggerEvent = TriggerEvent |
48 | - | BlockMesh20 = Instance.new("BlockMesh") |
48 | + | UIS.TriggerEvent = TriggerEvent |
49 | - | Part21 = Instance.new("Part") |
49 | + | |
50 | - | CylinderMesh22 = Instance.new("CylinderMesh") |
50 | + | --Client communication |
51 | - | Part23 = Instance.new("Part") |
51 | + | local Event = Instance.new("RemoteEvent") |
52 | - | SpecialMesh24 = Instance.new("SpecialMesh") |
52 | + | Event.Name = "UserInput_Event" |
53 | - | Part25 = Instance.new("Part") |
53 | + | Event.OnServerEvent:Connect(function(plr,io) |
54 | - | BlockMesh26 = Instance.new("BlockMesh") |
54 | + | if plr~=RealPlayer then return end |
55 | - | Part27 = Instance.new("Part") |
55 | + | FakeMouse.Target = io.Target |
56 | - | BlockMesh28 = Instance.new("BlockMesh") |
56 | + | FakeMouse.Hit = io.Hit |
57 | - | Part29 = Instance.new("Part") |
57 | + | if not io.isMouse then |
58 | - | CylinderMesh30 = Instance.new("CylinderMesh") |
58 | + | local b = io.UserInputState == Enum.UserInputState.Begin |
59 | - | Part31 = Instance.new("Part") |
59 | + | if io.UserInputType == Enum.UserInputType.MouseButton1 then |
60 | - | BlockMesh32 = Instance.new("BlockMesh") |
60 | + | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") |
61 | - | Part33 = Instance.new("Part") |
61 | + | end |
62 | - | SpecialMesh34 = Instance.new("SpecialMesh") |
62 | + | if io.UserInputType == Enum.UserInputType.MouseButton2 then |
63 | - | Part35 = Instance.new("Part") |
63 | + | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") |
64 | - | SpecialMesh36 = Instance.new("SpecialMesh") |
64 | + | end |
65 | - | Part37 = Instance.new("Part") |
65 | + | for _,t in pairs(CAS.Actions) do |
66 | - | Decal38 = Instance.new("Decal") |
66 | + | for _,k in pairs(t.Keys) do |
67 | - | BlockMesh39 = Instance.new("BlockMesh") |
67 | + | if k==io.KeyCode then |
68 | - | Part40 = Instance.new("Part") |
68 | + | t.Function(t.Name,io.UserInputState,io) |
69 | - | SpecialMesh41 = Instance.new("SpecialMesh") |
69 | + | end |
70 | - | Part42 = Instance.new("Part") |
70 | + | end |
71 | - | CylinderMesh43 = Instance.new("CylinderMesh") |
71 | + | end |
72 | - | Part44 = Instance.new("Part") |
72 | + | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) |
73 | - | CylinderMesh45 = Instance.new("CylinderMesh") |
73 | + | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) |
74 | - | Part46 = Instance.new("Part") |
74 | + | end |
75 | - | CylinderMesh47 = Instance.new("CylinderMesh") |
75 | + | end) |
76 | - | Part48 = Instance.new("Part") |
76 | + | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event") |
77 | - | BlockMesh49 = Instance.new("BlockMesh") |
77 | + | local Mouse = owner:GetMouse() |
78 | - | Part50 = Instance.new("Part") |
78 | + | local UIS = game:GetService("UserInputService") |
79 | - | BlockMesh51 = Instance.new("BlockMesh") |
79 | + | local input = function(io,RobloxHandled) |
80 | - | Part52 = Instance.new("Part") |
80 | + | if RobloxHandled then return end |
81 | - | BlockMesh53 = Instance.new("BlockMesh") |
81 | + | --Since InputObject is a client-side instance, we create and pass table instead |
82 | - | Part54 = Instance.new("Part") |
82 | + | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target}) |
83 | - | BlockMesh55 = Instance.new("BlockMesh") |
83 | + | end |
84 | - | Part56 = Instance.new("Part") |
84 | + | UIS.InputBegan:Connect(input) |
85 | - | BlockMesh57 = Instance.new("BlockMesh") |
85 | + | UIS.InputEnded:Connect(input) |
86 | - | Part58 = Instance.new("Part") |
86 | + | |
87 | - | BlockMesh59 = Instance.new("BlockMesh") |
87 | + | local h,t |
88 | - | Part60 = Instance.new("Part") |
88 | + | --Give the server mouse data every second frame, but only if the values changed |
89 | - | BlockMesh61 = Instance.new("BlockMesh") |
89 | + | --If player is not moving their mouse, client won't fire events |
90 | - | Part62 = Instance.new("Part") |
90 | + | local HB = game:GetService("RunService").Heartbeat |
91 | - | CylinderMesh63 = Instance.new("CylinderMesh") |
91 | + | while true do |
92 | - | Part64 = Instance.new("Part") |
92 | + | if h~=Mouse.Hit or t~=Mouse.Target then |
93 | - | SpecialMesh65 = Instance.new("SpecialMesh") |
93 | + | h,t=Mouse.Hit,Mouse.Target |
94 | - | Part66 = Instance.new("Part") |
94 | + | Event:FireServer({isMouse=true,Target=t,Hit=h}) |
95 | - | BlockMesh67 = Instance.new("BlockMesh") |
95 | + | end |
96 | - | Part68 = Instance.new("Part") |
96 | + | --Wait 2 frames |
97 | - | BlockMesh69 = Instance.new("BlockMesh") |
97 | + | for i=1,2 do |
98 | - | Part70 = Instance.new("Part") |
98 | + | HB:Wait() |
99 | - | BlockMesh71 = Instance.new("BlockMesh") |
99 | + | end |
100 | - | Part72 = Instance.new("Part") |
100 | + | end]==],script) |
101 | - | CylinderMesh73 = Instance.new("CylinderMesh") |
101 | + | |
102 | - | Part74 = Instance.new("Part") |
102 | + | ----Sandboxed game object that allows the usage of client-side methods and services |
103 | - | SpecialMesh75 = Instance.new("SpecialMesh") |
103 | + | --Real game object |
104 | - | Part76 = Instance.new("Part") |
104 | + | local RealGame = game |
105 | - | BlockMesh77 = Instance.new("BlockMesh") |
105 | + | |
106 | - | Part78 = Instance.new("Part") |
106 | + | --Metatable for fake service |
107 | - | BlockMesh79 = Instance.new("BlockMesh") |
107 | + | local FakeService_Metatable = { |
108 | - | Part80 = Instance.new("Part") |
108 | + | __index = function(self,k) |
109 | - | BlockMesh81 = Instance.new("BlockMesh") |
109 | + | local s = rawget(self,"_RealService") |
110 | - | Part82 = Instance.new("Part") |
110 | + | if s then |
111 | - | CylinderMesh83 = Instance.new("CylinderMesh") |
111 | + | return typeof(s[k])=="function" |
112 | - | Part84 = Instance.new("Part") |
112 | + | and function(_,...)return s[k](s,...)end or s[k] |
113 | - | CylinderMesh85 = Instance.new("CylinderMesh") |
113 | + | end |
114 | - | Part86 = Instance.new("Part") |
114 | + | end, |
115 | - | BlockMesh87 = Instance.new("BlockMesh") |
115 | + | __newindex = function(self,k,v) |
116 | - | Part88 = Instance.new("Part") |
116 | + | local s = rawget(self,"_RealService") |
117 | - | BlockMesh89 = Instance.new("BlockMesh") |
117 | + | if s then s[k]=v end |
118 | - | Part90 = Instance.new("Part") |
118 | + | end |
119 | - | BlockMesh91 = Instance.new("BlockMesh") |
119 | + | } |
120 | - | Part92 = Instance.new("Part") |
120 | + | local function FakeService(t,RealService) |
121 | - | BlockMesh93 = Instance.new("BlockMesh") |
121 | + | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService |
122 | - | Part94 = Instance.new("Part") |
122 | + | return setmetatable(t,FakeService_Metatable) |
123 | - | CylinderMesh95 = Instance.new("CylinderMesh") |
123 | + | end |
124 | - | Part96 = Instance.new("Part") |
124 | + | |
125 | - | SpecialMesh97 = Instance.new("SpecialMesh") |
125 | + | --Fake game object |
126 | - | Part98 = Instance.new("Part") |
126 | + | local FakeGame = { |
127 | - | BlockMesh99 = Instance.new("BlockMesh") |
127 | + | GetService = function(self,s) |
128 | - | Part100 = Instance.new("Part") |
128 | + | return rawget(self,s) or RealGame:GetService(s) |
129 | - | BlockMesh101 = Instance.new("BlockMesh") |
129 | + | end, |
130 | - | Part102 = Instance.new("Part") |
130 | + | Players = FakeService({ |
131 | - | SpecialMesh103 = Instance.new("SpecialMesh") |
131 | + | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player) |
132 | - | Part104 = Instance.new("Part") |
132 | + | },"Players"), |
133 | - | BlockMesh105 = Instance.new("BlockMesh") |
133 | + | UserInputService = FakeService(UIS,"UserInputService"), |
134 | - | Part106 = Instance.new("Part") |
134 | + | ContextActionService = FakeService(CAS,"ContextActionService"), |
135 | - | BlockMesh107 = Instance.new("BlockMesh") |
135 | + | RunService = FakeService({ |
136 | - | Part108 = Instance.new("Part") |
136 | + | _btrs = {}, |
137 | - | BlockMesh109 = Instance.new("BlockMesh") |
137 | + | RenderStepped = RealGame:GetService("RunService").Heartbeat, |
138 | - | Part110 = Instance.new("Part") |
138 | + | BindToRenderStep = function(self,name,_,fun) |
139 | - | CylinderMesh111 = Instance.new("CylinderMesh") |
139 | + | self._btrs[name] = self.Heartbeat:Connect(fun) |
140 | - | Part112 = Instance.new("Part") |
140 | + | end, |
141 | - | BlockMesh113 = Instance.new("BlockMesh") |
141 | + | UnbindFromRenderStep = function(self,name) |
142 | - | Part114 = Instance.new("Part") |
142 | + | self._btrs[name]:Disconnect() |
143 | - | BlockMesh115 = Instance.new("BlockMesh") |
143 | + | end, |
144 | - | Part116 = Instance.new("Part") |
144 | + | },"RunService") |
145 | - | BlockMesh117 = Instance.new("BlockMesh") |
145 | + | } |
146 | - | Part118 = Instance.new("Part") |
146 | + | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) |
147 | - | BlockMesh119 = Instance.new("BlockMesh") |
147 | + | FakeGame.service = FakeGame.GetService |
148 | - | Part120 = Instance.new("Part") |
148 | + | FakeService(FakeGame,game) |
149 | - | BlockMesh121 = Instance.new("BlockMesh") |
149 | + | --Changing owner to fake player object to support owner:GetMouse() |
150 | - | Part122 = Instance.new("Part") |
150 | + | game,owner = FakeGame,FakeGame.Players.LocalPlayer |
151 | - | BlockMesh123 = Instance.new("BlockMesh") |
151 | + | |
152 | - | Part124 = Instance.new("Part") |
152 | + | Ply = game.Players.LocalPlayer |
153 | - | SpecialMesh125 = Instance.new("SpecialMesh") |
153 | + | Char = Ply.Character |
154 | - | Part126 = Instance.new("Part") |
154 | + | Tor = Char.Torso |
155 | - | BlockMesh127 = Instance.new("BlockMesh") |
155 | + | He = Char.Head |
156 | - | Part128 = Instance.new("Part") |
156 | + | Ne = Tor.Neck |
157 | - | CylinderMesh129 = Instance.new("CylinderMesh") |
157 | + | Hu = Char.Humanoid |
158 | - | Part130 = Instance.new("Part") |
158 | + | LA = Char["Left Arm"] |
159 | - | BlockMesh131 = Instance.new("BlockMesh") |
159 | + | LL = Char["Left Leg"] |
160 | - | Part132 = Instance.new("Part") |
160 | + | RA = Char["Right Arm"] |
161 | - | BlockMesh133 = Instance.new("BlockMesh") |
161 | + | RL = Char["Right Leg"] |
162 | - | Part134 = Instance.new("Part") |
162 | + | LS = Tor["Left Shoulder"] |
163 | - | CylinderMesh135 = Instance.new("CylinderMesh") |
163 | + | RS = Tor["Right Shoulder"] |
164 | - | Part136 = Instance.new("Part") |
164 | + | LH = Tor["Left Hip"] |
165 | - | SpecialMesh137 = Instance.new("SpecialMesh") |
165 | + | RH = Tor["Right Hip"] |
166 | - | Part138 = Instance.new("Part") |
166 | + | Combo = 1 |
167 | - | CylinderMesh139 = Instance.new("CylinderMesh") |
167 | + | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
168 | - | Part140 = Instance.new("Part") |
168 | + | RP = Char.HumanoidRootPart |
169 | - | BlockMesh141 = Instance.new("BlockMesh") |
169 | + | RJ = RP.RootJoint |
170 | - | Part142 = Instance.new("Part") |
170 | + | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) |
171 | - | BlockMesh143 = Instance.new("BlockMesh") |
171 | + | LHCF = CFrame.Angles(0, math.rad(-90), 0) |
172 | - | Part144 = Instance.new("Part") |
172 | + | RHCF = CFrame.Angles(0, math.rad(90), 0) |
173 | - | BlockMesh145 = Instance.new("BlockMesh") |
173 | + | attack = false |
174 | - | Part146 = Instance.new("Part") |
174 | + | equipped = false |
175 | - | BlockMesh147 = Instance.new("BlockMesh") |
175 | + | local Anim = "Idle" |
176 | - | Part148 = Instance.new("Part") |
176 | + | Effects = { } |
177 | - | BlockMesh149 = Instance.new("BlockMesh") |
177 | + | cam = workspace.CurrentCamera |
178 | - | Part150 = Instance.new("Part") |
178 | + | local RbxUtility = LoadLibrary("RbxUtility") |
179 | - | BlockMesh151 = Instance.new("BlockMesh") |
179 | + | local Create = RbxUtility.Create |
180 | - | Part152 = Instance.new("Part") |
180 | + | local m = Create("Model"){ |
181 | - | BlockMesh153 = Instance.new("BlockMesh") |
181 | + | Parent = Char, |
182 | - | Part154 = Instance.new("Part") |
182 | + | Name = "WeaponModel", |
183 | - | BlockMesh155 = Instance.new("BlockMesh") |
183 | + | |
184 | - | Part156 = Instance.new("Part") |
184 | + | |
185 | - | BlockMesh157 = Instance.new("BlockMesh") |
185 | + | RS.Parent = nil |
186 | - | Part158 = Instance.new("Part") |
186 | + | LS.Parent = nil |
187 | - | BlockMesh159 = Instance.new("BlockMesh") |
187 | + | |
188 | - | Part160 = Instance.new("Part") |
188 | + | RW = Create("Weld"){ |
189 | - | BlockMesh161 = Instance.new("BlockMesh") |
189 | + | Name = "Right Shoulder", |
190 | - | Part162 = Instance.new("Part") |
190 | + | Part0 = Tor , |
191 | - | SpecialMesh163 = Instance.new("SpecialMesh") |
191 | + | C0 = CFrame.new(1.5, 0.5, 0), |
192 | - | Part164 = Instance.new("Part") |
192 | + | C1 = CFrame.new(0, 0.5, 0), |
193 | - | BlockMesh165 = Instance.new("BlockMesh") |
193 | + | Part1 = RA , |
194 | - | Part166 = Instance.new("Part") |
194 | + | Parent = Tor , |
195 | - | BlockMesh167 = Instance.new("BlockMesh") |
195 | + | |
196 | - | Part168 = Instance.new("Part") |
196 | + | |
197 | - | BlockMesh169 = Instance.new("BlockMesh") |
197 | + | LW = Create("Weld"){ |
198 | - | Part170 = Instance.new("Part") |
198 | + | Name = "Left Shoulder", |
199 | - | BlockMesh171 = Instance.new("BlockMesh") |
199 | + | Part0 = Tor , |
200 | - | Part172 = Instance.new("Part") |
200 | + | C0 = CFrame.new(-1.5, 0.5, 0), |
201 | - | SpecialMesh173 = Instance.new("SpecialMesh") |
201 | + | C1 = CFrame.new(0, 0.5, 0) , |
202 | - | Part174 = Instance.new("Part") |
202 | + | Part1 = LA , |
203 | - | BlockMesh175 = Instance.new("BlockMesh") |
203 | + | Parent = Tor , |
204 | - | Part176 = Instance.new("Part") |
204 | + | |
205 | - | BlockMesh177 = Instance.new("BlockMesh") |
205 | + | |
206 | - | Part178 = Instance.new("Part") |
206 | + | mouse = Ply:GetMouse() |
207 | - | CylinderMesh179 = Instance.new("CylinderMesh") |
207 | + | |
208 | - | Part180 = Instance.new("Part") |
208 | + | function RemoveOutlines(part) |
209 | - | BlockMesh181 = Instance.new("BlockMesh") |
209 | + | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
210 | - | Part182 = Instance.new("Part") |
210 | + | |
211 | - | BlockMesh183 = Instance.new("BlockMesh") |
211 | + | |
212 | - | Part184 = Instance.new("Part") |
212 | + | function CreatePart(FF, Par, Mat, Ref, Tra, BC, Nam, Siz) |
213 | - | BlockMesh185 = Instance.new("BlockMesh") |
213 | + | local Part = Create("Part"){ |
214 | - | Part186 = Instance.new("Part") |
214 | + | formFactor = FF, |
215 | - | BlockMesh187 = Instance.new("BlockMesh") |
215 | + | Parent = Par, |
216 | - | Part188 = Instance.new("Part") |
216 | + | Reflectance = Ref, |
217 | - | BlockMesh189 = Instance.new("BlockMesh") |
217 | + | Transparency = Tra, |
218 | - | Part190 = Instance.new("Part") |
218 | + | CanCollide = false, |
219 | - | CylinderMesh191 = Instance.new("CylinderMesh") |
219 | + | Locked = true, |
220 | - | Part192 = Instance.new("Part") |
220 | + | BrickColor = BrickColor.new(tostring(BC)), |
221 | - | BlockMesh193 = Instance.new("BlockMesh") |
221 | + | Name = Nam, |
222 | - | Part194 = Instance.new("Part") |
222 | + | Size = Siz, |
223 | - | CylinderMesh195 = Instance.new("CylinderMesh") |
223 | + | Position = Tor.Position, |
224 | - | Part196 = Instance.new("Part") |
224 | + | Material = Mat, |
225 | - | BlockMesh197 = Instance.new("BlockMesh") |
225 | + | |
226 | - | Part198 = Instance.new("Part") |
226 | + | RemoveOutlines(Part) |
227 | - | BlockMesh199 = Instance.new("BlockMesh") |
227 | + | return Part |
228 | - | Part200 = Instance.new("Part") |
228 | + | |
229 | - | SpecialMesh201 = Instance.new("SpecialMesh") |
229 | + | |
230 | - | Part202 = Instance.new("Part") |
230 | + | function CreateMesh(Ms, Par, MType, MId, OS, Sca) |
231 | - | BlockMesh203 = Instance.new("BlockMesh") |
231 | + | local Msh = Create(Ms){ |
232 | - | Part204 = Instance.new("Part") |
232 | + | Parent = Par, |
233 | - | BlockMesh205 = Instance.new("BlockMesh") |
233 | + | Offset = OS, |
234 | - | Part206 = Instance.new("Part") |
234 | + | Scale = Sca, |
235 | - | SpecialMesh207 = Instance.new("SpecialMesh") |
235 | + | |
236 | - | Decal208 = Instance.new("Decal") |
236 | + | if Ms == "SpecialMesh" then |
237 | - | Part209 = Instance.new("Part") |
237 | + | Msh.MeshType = MType |
238 | - | BlockMesh210 = Instance.new("BlockMesh") |
238 | + | Msh.MeshId = MId |
239 | - | Part211 = Instance.new("Part") |
239 | + | |
240 | - | BlockMesh212 = Instance.new("BlockMesh") |
240 | + | |
241 | - | Part213 = Instance.new("Part") |
241 | + | |
242 | - | SpecialMesh214 = Instance.new("SpecialMesh") |
242 | + | function CreateWeld(Par, PartA, PartB, CA, CB) |
243 | - | Part215 = Instance.new("Part") |
243 | + | local Weld = Create("Weld"){ |
244 | - | BlockMesh216 = Instance.new("BlockMesh") |
244 | + | Parent = Par, |
245 | - | Part217 = Instance.new("Part") |
245 | + | Part0 = PartA, |
246 | - | BlockMesh218 = Instance.new("BlockMesh") |
246 | + | Part1 = PartB, |
247 | - | Part219 = Instance.new("Part") |
247 | + | C0 = CA, |
248 | - | SpecialMesh220 = Instance.new("SpecialMesh") |
248 | + | C1 = CB, |
249 | - | Part221 = Instance.new("Part") |
249 | + | |
250 | - | BlockMesh222 = Instance.new("BlockMesh") |
250 | + | return Weld |
251 | - | Part223 = Instance.new("Part") |
251 | + | |
252 | - | CylinderMesh224 = Instance.new("CylinderMesh") |
252 | + | |
253 | - | Part225 = Instance.new("Part") |
253 | + | function CreateSound(id, par, vol, pit) |
254 | - | SpecialMesh226 = Instance.new("SpecialMesh") |
254 | + | coroutine.resume(coroutine.create(function() |
255 | - | Part227 = Instance.new("Part") |
255 | + | local sou = Create("Sound"){ |
256 | - | BlockMesh228 = Instance.new("BlockMesh") |
256 | + | Parent = par or workspace, |
257 | - | Part229 = Instance.new("Part") |
257 | + | Volume = vol, |
258 | - | BlockMesh230 = Instance.new("BlockMesh") |
258 | + | Pitch = pit or 1, |
259 | - | Part231 = Instance.new("Part") |
259 | + | SoundId = id, |
260 | - | SpecialMesh232 = Instance.new("SpecialMesh") |
260 | + | } |
261 | - | Part233 = Instance.new("Part") |
261 | + | wait() |
262 | - | BlockMesh234 = Instance.new("BlockMesh") |
262 | + | sou:play() |
263 | - | Part235 = Instance.new("Part") |
263 | + | end)) |
264 | - | BlockMesh236 = Instance.new("BlockMesh") |
264 | + | |
265 | - | Part237 = Instance.new("Part") |
265 | + | |
266 | - | SpecialMesh238 = Instance.new("SpecialMesh") |
266 | + | function clerp(a, b, t) |
267 | - | Part239 = Instance.new("Part") |
267 | + | return a:lerp(b, t) |
268 | - | BlockMesh240 = Instance.new("BlockMesh") |
268 | + | |
269 | - | Part241 = Instance.new("Part") |
269 | + | |
270 | - | Script242 = Instance.new("Script") |
270 | + | function rayCast(Pos, Dir, Max, Ignore) |
271 | - | BlockMesh243 = Instance.new("BlockMesh") |
271 | + | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) |
272 | - | Part244 = Instance.new("Part") |
272 | + | end |
273 | - | BlockMesh245 = Instance.new("BlockMesh") |
273 | + | |
274 | - | Part246 = Instance.new("Part") |
274 | + | function Damage(hit, damage, cooldown, Color1, Color2, HSound, HPitch) |
275 | - | Script247 = Instance.new("Script") |
275 | + | for i, v in pairs(hit:GetChildren()) do |
276 | - | BlockMesh248 = Instance.new("BlockMesh") |
276 | + | if v:IsA("Humanoid") and hit.Name ~= Char.Name then |
277 | - | Part249 = Instance.new("Part") |
277 | + | local find = v:FindFirstChild("Hitz") |
278 | - | BlockMesh250 = Instance.new("BlockMesh") |
278 | + | if not find then |
279 | - | Part251 = Instance.new("Part") |
279 | + | if v.Parent:findFirstChild("Head") then |
280 | - | BlockMesh252 = Instance.new("BlockMesh") |
280 | + | local BillG = Create("BillboardGui"){ |
281 | - | Part253 = Instance.new("Part") |
281 | + | Parent = v.Parent.Head, |
282 | - | SpecialMesh254 = Instance.new("SpecialMesh") |
282 | + | Size = UDim2.new(1, 0, 1, 0), |
283 | - | Part255 = Instance.new("Part") |
283 | + | Adornee = v.Parent.Head, |
284 | - | BlockMesh256 = Instance.new("BlockMesh") |
284 | + | StudsOffset = Vector3.new(math.random(-3, 3), math.random(3, 5), math.random(-3, 3)), |
285 | - | Part257 = Instance.new("Part") |
285 | + | } |
286 | - | SpecialMesh258 = Instance.new("SpecialMesh") |
286 | + | local TL = Create("TextLabel"){ |
287 | - | Part259 = Instance.new("Part") |
287 | + | Parent = BillG, |
288 | - | SpecialMesh260 = Instance.new("SpecialMesh") |
288 | + | Size = UDim2.new(3, 3, 3, 3), |
289 | - | Part261 = Instance.new("Part") |
289 | + | BackgroundTransparency = 1, |
290 | - | SpecialMesh262 = Instance.new("SpecialMesh") |
290 | + | Text = tostring(damage).."BANG!", |
291 | - | Part263 = Instance.new("Part") |
291 | + | TextColor3 = Color1.Color, |
292 | - | CylinderMesh264 = Instance.new("CylinderMesh") |
292 | + | TextStrokeColor3 = Color2.Color, |
293 | - | Part265 = Instance.new("Part") |
293 | + | TextStrokeTransparency = 0, |
294 | - | BlockMesh266 = Instance.new("BlockMesh") |
294 | + | TextXAlignment = Enum.TextXAlignment.Center, |
295 | - | Part267 = Instance.new("Part") |
295 | + | TextYAlignment = Enum.TextYAlignment.Center, |
296 | - | BlockMesh268 = Instance.new("BlockMesh") |
296 | + | FontSize = Enum.FontSize.Size18, |
297 | - | Part269 = Instance.new("Part") |
297 | + | Font = "ArialBold", |
298 | - | Decal270 = Instance.new("Decal") |
298 | + | } |
299 | - | BlockMesh271 = Instance.new("BlockMesh") |
299 | + | |
300 | - | Part272 = Instance.new("Part") |
300 | + | wait(1) |
301 | - | SpecialMesh273 = Instance.new("SpecialMesh") |
301 | + | for i = 0, 1, .1 do |
302 | - | Part274 = Instance.new("Part") |
302 | + | wait(.1) |
303 | - | CylinderMesh275 = Instance.new("CylinderMesh") |
303 | + | BillG.StudsOffset = BillG.StudsOffset + Vector3.new(0, .1, 0) |
304 | - | Part276 = Instance.new("Part") |
304 | + | |
305 | - | BlockMesh277 = Instance.new("BlockMesh") |
305 | + | BillG:Destroy() |
306 | - | Sound278 = Instance.new("Sound") |
306 | + | end)) |
307 | - | Sound279 = Instance.new("Sound") |
307 | + | |
308 | - | Sound280 = Instance.new("Sound") |
308 | + | v.Health = v.Health - damage |
309 | - | Sound281 = Instance.new("Sound") |
309 | + | local bool = Create("BoolValue"){ |
310 | - | Sound282 = Instance.new("Sound") |
310 | + | Parent = v, |
311 | - | Part283 = Instance.new("Part") |
311 | + | Name = 'Hitz', |
312 | - | BlockMesh284 = Instance.new("BlockMesh") |
312 | + | } |
313 | - | Sound285 = Instance.new("Sound") |
313 | + | if HSound ~= nil and HPitch ~= nil then |
314 | - | ParticleEmitter286 = Instance.new("ParticleEmitter") |
314 | + | CreateSound(HSound, hit, 1, HPitch) |
315 | - | ParticleEmitter287 = Instance.new("ParticleEmitter") |
315 | + | |
316 | - | SpotLight288 = Instance.new("SpotLight") |
316 | + | game:GetService("Debris"):AddItem(bool, cooldown) |
317 | - | ParticleEmitter289 = Instance.new("ParticleEmitter") |
317 | + | |
318 | - | Part290 = Instance.new("Part") |
318 | + | |
319 | - | BlockMesh291 = Instance.new("BlockMesh") |
319 | + | |
320 | - | Sound292 = Instance.new("Sound") |
320 | + | |
321 | - | Sound293 = Instance.new("Sound") |
321 | + | |
322 | - | Sound294 = Instance.new("Sound") |
322 | + | function MagnitudeDamage(Part, magni, mindam, maxdam, Color1, Color2, HitSound) |
323 | - | Sound295 = Instance.new("Sound") |
323 | + | for _, c in pairs(workspace:children()) do |
324 | - | Sound296 = Instance.new("Sound") |
324 | + | local hum = c:findFirstChild("Humanoid") |
325 | - | Sound297 = Instance.new("Sound") |
325 | + | if hum ~= nil then |
326 | - | Sound298 = Instance.new("Sound") |
326 | + | local head = c:findFirstChild("Torso") |
327 | - | Sound299 = Instance.new("Sound") |
327 | + | if head ~= nil then |
328 | - | Sound300 = Instance.new("Sound") |
328 | + | local targ = head.Position - Part.Position |
329 | - | Part301 = Instance.new("Part") |
329 | + | local mag = targ.magnitude |
330 | - | BlockMesh302 = Instance.new("BlockMesh") |
330 | + | if mag <= magni and c.Name ~= Ply.Name then |
331 | - | Model303 = Instance.new("Model") |
331 | + | Damage(head.Parent, math.random(mindam, maxdam), 0, Color1, Color2, HitSound, 1) |
332 | - | Part304 = Instance.new("Part") |
332 | + | |
333 | - | SpecialMesh305 = Instance.new("SpecialMesh") |
333 | + | |
334 | - | Script306 = Instance.new("Script") |
334 | + | |
335 | - | LocalScript307 = Instance.new("LocalScript") |
335 | + | |
336 | - | LocalScript308 = Instance.new("LocalScript") |
336 | + | |
337 | - | NumberValue309 = Instance.new("NumberValue") |
337 | + | |
338 | - | StringValue310 = Instance.new("StringValue") |
338 | + | Handle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "Handle", Vector3.new(0.216133296, 0.432266444, 0.200000003)) |
339 | - | NumberValue311 = Instance.new("NumberValue") |
339 | + | Handleweld = CreateWeld(m, RA, Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015)) |
340 | - | NumberValue312 = Instance.new("NumberValue") |
340 | + | CreateMesh("BlockMesh", Handle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092)) |
341 | - | NumberValue313 = Instance.new("NumberValue") |
341 | + | FakeHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Navy blue", "FakeHandle", Vector3.new(0.216133296, 0.432266444, 0.200000003)) |
342 | - | ScreenGui314 = Instance.new("ScreenGui") |
342 | + | FakeHandleweld = CreateWeld(m, Handle, FakeHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) |
343 | - | Frame315 = Instance.new("Frame") |
343 | + | Barrel = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Smoky grey", "Barrel", Vector3.new(0.324199915, 0.200000003, 0.216133296)) |
344 | - | Frame316 = Instance.new("Frame") |
344 | + | Barrelweld = CreateWeld(m, FakeHandle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.45991993, 0.648399353, 1.88395493e-016, 1.00281931e-024, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016)) |
345 | - | TextLabel317 = Instance.new("TextLabel") |
345 | + | CreateMesh("CylinderMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.567349613, 1)) |
346 | - | Frame318 = Instance.new("Frame") |
346 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199826, 0.324199826, 0.432266533)) |
347 | - | TextLabel319 = Instance.new("TextLabel") |
347 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.378201485, -0.162090302, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
348 | - | TextLabel320 = Instance.new("TextLabel") |
348 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003)) |
349 | - | TextLabel321 = Instance.new("TextLabel") |
349 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.03202057, 0.162498474, 0.864542007, 5.96045453e-008, 0.999996662, 2.34803412e-008, 4.76836078e-007, 6.32193187e-009, 0.999997854, 0.999997139, -2.98022425e-008, -4.3312528e-007)) |
350 | - | Frame322 = Instance.new("Frame") |
350 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
351 | - | ImageLabel323 = Instance.new("ImageLabel") |
351 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003)) |
352 | - | ImageLabel324 = Instance.new("ImageLabel") |
352 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
353 | - | ImageLabel325 = Instance.new("ImageLabel") |
353 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
354 | - | ImageLabel326 = Instance.new("ImageLabel") |
354 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.756466568, 0.200000003, 0.432266533)) |
355 | - | Frame327 = Instance.new("Frame") |
355 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.8910985, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
356 | - | TextLabel328 = Instance.new("TextLabel") |
356 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
357 | - | ImageLabel329 = Instance.new("ImageLabel") |
357 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296)) |
358 | - | Frame330 = Instance.new("Frame") |
358 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.45885229, -0.832115173, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
359 | - | TextLabel331 = Instance.new("TextLabel") |
359 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1)) |
360 | - | LocalScript332 = Instance.new("LocalScript") |
360 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003)) |
361 | - | Tool0.Name = "Ballista" |
361 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.81047821, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
362 | - | Tool0.Parent = mas |
362 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
363 | - | Part1.Name = "Slide" |
363 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003)) |
364 | - | Part1.Parent = Tool0 |
364 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
365 | - | Part1.Material = Enum.Material.Metal |
365 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092)) |
366 | - | Part1.Rotation = Vector3.new(-89.5400009, -24.539999, -88.8399963) |
366 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
367 | - | Part1.Anchored = true |
367 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) |
368 | - | Part1.Locked = true |
368 | + | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.358781129, 0.748901784)) |
369 | - | Part1.FormFactor = Enum.FormFactor.Plate |
369 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296)) |
370 | - | Part1.Size = Vector3.new(1, 0.400000006, 1) |
370 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741232, -0.702438354, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
371 | - | Part1.CFrame = CFrame.new(-8.35927105, 0.967079997, -48.9204941, 0.0183650069, 0.909498394, -0.41530171, 0.000332000112, 0.415366203, 0.909654319, 0.999831378, -0.0168436859, 0.00732624903) |
371 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
372 | - | Part1.BottomSurface = Enum.SurfaceType.Smooth |
372 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296)) |
373 | - | Part1.TopSurface = Enum.SurfaceType.Smooth |
373 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000377655029, -1.56698084, -1.0320282, -4.17232428e-007, 6.32132613e-009, -0.999997616, -0.999997139, 2.98022425e-008, 2.99015426e-007, -8.70414851e-014, 0.999996722, -2.34809274e-008)) |
374 | - | Part1.Position = Vector3.new(-8.35927105, 0.967079997, -48.9204941) |
374 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
375 | - | Part1.Orientation = Vector3.new(-65.4599991, -88.9899979, 0.049999997) |
375 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.432266563, 2.48553157, 0.216133296)) |
376 | - | CylinderMesh2.Parent = Part1 |
376 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 3.51209116, 0.648399353, 1.78814986e-007, -6.32150376e-009, -1, 0.999999642, -5.96046341e-008, 2.22526424e-007, -5.96046341e-008, -0.999999642, 6.32149666e-009)) |
377 | - | CylinderMesh2.Offset = Vector3.new(0, 0.0299999993, 0) |
377 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) |
378 | - | CylinderMesh2.Scale = Vector3.new(0.0666666701, 0.666666687, 0.0666666701) |
378 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.200000003, 0.216133296)) |
379 | - | CylinderMesh2.Scale = Vector3.new(0.0666666701, 0.666666687, 0.0666666701) |
379 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37741327, -0.486289978, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
380 | - | Part3.Parent = Part1 |
380 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
381 | - | Part3.Material = Enum.Material.SmoothPlastic |
381 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.756466269, 0.432266533)) |
382 | - | Part3.Rotation = Vector3.new(-90.0299988, 0.459999979, -178.949997) |
382 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.45884228, 0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1)) |
383 | - | Part3.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
383 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1)) |
384 | - | Part3.Velocity = Vector3.new(-0.00502004568, -0.00805161428, -0.0024302958) |
384 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
385 | - | Part3.Anchored = true |
385 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661896, -0.162124634, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) |
386 | - | Part3.CanCollide = false |
386 | + | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504)) |
387 | - | Part3.Locked = true |
387 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(2.485533, 0.216133222, 0.432266533)) |
388 | - | Part3.FormFactor = Enum.FormFactor.Plate |
388 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02665424, -0.324203491, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
389 | - | Part3.Size = Vector3.new(1, 0.800000012, 1) |
389 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(2.16133285, 0.200000003, 0.432266533)) |
390 | - | Part3.CFrame = CFrame.new(-8.18919659, 1.03182197, -48.7286072, -0.99979949, 0.0183662493, 0.00797956064, 0.00798700377, 0.000331998192, 0.999968112, 0.0183630101, 0.999831378, -0.000478622911) |
390 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.18871307, -0.486282349, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
391 | - | Part3.BottomSurface = Enum.SurfaceType.Smooth |
391 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
392 | - | Part3.TopSurface = Enum.SurfaceType.Smooth |
392 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.200000003, 0.200000003)) |
393 | - | Part3.Position = Vector3.new(-8.18919659, 1.03182197, -48.7286072) |
393 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 1.19412231, 0.869961739, 4.17229757e-007, 6.32150021e-009, 0.999997854, 8.70414851e-014, -0.999996722, -2.34808173e-008, 0.999997079, 1.49012358e-008, -3.73518958e-007)) |
394 | - | Part3.Orientation = Vector3.new(-89.5400009, 93.4300003, 87.6199951) |
394 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
395 | - | CylinderMesh4.Parent = Part3 |
395 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
396 | - | CylinderMesh4.Offset = Vector3.new(-0.0199999996, 0, -0.00999999978) |
396 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000377655029, -1.02661514, -0.378243446, 4.37113812e-008, 4.73655636e-016, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) |
397 | - | CylinderMesh4.Scale = Vector3.new(0.12746118, 0.95588237, 0.127450988) |
397 | + | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469)) |
398 | - | CylinderMesh4.Scale = Vector3.new(0.12746118, 0.95588237, 0.127450988) |
398 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
399 | - | Decal5.Parent = Part3 |
399 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661896, 1.56696892, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008)) |
400 | - | Decal5.Texture = "http://www.roblox.com/asset/?id=113796406" |
400 | + | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.218294606, 0.239907846, 1.02987504)) |
401 | - | Decal5.Face = Enum.NormalId.Top |
401 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
402 | - | Part6.Parent = Part1 |
402 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0540370941, -0.162101746, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) |
403 | - | Part6.Material = Enum.Material.SmoothPlastic |
403 | + | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.369587988, 0.369587809, 0.748901784)) |
404 | - | Part6.Rotation = Vector3.new(90.4599991, 24.539999, 88.8399963) |
404 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.29679966, 0.200000003, 0.432266533)) |
405 | - | Part6.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
405 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.864494324, -0.378234863, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1)) |
406 | - | Part6.Velocity = Vector3.new(-0.00611528102, -0.0081278272, -0.00060486747) |
406 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
407 | - | Part6.Anchored = true |
407 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.200000003, 0.200000003, 0.216133296)) |
408 | - | Part6.CanCollide = false |
408 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270159721, -0.832111359, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
409 | - | Part6.Locked = true |
409 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.75646615, 1)) |
410 | - | Part6.FormFactor = Enum.FormFactor.Plate |
410 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(1.08066642, 0.200000003, 0.432266533)) |
411 | - | Part6.Size = Vector3.new(1, 0.400000006, 1) |
411 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72902441, -0.594367981, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
412 | - | Part6.CFrame = CFrame.new(-8.50077438, 0.902213991, -48.9178734, 0.0183650069, -0.90949887, 0.415300459, 0.000332000112, -0.415364951, -0.909654796, 0.999831378, 0.0168436952, -0.00732622575) |
412 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
413 | - | Part6.BottomSurface = Enum.SurfaceType.Smooth |
413 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199975, 0.324199826, 0.200000003)) |
414 | - | Part6.TopSurface = Enum.SurfaceType.Smooth |
414 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, -1.02661514, 1.35084629, -1.93715053e-007, 9.32587256e-015, -0.999999702, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, -6.05967614e-008)) |
415 | - | Part6.Position = Vector3.new(-8.50077438, 0.902213991, -48.9178734) |
415 | + | CreateMesh("SpecialMesh", Part, Enum.MeshType.FileMesh, "http://www.roblox.com/asset/?id=3270017", Vector3.new(0, 0, 0), Vector3.new(0.229101285, 0.250714511, 2.71571469)) |
416 | - | Part6.Orientation = Vector3.new(65.4599991, 91.0099945, 179.949997) |
416 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.432266563, 0.648399651, 0.216133296)) |
417 | - | BlockMesh7.Parent = Part6 |
417 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.864570618, -1.03203201, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008)) |
418 | - | BlockMesh7.Offset = Vector3.new(0, -0.0299999993, 0) |
418 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) |
419 | - | BlockMesh7.Scale = Vector3.new(0.0722222179, 0.111111112, 0.0722222179) |
419 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.216133282, 0.324199826, 0.200000003)) |
420 | - | BlockMesh7.Scale = Vector3.new(0.0722222179, 0.111111112, 0.0722222179) |
420 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.37740993, -0.594367981, -0.161708832, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
421 | - | Part8.Parent = Tool0 |
421 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092)) |
422 | - | Part8.Material = Enum.Material.Metal |
422 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.08066642, 0.200000003, 0.200000003)) |
423 | - | Part8.BrickColor = BrickColor.new("Brick yellow") |
423 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648406029, -0.594371796, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
424 | - | Part8.Rotation = Vector3.new(-23.5199986, -88.8499985, -113.489998) |
424 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
425 | - | Part8.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
425 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003)) |
426 | - | Part8.Velocity = Vector3.new(-0.0043749921, -0.00877074338, -0.0130337384) |
426 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, 0.162475586, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
427 | - | Part8.Anchored = true |
427 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
428 | - | Part8.Locked = true |
428 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.864533126, 0.540332973, 0.432266533)) |
429 | - | Part8.FormFactor = Enum.FormFactor.Custom |
429 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.972568512, -0.0540428162, 0.000385284424, 0.999999583, -4.47034729e-008, 4.37113776e-008, 4.47034729e-008, 0.999999583, 2.42770696e-015, 0, -0, 1)) |
430 | - | Part8.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
430 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.200000003)) |
431 | - | Part8.CFrame = CFrame.new(-8.14193344, 1.137169, -47.2362671, -0.00798300095, 0.018366009, -0.99979949, -0.999968112, 0.000328314549, 0.00799037796, 0.000475000066, 0.999831378, 0.0183627978) |
431 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810501099, -0.810474396, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
432 | - | Part8.BottomSurface = Enum.SurfaceType.Smooth |
432 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
433 | - | Part8.TopSurface = Enum.SurfaceType.Smooth |
433 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0.5, "Really black", "Part", Vector3.new(0.432266563, 0.200000003, 0.216133296)) |
434 | - | Part8.Color = Color3.new(0.843137, 0.772549, 0.603922) |
434 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.162106514, -1.0320282, 3.57626845e-007, 6.32133856e-009, 0.999997854, 0.999997139, -2.98022425e-008, -3.1391599e-007, -8.70414851e-014, 0.999996722, 2.34809345e-008)) |
435 | - | Part8.Position = Vector3.new(-8.14193344, 1.137169, -47.2362671) |
435 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
436 | - | Part8.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
436 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216134712, 0.216134697, 0.216134712)) |
437 | - | Part8.Color = Color3.new(0.843137, 0.772549, 0.603922) |
437 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000408172607, 0.864553452, -1.03203201, 3.57626561e-007, 6.59261232e-008, 1, 0.999999642, 0, -3.1391528e-007, 0, 0.999999642, -6.59261374e-008)) |
438 | - | BlockMesh9.Parent = Part8 |
438 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(1.40486634, 0.200000003, 0.432266533)) |
439 | - | BlockMesh9.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
439 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.810516357, -0.70243454, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
440 | - | BlockMesh9.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
440 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 1)) |
441 | - | Part10.Parent = Tool0 |
441 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199975, 0.200000003, 0.200000003)) |
442 | - | Part10.Material = Enum.Material.Metal |
442 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0540428162, -0.486282349, -0.161685944, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
443 | - | Part10.BrickColor = BrickColor.new("Brick yellow") |
443 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
444 | - | Part10.Rotation = Vector3.new(-179.979996, 0, -180) |
444 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199915, 0.756466269, 0.432266533)) |
445 | - | Part10.Anchored = true |
445 | + | Partweld = CreateWeld(m, FakeHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.000385284424, 5.1330142, 0.648399353, 0, 0, -1, 0.999999642, 0, 4.37113812e-008, 0, -0.999999642, -4.73655636e-016)) |
446 | - | Part10.Locked = true |
446 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) |
447 | - | Part10.FormFactor = Enum.FormFactor.Custom |
447 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.864533186)) |
448 | - | Part10.Size = Vector3.new(0.225573108, 0.225572959, 0.225572959) |
448 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.324199677, -0.972576141, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008)) |
449 | - | Part10.CFrame = CFrame.new(-8.16722965, 1.37225294, -49.0906372, -1, 0, 0, 0, 1, 0.000316999998, 0, 0.000316999998, -1) |
449 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.432266444, 0.216133267)) |
450 | - | Part10.BottomSurface = Enum.SurfaceType.Smooth |
450 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) |
451 | - | Part10.TopSurface = Enum.SurfaceType.Smooth |
451 | + | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1)) |
452 | - | Part10.Color = Color3.new(0.843137, 0.772549, 0.603922) |
452 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133192, 0.216133267)) |
453 | - | Part10.Position = Vector3.new(-8.16722965, 1.37225294, -49.0906372) |
453 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, -0.108055115, -0.432257652, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008)) |
454 | - | Part10.Orientation = Vector3.new(-0.0199999996, 180, 0) |
454 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
455 | - | Part10.Color = Color3.new(0.843137, 0.772549, 0.603922) |
455 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) |
456 | - | SpecialMesh11.Parent = Part10 |
456 | + | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1)) |
457 | - | SpecialMesh11.MeshId = "http://www.roblox.com/asset/?id=3270017" |
457 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
458 | - | SpecialMesh11.Scale = Vector3.new(0.201980457, 0.201980427, 2.88543415) |
458 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.161708832, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008)) |
459 | - | SpecialMesh11.MeshType = Enum.MeshType.FileMesh |
459 | + | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1)) |
460 | - | SpecialMesh11.Scale = Vector3.new(0.201980457, 0.201980427, 2.88543415) |
460 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.432266384, 0.216133267)) |
461 | - | Part12.Parent = Tool0 |
461 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.162475586, -0.648399353, -2.86102295e-005, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) |
462 | - | Part12.Material = Enum.Material.Metal |
462 | + | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1)) |
463 | - | Part12.BrickColor = BrickColor.new("Brick yellow") |
463 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
464 | - | Part12.Rotation = Vector3.new(-179.979996, 0, -180) |
464 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.162475586, -0.810497284, 1.62095213, 1.49011559e-008, 0, -0.999999762, 0, 0.999999642, 4.73655636e-016, 0.999999404, 4.47034836e-008, 5.86125317e-008)) |
465 | - | Part12.Anchored = true |
465 | + | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1)) |
466 | - | Part12.Locked = true |
466 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133237, 0.216133267)) |
467 | - | Part12.FormFactor = Enum.FormFactor.Custom |
467 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.324203491, 2.37740946, 1.06338617e-018, 5.01342412e-010, 0.999999404, 1.49011701e-008, -0.999999285, 5.01343078e-010, 0.999999285, 1.49011701e-008, 4.37113634e-008)) |
468 | - | Part12.Size = Vector3.new(0.225573108, 0.225572959, 0.225572959) |
468 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Wedge", Vector3.new(0.432266563, 0.216133222, 0.216133296)) |
469 | - | Part12.CFrame = CFrame.new(-8.16721821, 1.37475395, -48.469635, -1, 0, 0, 0, 1, 0.000316999998, 0, 0.000316999998, -1) |
469 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.000385284424, 0.108070374, -0.108057022, 2.98023117e-008, 0, 0.999999702, 0, -0.999999642, -4.73655636e-016, 0.999999285, 1.49011701e-008, 1.3909041e-008)) |
470 | - | Part12.BottomSurface = Enum.SurfaceType.Smooth |
470 | + | Wedge = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Wedge", Vector3.new(0.200000003, 0.200000003, 0.216133267)) |
471 | - | Part12.TopSurface = Enum.SurfaceType.Smooth |
471 | + | Wedgeweld = CreateWeld(m, FakeHandle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.161708832, -0.486286163, 0.32416153, 0, -0, 1, 0, 0.999999642, 4.73655636e-016, -0.999999642, 0, -4.37113812e-008)) |
472 | - | Part12.Color = Color3.new(0.843137, 0.772549, 0.603922) |
472 | + | CreateMesh("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 0.540332973, 1)) |
473 | - | Part12.Position = Vector3.new(-8.16721821, 1.37475395, -48.469635) |
473 | + | MagHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "MagHandle", Vector3.new(0.432266504, 0.324199826, 0.216133296)) |
474 | - | Part12.Orientation = Vector3.new(-0.0199999996, 180, 0) |
474 | + | MagHandleweld = CreateWeld(m, FakeHandle, MagHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.648423195, -0.0540428162, 0.000385284424, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 0, -0, 1)) |
475 | - | Part12.Color = Color3.new(0.843137, 0.772549, 0.603922) |
475 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296)) |
476 | - | SpecialMesh13.Parent = Part12 |
476 | + | Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.270163536, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1)) |
477 | - | SpecialMesh13.MeshId = "http://www.roblox.com/asset/?id=3270017" |
477 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1)) |
478 | - | SpecialMesh13.Scale = Vector3.new(0.144271731, 0.144271761, 5.7708683) |
478 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.200000003, 0.324199826, 0.216133296)) |
479 | - | SpecialMesh13.MeshType = Enum.MeshType.FileMesh |
479 | + | Partweld = CreateWeld(m, MagHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.270174026, 0, 0, 0.999999642, 0, 0, 0, 0.999999642, -0, 0, -0, 1)) |
480 | - | SpecialMesh13.Scale = Vector3.new(0.144271731, 0.144271761, 5.7708683) |
480 | + | CreateMesh("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.540333211, 1, 1)) |
481 | - | Part14.Parent = Tool0 |
481 | + | BoltHandle = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "BoltHandle", Vector3.new(0.216133282, 1.40486586, 0.216133267)) |
482 | - | Part14.Material = Enum.Material.Metal |
482 | + | BoltHandleweld = CreateWeld(m, FakeHandle, BoltHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.540328979, -0.486276627, -0.000385284424, -4.47034729e-008, -0.999999583, -2.42770696e-015, -0.999999642, 0, -4.37113812e-008, 0, 0, -0.99999994)) |
483 | - | Part14.Rotation = Vector3.new(156.479996, 88.8499985, -156.509995) |
483 | + | CreateMesh("CylinderMesh", BoltHandle, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) |
484 | - | Part14.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
484 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.216133282, 0.216133252, 0.216133267)) |
485 | - | Part14.Velocity = Vector3.new(-0.00478337239, -0.00794159342, -0.00165803637) |
485 | + | Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0, 0.70238018, 0, 0.999999523, 4.47034729e-008, 0, 4.47034729e-008, 0.999999642, 0, 0, 0, 0.999999881)) |
486 | - | Part14.Anchored = true |
486 | + | CreateMesh("SpecialMesh", Part, Enum.MeshType.Sphere, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) |
487 | - | Part14.Locked = true |
487 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Really black", "Part", Vector3.new(0.324199915, 0.324199826, 0.200000003)) |
488 | - | Part14.FormFactor = Enum.FormFactor.Custom |
488 | + | Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.015832901, 0.146270752, 0.648381233, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009)) |
489 | - | Part14.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
489 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.540333092)) |
490 | - | Part14.CFrame = CFrame.new(-8.24172592, 1.06918097, -48.8276749, -0.0183660071, 0.00798300654, 0.99979949, -0.000332000112, 0.999968112, -0.0079904506, -0.999831378, -0.000478686212, -0.018362768) |
490 | + | Part = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 0, "Navy blue", "Part", Vector3.new(0.324199915, 0.200000003, 0.200000003)) |
491 | - | Part14.BottomSurface = Enum.SurfaceType.Smooth |
491 | + | Partweld = CreateWeld(m, BoltHandle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0158443451, 0.362377167, 0.648385048, 0.707106292, 5.08757338e-008, 0.707106531, 0.707106411, -8.72889849e-009, -0.707106411, 8.94069458e-008, 0.999999404, -5.09424458e-009)) |
492 | - | Part14.TopSurface = Enum.SurfaceType.Smooth |
492 | + | CreateMesh("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.540332973, 0.540333092)) |
493 | - | Part14.Position = Vector3.new(-8.24172592, 1.06918097, -48.8276749) |
493 | + | ScopeZoom = CreatePart(Enum.FormFactor.Custom, m, Enum.Material.SmoothPlastic, 0, 1, "Bright violet", "ScopeZoom", Vector3.new(0.216133296, 0.200000003, 0.200000003)) |
494 | - | Part14.Orientation = Vector3.new(0.459999979, 91.0499954, -0.0199999996) |
494 | + | ScopeZoomweld = CreateWeld(m, FakeHandle, ScopeZoom, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.72752714, -1.03763962, 0, 0.999999642, 0, 4.37113812e-008, 0, 0.999999642, 4.73655636e-016, 4.37113812e-008, 4.73655636e-016, 1)) |
495 | - | SpecialMesh15.Parent = Part14 |
495 | + | |
496 | - | SpecialMesh15.Scale = Vector3.new(0.518183827, 0.251547486, 0.251547992) |
496 | + | local PE1 = Create("ParticleEmitter"){ |
497 | - | SpecialMesh15.MeshType = Enum.MeshType.Wedge |
497 | + | Parent = Barrel, |
498 | - | SpecialMesh15.Scale = Vector3.new(0.518183827, 0.251547486, 0.251547992) |
498 | + | Color = ColorSequence.new(BrickColor.new("Dark stone grey").Color), |
499 | - | Part16.Name = "Holo" |
499 | + | Transparency = NumberSequence.new(0), |
500 | - | Part16.Parent = Tool0 |
500 | + | Size = NumberSequence.new(.5), |
501 | - | Part16.Material = Enum.Material.Metal |
501 | + | Texture = "rbxassetid://257430870", |
502 | - | Part16.BrickColor = BrickColor.new("Black") |
502 | + | Lifetime = NumberRange.new(.1), |
503 | - | Part16.Transparency = 1 |
503 | + | Rate = 100, |
504 | - | Part16.Rotation = Vector3.new(90, 0, -179.979996) |
504 | + | VelocitySpread = 180, |
505 | - | Part16.Anchored = true |
505 | + | Rotation = NumberRange.new(0), |
506 | - | Part16.FormFactor = Enum.FormFactor.Custom |
506 | + | Speed = NumberRange.new(0), |
507 | - | Part16.Size = Vector3.new(0.265199989, 0.265199989, 0.265199989) |
507 | + | LightEmission = .6, |
508 | - | Part16.CFrame = CFrame.new(-8.16699982, 1.375, -47.7680016, -1, 0.00037834933, -1.41166929e-05, 1.41262453e-05, 2.5246618e-05, -1, -0.000378348981, -1, -2.52519585e-05) |
508 | + | LockedToPart = true, |
509 | - | Part16.BackSurface = Enum.SurfaceType.SmoothNoOutlines |
509 | + | Enabled = false |
510 | - | Part16.BottomSurface = Enum.SurfaceType.SmoothNoOutlines |
510 | + | |
511 | - | Part16.FrontSurface = Enum.SurfaceType.SmoothNoOutlines |
511 | + | |
512 | - | Part16.LeftSurface = Enum.SurfaceType.SmoothNoOutlines |
512 | + | local PE2 = PE1:Clone() |
513 | - | Part16.RightSurface = Enum.SurfaceType.SmoothNoOutlines |
513 | + | PE2.Size = NumberSequence.new(.7) |
514 | - | Part16.TopSurface = Enum.SurfaceType.SmoothNoOutlines |
514 | + | PE2.LightEmission = 1 |
515 | - | Part16.Color = Color3.new(0.105882, 0.164706, 0.207843) |
515 | + | PE2.Texture = "rbxassetid://87729590" |
516 | - | Part16.Position = Vector3.new(-8.16699982, 1.375, -47.7680016) |
516 | + | |
517 | - | Part16.Orientation = Vector3.new(90, 179.979996, 0) |
517 | + | function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) |
518 | - | Part16.Color = Color3.new(0.105882, 0.164706, 0.207843) |
518 | + | local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) |
519 | - | SurfaceGui17.Parent = Part16 |
519 | + | prt.Anchored = true |
520 | - | SurfaceGui17.Face = Enum.NormalId.Top |
520 | + | prt.CFrame = cframe |
521 | - | SurfaceGui17.CanvasSize = Vector2.new(800, 800) |
521 | + | local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) |
522 | - | Frame18.Parent = SurfaceGui17 |
522 | + | game:GetService("Debris"):AddItem(prt, 2) |
523 | - | Frame18.Transparency = 1 |
523 | + | Effects[#Effects + 1] = { |
524 | - | Frame18.Rotation = 90 |
524 | + | prt, |
525 | - | Frame18.Size = UDim2.new(0, 800, 0, 800) |
525 | + | "Cylinder", |
526 | - | Frame18.BackgroundColor3 = Color3.new(1, 1, 1) |
526 | + | delay, |
527 | - | Frame18.BackgroundTransparency = 1 |
527 | + | x3, |
528 | - | ImageLabel19.Name = "Flash" |
528 | + | y3, |
529 | - | ImageLabel19.Parent = Frame18 |
529 | + | z3 |
530 | - | ImageLabel19.Transparency = 1 |
530 | + | |
531 | - | ImageLabel19.Size = UDim2.new(0.699999988, 0, 0.699999988, 1) |
531 | + | |
532 | - | ImageLabel19.Position = UDim2.new(0.150000006, 0, 0.150000006, 0) |
532 | + | |
533 | - | ImageLabel19.BackgroundTransparency = 1 |
533 | + | local Ammo = 10 |
534 | - | ImageLabel19.BorderSizePixel = 0 |
534 | + | local Depleted = false |
535 | - | ImageLabel19.ClipsDescendants = true |
535 | + | |
536 | - | ImageLabel19.Image = "http://www.roblox.com/asset/?id=173741403" |
536 | + | function Shoot(asd, spread1, spread2) |
537 | - | BlockMesh20.Parent = Part16 |
537 | + | local MainPos = asd.Position |
538 | - | BlockMesh20.Scale = Vector3.new(0.663105965, 0.663105965, 0.663105965) |
538 | + | local MainPos2 = mouse.Hit.p |
539 | - | BlockMesh20.Scale = Vector3.new(0.663105965, 0.663105965, 0.663105965) |
539 | + | local spread = Vector3.new((math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2, (math.random(-spread1, 0) + math.random()) * spread2) * (asd.Position - mouse.Hit.p).magnitude / 100 |
540 | - | Part21.Parent = Tool0 |
540 | + | local MouseLook = CFrame.new((MainPos + MainPos2) / 2, MainPos2 + spread) |
541 | - | Part21.Material = Enum.Material.Metal |
541 | + | num = 30 |
542 | - | Part21.BrickColor = BrickColor.new("Brick yellow") |
542 | + | Ammo = Ammo - 1 |
543 | - | Part21.Rotation = Vector3.new(-179.979996, 0, 90) |
543 | + | print(Ammo) |
544 | - | Part21.Anchored = true |
544 | + | if Ammo == 0 then |
545 | - | Part21.Locked = true |
545 | + | Depleted = true |
546 | - | Part21.FormFactor = Enum.FormFactor.Custom |
546 | + | |
547 | - | Part21.Size = Vector3.new(0.936787009, 0.936786115, 0.936786115) |
547 | + | coroutine.resume(coroutine.create(function(Spreaded) |
548 | - | Part21.CFrame = CFrame.new(-8.2826786, 1.37531304, -48.5130119, 0, -1, 0, -1, 0, 0.000316999998, -0.000316999998, 0, -1) |
548 | + | repeat |
549 | - | Part21.BottomSurface = Enum.SurfaceType.Smooth |
549 | + | wait() |
550 | - | Part21.TopSurface = Enum.SurfaceType.Smooth |
550 | + | local hit, pos = rayCast(MainPos, MouseLook.lookVector, 50, RP.Parent) |
551 | - | Part21.Color = Color3.new(0.843137, 0.772549, 0.603922) |
551 | + | local TheHit = mouse.Hit.p |
552 | - | Part21.Position = Vector3.new(-8.2826786, 1.37531304, -48.5130119) |
552 | + | local mag = (MainPos - pos).magnitude |
553 | - | Part21.Orientation = Vector3.new(-0.0199999996, 180, -90) |
553 | + | CylinderEffect(BrickColor.new("Dark stone grey"), CFrame.new((MainPos + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 3, mag * 5, 3, .5, 1, .5, 0.2) |
554 | - | Part21.Color = Color3.new(0.843137, 0.772549, 0.603922) |
554 | + | MainPos = MainPos + (MouseLook.lookVector * 50) |
555 | - | CylinderMesh22.Parent = Part21 |
555 | + | num = num - 1 |
556 | - | CylinderMesh22.Scale = Vector3.new(0.154006988, 0.12012548, 0.154006958) |
556 | + | if hit ~= nil then |
557 | - | CylinderMesh22.Scale = Vector3.new(0.154006988, 0.12012548, 0.154006958) |
557 | + | num = 0 |
558 | - | Part23.Parent = Tool0 |
558 | + | local ref = CreatePart(3, workspace, "Neon", 0, 1, BrickColor.new("Dark stone grey"), "Reference", Vector3.new()) |
559 | - | Part23.Material = Enum.Material.Metal |
559 | + | ref.Anchored = true |
560 | - | Part23.BrickColor = BrickColor.new("Brick yellow") |
560 | + | ref.CFrame = CFrame.new(pos) |
561 | - | Part23.Rotation = Vector3.new(-90.0299988, 0.459999979, -178.949997) |
561 | + | MagnitudeDamage(ref, 5, 999999999, 999999999, BrickColor.new("Dark stone grey"), BrickColor.new("Navy blue") , "rbxassetid://199149297") |
562 | - | Part23.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
562 | + | game:GetService("Debris"):AddItem(ref, 1) |
563 | - | Part23.Velocity = Vector3.new(-0.00803349447, -0.00873578526, -0.00332517154) |
563 | + | |
564 | - | Part23.Anchored = true |
564 | + | until num <= 0 |
565 | - | Part23.Locked = true |
565 | + | end)) |
566 | - | Part23.FormFactor = Enum.FormFactor.Custom |
566 | + | |
567 | - | Part23.Size = Vector3.new(0.206269354, 0.412538469, 0.200000003) |
567 | + | |
568 | - | Part23.CFrame = CFrame.new(-8.17128277, 0.605727971, -48.6027756, -0.99979949, 0.0183642507, 0.00798455905, 0.00799200404, 0.000331998162, 0.999967992, 0.0183610097, 0.999831378, -0.000478698697) |
568 | + | gyro = Instance.new("BodyGyro") |
569 | - | Part23.BottomSurface = Enum.SurfaceType.Smooth |
569 | + | gyro.Parent = nil |
570 | - | Part23.TopSurface = Enum.SurfaceType.Smooth |
570 | + | gyro.P = 1e7 |
571 | - | Part23.Color = Color3.new(0.843137, 0.772549, 0.603922) |
571 | + | gyro.D = 1e3 |
572 | - | Part23.Position = Vector3.new(-8.17128277, 0.605727971, -48.6027756) |
572 | + | gyro.MaxTorque = Vector3.new(0,1e7,0) |
573 | - | Part23.Orientation = Vector3.new(-89.5400009, 93.4300003, 87.6199951) |
573 | + | |
574 | - | Part23.Color = Color3.new(0.843137, 0.772549, 0.603922) |
574 | + | |
575 | - | SpecialMesh24.Parent = Part23 |
575 | + | local Crouching = false |
576 | - | SpecialMesh24.Scale = Vector3.new(1, 1, 0.503095925) |
576 | + | |
577 | - | SpecialMesh24.MeshType = Enum.MeshType.Wedge |
577 | + | function Fire() |
578 | - | SpecialMesh24.Scale = Vector3.new(1, 1, 0.503095925) |
578 | + | if Aiming == true then |
579 | - | Part25.Parent = Tool0 |
579 | + | attack = true |
580 | - | Part25.Material = Enum.Material.Metal |
580 | + | CreateSound("rbxassetid://132572951", Barrel, 1, .9) |
581 | - | Part25.Rotation = Vector3.new(-23.5199986, -88.8499985, -113.489998) |
581 | + | CreateSound("rbxassetid://130767489", Barrel, .7, 1.2) |
582 | - | Part25.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
582 | + | PE1.Enabled = true |
583 | - | Part25.Velocity = Vector3.new(-0.00476615317, -0.00812927261, -0.00404230598) |
583 | + | PE2.Enabled = true |
584 | - | Part25.Anchored = true |
584 | + | Shoot(Barrel, 0, 0) |
585 | - | Part25.Locked = true |
585 | + | for i = 0, 1, 0.2 do |
586 | - | Part25.FormFactor = Enum.FormFactor.Custom |
586 | + | wait() |
587 | - | Part25.Size = Vector3.new(0.200000003, 0.970974565, 0.200000003) |
587 | + | if Crouching == false and Aiming == true then |
588 | - | Part25.CFrame = CFrame.new(-8.16581345, 1.06873095, -48.506012, -0.00798300095, 0.018366009, -0.99979949, -0.999968112, 0.000328314549, 0.00799037796, 0.000475000066, 0.999831378, 0.0183627978) |
588 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
589 | - | Part25.BottomSurface = Enum.SurfaceType.Smooth |
589 | + | elseif Crouching == true and Aiming == true then |
590 | - | Part25.TopSurface = Enum.SurfaceType.Smooth |
590 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
591 | - | Part25.Position = Vector3.new(-8.16581345, 1.06873095, -48.506012) |
591 | + | |
592 | - | Part25.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
592 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(-10), math.rad(90)), .3) |
593 | - | BlockMesh26.Parent = Part25 |
593 | + | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(-20), math.rad(-90)), .5) |
594 | - | BlockMesh26.Scale = Vector3.new(0.251548022, 1, 0.452786237) |
594 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.7, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(140)), .5) |
595 | - | BlockMesh26.Scale = Vector3.new(0.251548022, 1, 0.452786237) |
595 | + | if Crouching == false and Aiming == true then |
596 | - | Part27.Parent = Tool0 |
596 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
597 | - | Part27.Material = Enum.Material.Metal |
597 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
598 | - | Part27.BrickColor = BrickColor.new("Brick yellow") |
598 | + | elseif Crouching == true and Aiming == true then |
599 | - | Part27.Rotation = Vector3.new(-23.5100002, -88.8499985, -23.4899998) |
599 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
600 | - | Part27.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
600 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
601 | - | Part27.Velocity = Vector3.new(-0.0110210991, -0.00799718313, 0.0134584047) |
601 | + | |
602 | - | Part27.Anchored = true |
602 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
603 | - | Part27.Locked = true |
603 | + | |
604 | - | Part27.FormFactor = Enum.FormFactor.Custom |
604 | + | PE1.Enabled = false |
605 | - | Part27.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
605 | + | PE2.Enabled = false |
606 | - | Part27.CFrame = CFrame.new(-8.21830177, 0.158967003, -50.9691429, 0.0183670036, 0.00798300654, -0.99979949, 0.000332000083, 0.999968112, 0.00799045153, 0.999831259, -0.000478694186, 0.0183637682) |
606 | + | for i = 0, 1, 0.1 do |
607 | - | Part27.BottomSurface = Enum.SurfaceType.Smooth |
607 | + | wait() |
608 | - | Part27.TopSurface = Enum.SurfaceType.Smooth |
608 | + | if Crouching == false and Aiming == true then |
609 | - | Part27.Color = Color3.new(0.843137, 0.772549, 0.603922) |
609 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
610 | - | Part27.Position = Vector3.new(-8.21830177, 0.158967003, -50.9691429) |
610 | + | elseif Crouching == true and Aiming == true then |
611 | - | Part27.Orientation = Vector3.new(-0.459999979, -88.9499969, 0.0199999996) |
611 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
612 | - | Part27.Color = Color3.new(0.843137, 0.772549, 0.603922) |
612 | + | |
613 | - | BlockMesh28.Parent = Part27 |
613 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .3) |
614 | - | BlockMesh28.Scale = Vector3.new(0.316950262, 0.181114629, 0.928212047) |
614 | + | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .3) |
615 | - | BlockMesh28.Scale = Vector3.new(0.316950262, 0.181114629, 0.928212047) |
615 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .3) |
616 | - | Part29.Parent = Tool0 |
616 | + | if Crouching == false and Aiming == true then |
617 | - | Part29.Material = Enum.Material.Metal |
617 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
618 | - | Part29.Rotation = Vector3.new(89.9700012, -0.459999979, -1.04999995) |
618 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
619 | - | Part29.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
619 | + | elseif Crouching == true and Aiming == true then |
620 | - | Part29.Velocity = Vector3.new(-0.00525259413, -0.00927465688, -0.0170939248) |
620 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
621 | - | Part29.Anchored = true |
621 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
622 | - | Part29.Locked = true |
622 | + | |
623 | - | Part29.FormFactor = Enum.FormFactor.Custom |
623 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
624 | - | Part29.Size = Vector3.new(0.200000003, 2.90280724, 0.200000003) |
624 | + | |
625 | - | Part29.CFrame = CFrame.new(-8.13231945, 1.01934803, -46.6613159, 0.99979949, 0.0183642488, -0.00798356067, -0.0079910038, 0.000331998192, -0.999968112, -0.0183610097, 0.999831378, 0.000478680391) |
625 | + | Handleweld.Part0 = LA |
626 | - | Part29.BottomSurface = Enum.SurfaceType.Smooth |
626 | + | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
627 | - | Part29.TopSurface = Enum.SurfaceType.Smooth |
627 | + | Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875) |
628 | - | Part29.Position = Vector3.new(-8.13231945, 1.01934803, -46.6613159) |
628 | + | for i = 0, 1, 0.1 do |
629 | - | Part29.Orientation = Vector3.new(89.5400009, -86.5699997, -87.6199951) |
629 | + | wait() |
630 | - | CylinderMesh30.Parent = Part29 |
630 | + | if Crouching == false and Aiming == true then |
631 | - | CylinderMesh30.Scale = Vector3.new(0.95588243, 1, 0.603715241) |
631 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
632 | - | CylinderMesh30.Scale = Vector3.new(0.95588243, 1, 0.603715241) |
632 | + | elseif Crouching == true and Aiming == true then |
633 | - | Part31.Parent = Tool0 |
633 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
634 | - | Part31.Material = Enum.Material.Metal |
634 | + | |
635 | - | Part31.BrickColor = BrickColor.new("Brick yellow") |
635 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) |
636 | - | Part31.Rotation = Vector3.new(-23.5199986, -88.8499985, -113.489998) |
636 | + | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3) |
637 | - | Part31.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
637 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) |
638 | - | Part31.Velocity = Vector3.new(-0.00510689151, -0.00893408991, -0.0132158771) |
638 | + | if Crouching == false and Aiming == true then |
639 | - | Part31.Anchored = true |
639 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
640 | - | Part31.Locked = true |
640 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
641 | - | Part31.FormFactor = Enum.FormFactor.Custom |
641 | + | elseif Crouching == true and Aiming == true then |
642 | - | Part31.Size = Vector3.new(0.200000003, 1.87352943, 0.200000003) |
642 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
643 | - | Part31.CFrame = CFrame.new(-8.14226913, 1.03416502, -47.2092247, -0.00798300095, 0.018366009, -0.99979949, -0.999968112, 0.000328314549, 0.00799037796, 0.000475000066, 0.999831378, 0.0183627978) |
643 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
644 | - | Part31.BottomSurface = Enum.SurfaceType.Smooth |
644 | + | |
645 | - | Part31.TopSurface = Enum.SurfaceType.Smooth |
645 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
646 | - | Part31.Color = Color3.new(0.843137, 0.772549, 0.603922) |
646 | + | |
647 | - | Part31.Position = Vector3.new(-8.14226913, 1.03416502, -47.2092247) |
647 | + | CreateSound("rbxassetid://146740582", BoltHandle, .7, 1) |
648 | - | Part31.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
648 | + | for i = 0, 1, 0.1 do |
649 | - | Part31.Color = Color3.new(0.843137, 0.772549, 0.603922) |
649 | + | wait() |
650 | - | BlockMesh32.Parent = Part31 |
650 | + | if Crouching == false and Aiming == true then |
651 | - | BlockMesh32.Scale = Vector3.new(0.95588237, 1, 0.382352948) |
651 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
652 | - | BlockMesh32.Scale = Vector3.new(0.95588237, 1, 0.382352948) |
652 | + | elseif Crouching == true and Aiming == true then |
653 | - | Part33.Parent = Tool0 |
653 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
654 | - | Part33.Material = Enum.Material.Metal |
654 | + | |
655 | - | Part33.BrickColor = BrickColor.new("Brick yellow") |
655 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) |
656 | - | Part33.Rotation = Vector3.new(-179.979996, 0, -180) |
656 | + | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) |
657 | - | Part33.Anchored = true |
657 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) |
658 | - | Part33.Locked = true |
658 | + | if Crouching == false and Aiming == true then |
659 | - | Part33.FormFactor = Enum.FormFactor.Custom |
659 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
660 | - | Part33.Size = Vector3.new(0.225573108, 0.225572959, 0.225572959) |
660 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
661 | - | Part33.CFrame = CFrame.new(-8.16770458, 1.37406695, -48.9336586, -1, 0, 0, 0, 1, 0.000316999998, 0, 0.000316999998, -1) |
661 | + | elseif Crouching == true and Aiming == true then |
662 | - | Part33.BottomSurface = Enum.SurfaceType.Smooth |
662 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
663 | - | Part33.TopSurface = Enum.SurfaceType.Smooth |
663 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
664 | - | Part33.Color = Color3.new(0.843137, 0.772549, 0.603922) |
664 | + | |
665 | - | Part33.Position = Vector3.new(-8.16770458, 1.37406695, -48.9336586) |
665 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
666 | - | Part33.Orientation = Vector3.new(-0.0199999996, 180, 0) |
666 | + | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
667 | - | Part33.Color = Color3.new(0.843137, 0.772549, 0.603922) |
667 | + | |
668 | - | SpecialMesh34.Parent = Part33 |
668 | + | for i = 0, 1, 0.1 do |
669 | - | SpecialMesh34.MeshId = "http://www.roblox.com/asset/?id=3270017" |
669 | + | wait() |
670 | - | SpecialMesh34.Scale = Vector3.new(0.187553287, 0.187553242, 1.44271708) |
670 | + | if Crouching == false and Aiming == true then |
671 | - | SpecialMesh34.MeshType = Enum.MeshType.FileMesh |
671 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
672 | - | SpecialMesh34.Scale = Vector3.new(0.187553287, 0.187553242, 1.44271708) |
672 | + | elseif Crouching == true and Aiming == true then |
673 | - | Part35.Parent = Tool0 |
673 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
674 | - | Part35.Material = Enum.Material.Metal |
674 | + | |
675 | - | Part35.BrickColor = BrickColor.new("Brick yellow") |
675 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) |
676 | - | Part35.Rotation = Vector3.new(-179.979996, 0, -180) |
676 | + | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) |
677 | - | Part35.Anchored = true |
677 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) |
678 | - | Part35.Locked = true |
678 | + | if Crouching == false and Aiming == true then |
679 | - | Part35.FormFactor = Enum.FormFactor.Custom |
679 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
680 | - | Part35.Size = Vector3.new(0.225573108, 0.225572959, 0.225572959) |
680 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
681 | - | Part35.CFrame = CFrame.new(-8.16720295, 1.36423504, -48.5124359, -1, 0, 0, 0, 1, 0.000316999998, 0, 0.000316999998, -1) |
681 | + | elseif Crouching == true and Aiming == true then |
682 | - | Part35.BottomSurface = Enum.SurfaceType.Smooth |
682 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
683 | - | Part35.TopSurface = Enum.SurfaceType.Smooth |
683 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
684 | - | Part35.Color = Color3.new(0.843137, 0.772549, 0.603922) |
684 | + | |
685 | - | Part35.Position = Vector3.new(-8.16720295, 1.36423504, -48.5124359) |
685 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
686 | - | Part35.Orientation = Vector3.new(-0.0199999996, 180, 0) |
686 | + | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
687 | - | Part35.Color = Color3.new(0.843137, 0.772549, 0.603922) |
687 | + | |
688 | - | SpecialMesh36.Parent = Part35 |
688 | + | for i = 0, 1, 0.3 do |
689 | - | SpecialMesh36.MeshId = "http://www.roblox.com/asset/?id=3270017" |
689 | + | wait() |
690 | - | SpecialMesh36.Scale = Vector3.new(0.158698946, 0.158698887, 0.649222672) |
690 | + | if Crouching == false and Aiming == true then |
691 | - | SpecialMesh36.MeshType = Enum.MeshType.FileMesh |
691 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
692 | - | SpecialMesh36.Scale = Vector3.new(0.158698946, 0.158698887, 0.649222672) |
692 | + | elseif Crouching == true and Aiming == true then |
693 | - | Part37.Parent = Tool0 |
693 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
694 | - | Part37.Material = Enum.Material.Metal |
694 | + | |
695 | - | Part37.BrickColor = BrickColor.new("Brick yellow") |
695 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) |
696 | - | Part37.Rotation = Vector3.new(-179.979996, 0, -180) |
696 | + | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) |
697 | - | Part37.Anchored = true |
697 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) |
698 | - | Part37.Locked = true |
698 | + | if Crouching == false and Aiming == true then |
699 | - | Part37.FormFactor = Enum.FormFactor.Custom |
699 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
700 | - | Part37.Size = Vector3.new(0.936787009, 0.936786115, 0.936786115) |
700 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
701 | - | Part37.CFrame = CFrame.new(-8.16720867, 1.279966, -48.6890182, -1, 0, 0, 0, 1, 0.000316999998, 0, 0.000316999998, -1) |
701 | + | elseif Crouching == true and Aiming == true then |
702 | - | Part37.BottomSurface = Enum.SurfaceType.Smooth |
702 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
703 | - | Part37.TopSurface = Enum.SurfaceType.Smooth |
703 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
704 | - | Part37.Color = Color3.new(0.843137, 0.772549, 0.603922) |
704 | + | |
705 | - | Part37.Position = Vector3.new(-8.16720867, 1.279966, -48.6890182) |
705 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
706 | - | Part37.Orientation = Vector3.new(-0.0199999996, 180, 0) |
706 | + | |
707 | - | Part37.Color = Color3.new(0.843137, 0.772549, 0.603922) |
707 | + | Handleweld.Part0 = RA |
708 | - | Decal38.Parent = Part37 |
708 | + | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
709 | - | Decal38.Texture = "http://www.roblox.com/asset/?id=65628034" |
709 | + | Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015) |
710 | - | Decal38.Face = Enum.NormalId.Bottom |
710 | + | attack = false |
711 | - | BlockMesh39.Parent = Part37 |
711 | + | |
712 | - | BlockMesh39.Offset = Vector3.new(0, 0.00881250016, 0) |
712 | + | |
713 | - | BlockMesh39.Scale = Vector3.new(0.154006943, 0.0492822528, 0.0616027787) |
713 | + | |
714 | - | BlockMesh39.Scale = Vector3.new(0.154006943, 0.0492822528, 0.0616027787) |
714 | + | local Zoomed = false |
715 | - | Part40.Parent = Tool0 |
715 | + | |
716 | - | Part40.Material = Enum.Material.Metal |
716 | + | function Reload() |
717 | - | Part40.BrickColor = BrickColor.new("Brick yellow") |
717 | + | attack = true |
718 | - | Part40.Rotation = Vector3.new(-179.979996, 0, -180) |
718 | + | for i = 0, 1, 0.1 do |
719 | - | Part40.Anchored = true |
719 | + | wait() |
720 | - | Part40.Locked = true |
720 | + | if Crouching == false and Aiming == true then |
721 | - | Part40.FormFactor = Enum.FormFactor.Custom |
721 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
722 | - | Part40.Size = Vector3.new(0.225573108, 0.225572959, 0.225572959) |
722 | + | elseif Crouching == true and Aiming == true then |
723 | - | Part40.CFrame = CFrame.new(-8.16720104, 1.37464094, -47.8638, -1, 0, 0, 0, 1, 0.000316999998, 0, 0.000316999998, -1) |
723 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
724 | - | Part40.BottomSurface = Enum.SurfaceType.Smooth |
724 | + | |
725 | - | Part40.TopSurface = Enum.SurfaceType.Smooth |
725 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3) |
726 | - | Part40.Color = Color3.new(0.843137, 0.772549, 0.603922) |
726 | + | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3) |
727 | - | Part40.Position = Vector3.new(-8.16720104, 1.37464094, -47.8638) |
727 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.5) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(120)), .3) |
728 | - | Part40.Orientation = Vector3.new(-0.0199999996, 180, 0) |
728 | + | if Crouching == false and Aiming == true then |
729 | - | Part40.Color = Color3.new(0.843137, 0.772549, 0.603922) |
729 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
730 | - | SpecialMesh41.Parent = Part40 |
730 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
731 | - | SpecialMesh41.MeshId = "http://www.roblox.com/asset/?id=3270017" |
731 | + | elseif Crouching == true and Aiming == true then |
732 | - | SpecialMesh41.Scale = Vector3.new(0.201980457, 0.201980427, 2.88543415) |
732 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
733 | - | SpecialMesh41.MeshType = Enum.MeshType.FileMesh |
733 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
734 | - | SpecialMesh41.Scale = Vector3.new(0.201980457, 0.201980427, 2.88543415) |
734 | + | |
735 | - | Part42.Parent = Tool0 |
735 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
736 | - | Part42.Material = Enum.Material.Metal |
736 | + | |
737 | - | Part42.BrickColor = BrickColor.new("Brick yellow") |
737 | + | CreateSound("rbxassetid://131045401", FakeHandle, 1, 1) |
738 | - | Part42.Reflectance = 0.050000000745058 |
738 | + | MagHandleweld.Part0 = LA |
739 | - | Part42.Transparency = 0.75 |
739 | + | MagHandleweld.C0 = CFrame.new(.5, -1, .6) * CFrame.Angles(1.5, 0, 1.5) |
740 | - | Part42.Rotation = Vector3.new(90.0199966, 0, 0) |
740 | + | for i = 0, 1, 0.08 do |
741 | - | Part42.Anchored = true |
741 | + | wait() |
742 | - | Part42.Locked = true |
742 | + | if Crouching == false and Aiming == true then |
743 | - | Part42.FormFactor = Enum.FormFactor.Custom |
743 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
744 | - | Part42.Size = Vector3.new(0.936787009, 0.936786115, 0.936786115) |
744 | + | elseif Crouching == true and Aiming == true then |
745 | - | Part42.CFrame = CFrame.new(-8.167202, 1.37509596, -48.8740616, 1, 0, 0, 0, -0.000299000007, -1, 0, 1, -0.000299000007) |
745 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
746 | - | Part42.BottomSurface = Enum.SurfaceType.Smooth |
746 | + | |
747 | - | Part42.TopSurface = Enum.SurfaceType.Smooth |
747 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(5), math.rad(50)), .3) |
748 | - | Part42.Color = Color3.new(0.843137, 0.772549, 0.603922) |
748 | + | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(120), math.rad(0), math.rad(-50)), .3) |
749 | - | Part42.Position = Vector3.new(-8.167202, 1.37509596, -48.8740616) |
749 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(20)), .3) |
750 | - | Part42.Orientation = Vector3.new(90, 0, 0) |
750 | + | if Crouching == false and Aiming == true then |
751 | - | Part42.Color = Color3.new(0.843137, 0.772549, 0.603922) |
751 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
752 | - | CylinderMesh43.Parent = Part42 |
752 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
753 | - | CylinderMesh43.Scale = Vector3.new(0.154006988, 0.00492822519, 0.154006958) |
753 | + | elseif Crouching == true and Aiming == true then |
754 | - | CylinderMesh43.Scale = Vector3.new(0.154006988, 0.00492822519, 0.154006958) |
754 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
755 | - | Part44.Parent = Tool0 |
755 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
756 | - | Part44.Material = Enum.Material.Metal |
756 | + | |
757 | - | Part44.BrickColor = BrickColor.new("Dark stone grey") |
757 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
758 | - | Part44.Rotation = Vector3.new(89.9700012, -0.459999979, -1.04999995) |
758 | + | |
759 | - | Part44.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
759 | + | CreateSound("rbxassetid://131045429", FakeHandle, 1, 1) |
760 | - | Part44.Velocity = Vector3.new(-0.00739284791, -0.00994298421, -0.0200043432) |
760 | + | for i = 0, 1, 0.08 do |
761 | - | Part44.Anchored = true |
761 | + | wait() |
762 | - | Part44.Locked = true |
762 | + | if Crouching == false and Aiming == true then |
763 | - | Part44.FormFactor = Enum.FormFactor.Custom |
763 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
764 | - | Part44.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
764 | + | elseif Crouching == true and Aiming == true then |
765 | - | Part44.CFrame = CFrame.new(-8.08428478, 0.717163026, -46.2560272, 0.99979949, 0.0183642488, -0.00798356067, -0.0079910038, 0.000331998192, -0.999968112, -0.0183610097, 0.999831378, 0.000478680391) |
765 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
766 | - | Part44.BottomSurface = Enum.SurfaceType.Smooth |
766 | + | |
767 | - | Part44.TopSurface = Enum.SurfaceType.Smooth |
767 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3) |
768 | - | Part44.Color = Color3.new(0.388235, 0.372549, 0.384314) |
768 | + | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.5) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-50)), .5) |
769 | - | Part44.Position = Vector3.new(-8.08428478, 0.717163026, -46.2560272) |
769 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.2, 0.5, -.3) * CFrame.Angles(math.rad(0), math.rad(60), math.rad(100)), .5) |
770 | - | Part44.Orientation = Vector3.new(89.5400009, -86.5699997, -87.6199951) |
770 | + | if Crouching == false and Aiming == true then |
771 | - | Part44.Color = Color3.new(0.388235, 0.372549, 0.384314) |
771 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
772 | - | CylinderMesh45.Parent = Part44 |
772 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
773 | - | CylinderMesh45.Scale = Vector3.new(0.382352948, 0.458823562, 0.286764711) |
773 | + | elseif Crouching == true and Aiming == true then |
774 | - | CylinderMesh45.Scale = Vector3.new(0.382352948, 0.458823562, 0.286764711) |
774 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
775 | - | Part46.Parent = Tool0 |
775 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
776 | - | Part46.Material = Enum.Material.Metal |
776 | + | |
777 | - | Part46.BrickColor = BrickColor.new("Brick yellow") |
777 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
778 | - | Part46.Rotation = Vector3.new(89.9700012, -0.459999979, -1.04999995) |
778 | + | |
779 | - | Part46.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
779 | + | MagHandleweld.Part0 = FakeHandle |
780 | - | Part46.Velocity = Vector3.new(-0.00548611162, -0.00902249571, -0.0133572705) |
780 | + | MagHandleweld.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) |
781 | - | Part46.Anchored = true |
781 | + | Ammo = 10 |
782 | - | Part46.Locked = true |
782 | + | print(Ammo) |
783 | - | Part46.FormFactor = Enum.FormFactor.Custom |
783 | + | if Depleted == true then |
784 | - | Part46.Size = Vector3.new(0.200000003, 1.83221889, 0.200000003) |
784 | + | Depleted = false |
785 | - | Part46.CFrame = CFrame.new(-8.14231396, 0.980186999, -47.1882019, 0.99979949, 0.0183642488, -0.00798356067, -0.0079910038, 0.000331998192, -0.999968112, -0.0183610097, 0.999831378, 0.000478680391) |
785 | + | Handleweld.Part0 = LA |
786 | - | Part46.BottomSurface = Enum.SurfaceType.Smooth |
786 | + | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
787 | - | Part46.TopSurface = Enum.SurfaceType.Smooth |
787 | + | Handleweld.C1 = CFrame.new(-0.737663269, -0.281144857, 0.33117196, 0.00916702952, 0.939647615, 0.342020333, 0.999940991, -0.0106014106, 0.00232372736, 0.00580918044, 0.341978878, -0.939689875) |
788 | - | Part46.Color = Color3.new(0.843137, 0.772549, 0.603922) |
788 | + | for i = 0, 1, 0.1 do |
789 | - | Part46.Position = Vector3.new(-8.14231396, 0.980186999, -47.1882019) |
789 | + | wait() |
790 | - | Part46.Orientation = Vector3.new(89.5400009, -86.5699997, -87.6199951) |
790 | + | if Crouching == false and Aiming == true then |
791 | - | Part46.Color = Color3.new(0.843137, 0.772549, 0.603922) |
791 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
792 | - | CylinderMesh47.Parent = Part46 |
792 | + | elseif Crouching == true and Aiming == true then |
793 | - | CylinderMesh47.Scale = Vector3.new(2.19852948, 1, 1.24264705) |
793 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
794 | - | CylinderMesh47.Scale = Vector3.new(2.19852948, 1, 1.24264705) |
794 | + | |
795 | - | Part48.Parent = Tool0 |
795 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) |
796 | - | Part48.Material = Enum.Material.Metal |
796 | + | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .3) |
797 | - | Part48.BrickColor = BrickColor.new("Brick yellow") |
797 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) |
798 | - | Part48.Rotation = Vector3.new(-23.5100002, -88.8499985, -113.489998) |
798 | + | if Crouching == false and Aiming == true then |
799 | - | Part48.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
799 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
800 | - | Part48.Velocity = Vector3.new(-0.00757088838, -0.00864217989, -0.0033302696) |
800 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
801 | - | Part48.Anchored = true |
801 | + | elseif Crouching == true and Aiming == true then |
802 | - | Part48.Locked = true |
802 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
803 | - | Part48.FormFactor = Enum.FormFactor.Custom |
803 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
804 | - | Part48.Size = Vector3.new(0.200000003, 0.412537485, 0.206269354) |
804 | + | |
805 | - | Part48.CFrame = CFrame.new(-8.16976547, 0.671715021, -48.6028252, -0.00798300095, 0.0183670055, -0.99979949, -0.999968112, 0.000328306545, 0.00799037796, 0.000475000066, 0.999831259, 0.0183637999) |
805 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
806 | - | Part48.BottomSurface = Enum.SurfaceType.Smooth |
806 | + | |
807 | - | Part48.TopSurface = Enum.SurfaceType.Smooth |
807 | + | CreateSound("rbxassetid://146740582", BoltHandle, .7, 1) |
808 | - | Part48.Color = Color3.new(0.843137, 0.772549, 0.603922) |
808 | + | for i = 0, 1, 0.1 do |
809 | - | Part48.Position = Vector3.new(-8.16976547, 0.671715021, -48.6028252) |
809 | + | wait() |
810 | - | Part48.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
810 | + | if Crouching == false and Aiming == true then |
811 | - | Part48.Color = Color3.new(0.843137, 0.772549, 0.603922) |
811 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
812 | - | BlockMesh49.Parent = Part48 |
812 | + | elseif Crouching == true and Aiming == true then |
813 | - | BlockMesh49.Scale = Vector3.new(0.15092878, 1, 1) |
813 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
814 | - | BlockMesh49.Scale = Vector3.new(0.15092878, 1, 1) |
814 | + | |
815 | - | Part50.Parent = Tool0 |
815 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) |
816 | - | Part50.Material = Enum.Material.Metal |
816 | + | RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) |
817 | - | Part50.BrickColor = BrickColor.new("Black") |
817 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) |
818 | - | Part50.Rotation = Vector3.new(-90.0299988, 0.459999979, 1.04999995) |
818 | + | if Crouching == false and Aiming == true then |
819 | - | Part50.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
819 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
820 | - | Part50.Velocity = Vector3.new(-0.0054171551, -0.00887843221, -0.0117353667) |
820 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
821 | - | Part50.Anchored = true |
821 | + | elseif Crouching == true and Aiming == true then |
822 | - | Part50.Locked = true |
822 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
823 | - | Part50.FormFactor = Enum.FormFactor.Custom |
823 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
824 | - | Part50.Size = Vector3.new(0.344117641, 0.344117641, 0.200000003) |
824 | + | |
825 | - | Part50.CFrame = CFrame.new(-8.14647198, 0.988098025, -47.4181595, 0.99979949, -0.0183642488, 0.00798356067, -0.0079910038, -0.000331998192, 0.999968112, -0.0183610097, -0.999831378, -0.000478680391) |
825 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
826 | - | Part50.BottomSurface = Enum.SurfaceType.Smooth |
826 | + | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(.5, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
827 | - | Part50.TopSurface = Enum.SurfaceType.Smooth |
827 | + | |
828 | - | Part50.Color = Color3.new(0.105882, 0.164706, 0.207843) |
828 | + | for i = 0, 1, 0.3 do |
829 | - | Part50.Position = Vector3.new(-8.14647198, 0.988098025, -47.4181595) |
829 | + | wait() |
830 | - | Part50.Orientation = Vector3.new(-89.5400009, 93.4300003, -92.3799973) |
830 | + | if Crouching == false and Aiming == true then |
831 | - | Part50.Color = Color3.new(0.105882, 0.164706, 0.207843) |
831 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
832 | - | BlockMesh51.Parent = Part50 |
832 | + | elseif Crouching == true and Aiming == true then |
833 | - | BlockMesh51.Scale = Vector3.new(0.720000029, 0.600000024, 0.286764711) |
833 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
834 | - | BlockMesh51.Scale = Vector3.new(0.720000029, 0.600000024, 0.286764711) |
834 | + | |
835 | - | Part52.Parent = Tool0 |
835 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(80)), .3) |
836 | - | Part52.Material = Enum.Material.Metal |
836 | + | RW.C0 = clerp(RW.C0, CFrame.new(.5, 0.5, -.6) * CFrame.Angles(math.rad(80), math.rad(-30), math.rad(-90)), .5) |
837 | - | Part52.BrickColor = BrickColor.new("Dark stone grey") |
837 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.3, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(70)), .3) |
838 | - | Part52.Rotation = Vector3.new(-23.5199986, -88.8499985, -113.489998) |
838 | + | if Crouching == false and Aiming == true then |
839 | - | Part52.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
839 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
840 | - | Part52.Velocity = Vector3.new(-0.00672776345, -0.00946390536, -0.0157152526) |
840 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
841 | - | Part52.Anchored = true |
841 | + | elseif Crouching == true and Aiming == true then |
842 | - | Part52.Locked = true |
842 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
843 | - | Part52.FormFactor = Enum.FormFactor.Custom |
843 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
844 | - | Part52.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
844 | + | |
845 | - | Part52.CFrame = CFrame.new(-8.1375227, 0.808288991, -46.8531761, -0.00798300095, 0.018366009, -0.99979949, -0.999968112, 0.000328314549, 0.00799037796, 0.000475000066, 0.999831378, 0.0183627978) |
845 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
846 | - | Part52.BottomSurface = Enum.SurfaceType.Smooth |
846 | + | BoltHandleweld.C0 = clerp(BoltHandleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
847 | - | Part52.TopSurface = Enum.SurfaceType.Smooth |
847 | + | |
848 | - | Part52.Color = Color3.new(0.388235, 0.372549, 0.384314) |
848 | + | |
849 | - | Part52.Position = Vector3.new(-8.1375227, 0.808288991, -46.8531761) |
849 | + | Handleweld.Part0 = RA |
850 | - | Part52.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
850 | + | Handleweld.C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) |
851 | - | Part52.Color = Color3.new(0.388235, 0.372549, 0.384314) |
851 | + | Handleweld.C1 = CFrame.new(1.03214836, -0.278110504, -0.0978469849, 0, 0.999999702, -2.98023224e-008, 0, -2.98023188e-008, -0.999999821, -1, 4.37113847e-008, -1.77635684e-015) |
852 | - | BlockMesh53.Parent = Part52 |
852 | + | attack = false |
853 | - | BlockMesh53.Scale = Vector3.new(0.458823562, 1.14705884, 0.477941185) |
853 | + | |
854 | - | BlockMesh53.Scale = Vector3.new(0.458823562, 1.14705884, 0.477941185) |
854 | + | |
855 | - | Part54.Parent = Tool0 |
855 | + | mouse.Button1Down:connect(function() |
856 | - | Part54.Material = Enum.Material.Metal |
856 | + | if attack == false and Depleted == false then |
857 | - | Part54.Rotation = Vector3.new(-23.5100002, -88.8499985, -99.4799957) |
857 | + | Fire() |
858 | - | Part54.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
858 | + | |
859 | - | Part54.Velocity = Vector3.new(-0.00798435789, -0.00845266879, 8.11479986e-05) |
859 | + | |
860 | - | Part54.Anchored = true |
860 | + | |
861 | - | Part54.Locked = true |
861 | + | mouse.KeyDown:connect(function(k) |
862 | - | Part54.FormFactor = Enum.FormFactor.Custom |
862 | + | k = k:lower() |
863 | - | Part54.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
863 | + | if k == "r" and attack == false then |
864 | - | Part54.CFrame = CFrame.new(-8.18009472, 0.607574999, -49.0836945, -0.00330000184, 0.019758001, -0.999799371, -0.970181584, 0.242247865, 0.0079895379, 0.24235715, 0.970013201, 0.0183694288) |
864 | + | Reload() |
865 | - | Part54.BottomSurface = Enum.SurfaceType.Smooth |
865 | + | elseif k == "f" and Aiming == false then |
866 | - | Part54.TopSurface = Enum.SurfaceType.Smooth |
866 | + | Aiming = true |
867 | - | Part54.Position = Vector3.new(-8.18009472, 0.607574999, -49.0836945) |
867 | + | elseif k == "f" and Aiming == true then |
868 | - | Part54.Orientation = Vector3.new(-0.459999979, -88.9499969, -75.9799957) |
868 | + | |
869 | - | BlockMesh55.Parent = Part54 |
869 | + | elseif k == "c" and Aiming == true and Crouching == false then |
870 | - | BlockMesh55.Scale = Vector3.new(0.427631557, 0.248166457, 0.328176051) |
870 | + | Crouching = true |
871 | - | BlockMesh55.Scale = Vector3.new(0.427631557, 0.248166457, 0.328176051) |
871 | + | elseif k == "c" and Aiming == true and Crouching == true then |
872 | - | Part56.Parent = Tool0 |
872 | + | Crouching = false |
873 | - | Part56.Material = Enum.Material.Metal |
873 | + | elseif k == "z" and Aiming == true and Zoomed == false then |
874 | - | Part56.BrickColor = BrickColor.new("Brick yellow") |
874 | + | Zoomed = true |
875 | - | Part56.Rotation = Vector3.new(-23.5199986, -88.8499985, -113.489998) |
875 | + | CreateSound("rbxassetid://180144779", FakeHandle, 1, 1) |
876 | - | Part56.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
876 | + | for i = 0, 1, 0.2 do |
877 | - | Part56.Velocity = Vector3.new(-0.00442852499, -0.00921547133, -0.0184444357) |
877 | + | wait() |
878 | - | Part56.Anchored = true |
878 | + | cam.FieldOfView = cam.FieldOfView - 5 |
879 | - | Part56.Locked = true |
879 | + | |
880 | - | Part56.FormFactor = Enum.FormFactor.Custom |
880 | + | Ply.CameraMode = "LockFirstPerson" |
881 | - | Part56.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
881 | + | --Ply.DevEnableMouseLock = false |
882 | - | Part56.CFrame = CFrame.new(-8.12789536, 1.13742101, -46.4714012, -0.00798300095, 0.018366009, -0.99979949, -0.999968112, 0.000328314549, 0.00799037796, 0.000475000066, 0.999831378, 0.0183627978) |
882 | + | cam.FieldOfView = 10 |
883 | - | Part56.BottomSurface = Enum.SurfaceType.Smooth |
883 | + | cam.CameraSubject = ScopeZoom |
884 | - | Part56.TopSurface = Enum.SurfaceType.Smooth |
884 | + | mouse.Icon = "rbxassetid://18006519" |
885 | - | Part56.Color = Color3.new(0.843137, 0.772549, 0.603922) |
885 | + | elseif k == "z" and Aiming == true and Zoomed == true then |
886 | - | Part56.Position = Vector3.new(-8.12789536, 1.13742101, -46.4714012) |
886 | + | Zoomed = false |
887 | - | Part56.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
887 | + | CreateSound("rbxassetid://190623951", FakeHandle, 1, 1) |
888 | - | Part56.Color = Color3.new(0.843137, 0.772549, 0.603922) |
888 | + | for i = 0, 1, 0.2 do |
889 | - | BlockMesh57.Parent = Part56 |
889 | + | wait() |
890 | - | BlockMesh57.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
890 | + | cam.FieldOfView = cam.FieldOfView + 5 |
891 | - | BlockMesh57.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
891 | + | |
892 | - | Part58.Parent = Tool0 |
892 | + | Ply.CameraMode = "Classic" |
893 | - | Part58.Material = Enum.Material.Metal |
893 | + | --Ply.DevEnableMouseLock = true |
894 | - | Part58.BrickColor = BrickColor.new("Brick yellow") |
894 | + | cam.FieldOfView = 80 |
895 | - | Part58.Rotation = Vector3.new(-23.5100002, -88.8499985, -113.489998) |
895 | + | cam.CameraSubject = Hu |
896 | - | Part58.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
896 | + | mouse.Icon = "" |
897 | - | Part58.Velocity = Vector3.new(-0.00552675314, -0.00810130779, -0.0017657805) |
897 | + | |
898 | - | Part58.Anchored = true |
898 | + | |
899 | - | Part58.Locked = true |
899 | + | |
900 | - | Part58.FormFactor = Enum.FormFactor.Custom |
900 | + | |
901 | - | Part58.Size = Vector3.new(0.200000003, 0.200000003, 0.206269354) |
901 | + | local sine = 0 |
902 | - | Part58.CFrame = CFrame.new(-8.17257118, 0.957642019, -48.825901, -0.00798300095, 0.0183670055, -0.99979949, -0.999968112, 0.000328306545, 0.00799037796, 0.000475000066, 0.999831259, 0.0183637999) |
902 | + | local change = 1 |
903 | - | Part58.BottomSurface = Enum.SurfaceType.Smooth |
903 | + | local val = 0 |
904 | - | Part58.TopSurface = Enum.SurfaceType.Smooth |
904 | + | |
905 | - | Part58.Color = Color3.new(0.843137, 0.772549, 0.603922) |
905 | + | while true do |
906 | - | Part58.Position = Vector3.new(-8.17257118, 0.957642019, -48.825901) |
906 | + | wait() |
907 | - | Part58.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
907 | + | sine = sine + change |
908 | - | Part58.Color = Color3.new(0.843137, 0.772549, 0.603922) |
908 | + | local torvel = (RP.Velocity * Vector3.new(1, 0, 1)).magnitude |
909 | - | BlockMesh59.Parent = Part58 |
909 | + | local velderp = RP.Velocity.y |
910 | - | BlockMesh59.Scale = Vector3.new(0.201238394, 0.578557312, 1) |
910 | + | hitfloor, posfloor = rayCast(RP.Position, (CFrame.new(RP.Position, RP.Position - Vector3.new(0, 1, 0))).lookVector, 4, Char) |
911 | - | BlockMesh59.Scale = Vector3.new(0.201238394, 0.578557312, 1) |
911 | + | if equipped == true or equipped == false then |
912 | - | Part60.Parent = Tool0 |
912 | + | if Aiming == true then |
913 | - | Part60.Material = Enum.Material.Metal |
913 | + | if Crouching == false and Aiming == true then |
914 | - | Part60.BrickColor = BrickColor.new("Brick yellow") |
914 | + | Hu.WalkSpeed = 10 |
915 | - | Part60.Rotation = Vector3.new(-23.5100002, -88.8499985, -113.489998) |
915 | + | elseif Crouching == true and Aiming == true then |
916 | - | Part60.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
916 | + | Hu.WalkSpeed = 5 |
917 | - | Part60.Velocity = Vector3.new(-0.00435269345, -0.00859276205, -0.0108705759) |
917 | + | |
918 | - | Part60.Anchored = true |
918 | + | gyro.Parent = RP |
919 | - | Part60.Locked = true |
919 | + | local gunpos = Vector3.new(mouse.Hit.p.x, He.Position.Y, mouse.Hit.p.z) |
920 | - | Part60.FormFactor = Enum.FormFactor.Custom |
920 | + | offset = (Tor.Position.y - mouse.Hit.p.y) / 60 |
921 | - | Part60.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
921 | + | local mag = (Tor.Position - mouse.Hit.p).magnitude / 80 |
922 | - | Part60.CFrame = CFrame.new(-8.14756584, 1.13706195, -47.5422134, -0.00798300095, 0.0183710046, -0.999799371, -0.999968112, 0.000329274451, 0.00799039751, 0.000476000045, 0.999831259, 0.0183677897) |
922 | + | offset = offset / mag |
923 | - | Part60.BottomSurface = Enum.SurfaceType.Smooth |
923 | + | gyro.CFrame = CFrame.new(Vector3.new(),(mouse.Hit.p -RP.CFrame.p).unit * 100) |
924 | - | Part60.TopSurface = Enum.SurfaceType.Smooth |
924 | + | elseif Aiming == false then |
925 | - | Part60.Color = Color3.new(0.843137, 0.772549, 0.603922) |
925 | + | Hu.JumpPower = 50 |
926 | - | Part60.Position = Vector3.new(-8.14756584, 1.13706195, -47.5422134) |
926 | + | Hu.WalkSpeed = 16 |
927 | - | Part60.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
927 | + | gyro.Parent = nil |
928 | - | Part60.Color = Color3.new(0.843137, 0.772549, 0.603922) |
928 | + | |
929 | - | BlockMesh61.Parent = Part60 |
929 | + | if RP.Velocity.y > 1 and hitfloor == nil then |
930 | - | BlockMesh61.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
930 | + | Anim = "Jump" |
931 | - | BlockMesh61.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
931 | + | if attack == false and Aiming == false then |
932 | - | Part62.Parent = Tool0 |
932 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
933 | - | Part62.Material = Enum.Material.Metal |
933 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3) |
934 | - | Part62.BrickColor = BrickColor.new("Dark stone grey") |
934 | + | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(60), math.rad(0), math.rad(-40)), .3) |
935 | - | Part62.Rotation = Vector3.new(89.9700012, -0.459999979, -1.04999995) |
935 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(60)), .3) |
936 | - | Part62.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
936 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3) |
937 | - | Part62.Velocity = Vector3.new(-0.00744395144, -0.00994282216, -0.0198728051) |
937 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3) |
938 | - | Part62.Anchored = true |
938 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3) |
939 | - | Part62.Locked = true |
939 | + | elseif attack == false and Aiming == true then |
940 | - | Part62.FormFactor = Enum.FormFactor.Custom |
940 | + | if Crouching == false and Aiming == true then |
941 | - | Part62.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
941 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
942 | - | Part62.CFrame = CFrame.new(-8.17625809, 0.717880011, -46.2543373, 0.99979949, 0.0183642488, -0.00798356067, -0.0079910038, 0.000331998192, -0.999968112, -0.0183610097, 0.999831378, 0.000478680391) |
942 | + | elseif Crouching == true and Aiming == true then |
943 | - | Part62.BottomSurface = Enum.SurfaceType.Smooth |
943 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
944 | - | Part62.TopSurface = Enum.SurfaceType.Smooth |
944 | + | |
945 | - | Part62.Color = Color3.new(0.388235, 0.372549, 0.384314) |
945 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) |
946 | - | Part62.Position = Vector3.new(-8.17625809, 0.717880011, -46.2543373) |
946 | + | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) |
947 | - | Part62.Orientation = Vector3.new(89.5400009, -86.5699997, -87.6199951) |
947 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) |
948 | - | Part62.Color = Color3.new(0.388235, 0.372549, 0.384314) |
948 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
949 | - | CylinderMesh63.Parent = Part62 |
949 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
950 | - | CylinderMesh63.Scale = Vector3.new(0.382352948, 0.458823562, 0.286764711) |
950 | + | if Crouching == false and Aiming == true then |
951 | - | CylinderMesh63.Scale = Vector3.new(0.382352948, 0.458823562, 0.286764711) |
951 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
952 | - | Part64.Parent = Tool0 |
952 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
953 | - | Part64.Material = Enum.Material.Metal |
953 | + | elseif Crouching == true and Aiming == true then |
954 | - | Part64.BrickColor = BrickColor.new("Dark stone grey") |
954 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
955 | - | Part64.Rotation = Vector3.new(-90.0299988, 0.459999979, -178.949997) |
955 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
956 | - | Part64.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
956 | + | |
957 | - | Part64.Velocity = Vector3.new(-0.0114239492, -0.00803399365, 0.0140203554) |
957 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
958 | - | Part64.Anchored = true |
958 | + | |
959 | - | Part64.Locked = true |
959 | + | elseif RP.Velocity.y < -1 and hitfloor == nil then |
960 | - | Part64.FormFactor = Enum.FormFactor.Custom |
960 | + | Anim = "Fall" |
961 | - | Part64.Size = Vector3.new(0.226393193, 0.200000003, 0.200000003) |
961 | + | if attack == false and Aiming == false then |
962 | - | Part64.CFrame = CFrame.new(-8.22022533, 0.100946002, -51.048111, -0.99979949, 0.0183642507, 0.00798455905, 0.00799200404, 0.000331998162, 0.999967992, 0.0183610097, 0.999831378, -0.000478698697) |
962 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .3) |
963 | - | Part64.BottomSurface = Enum.SurfaceType.Smooth |
963 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), .3) |
964 | - | Part64.TopSurface = Enum.SurfaceType.Smooth |
964 | + | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(100), math.rad(0), math.rad(-40)), .3) |
965 | - | Part64.Color = Color3.new(0.388235, 0.372549, 0.384314) |
965 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(100)), .3) |
966 | - | Part64.Position = Vector3.new(-8.22022533, 0.100946002, -51.048111) |
966 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(30)), .3) |
967 | - | Part64.Orientation = Vector3.new(-89.5400009, 93.4300003, 87.6199951) |
967 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-4), math.rad(0), math.rad(-30)), .3) |
968 | - | Part64.Color = Color3.new(0.388235, 0.372549, 0.384314) |
968 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3) |
969 | - | SpecialMesh65.Parent = Part64 |
969 | + | elseif attack == false and Aiming == true then |
970 | - | SpecialMesh65.Scale = Vector3.new(1, 0.452785999, 0.362229109) |
970 | + | if Crouching == false and Aiming == true then |
971 | - | SpecialMesh65.MeshType = Enum.MeshType.Wedge |
971 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
972 | - | SpecialMesh65.Scale = Vector3.new(1, 0.452785999, 0.362229109) |
972 | + | elseif Crouching == true and Aiming == true then |
973 | - | Part66.Parent = Tool0 |
973 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
974 | - | Part66.Material = Enum.Material.Metal |
974 | + | |
975 | - | Part66.BrickColor = BrickColor.new("Brick yellow") |
975 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) |
976 | - | Part66.Rotation = Vector3.new(89.9700012, -0.459999979, -1.04999995) |
976 | + | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) |
977 | - | Part66.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
977 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) |
978 | - | Part66.Velocity = Vector3.new(-0.00539755914, -0.00947681256, -0.0192476604) |
978 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
979 | - | Part66.Anchored = true |
979 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
980 | - | Part66.Locked = true |
980 | + | if Crouching == false and Aiming == true then |
981 | - | Part66.FormFactor = Enum.FormFactor.Custom |
981 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
982 | - | Part66.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
982 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
983 | - | Part66.CFrame = CFrame.new(-7.96360207, 0.987128973, -46.3923569, 0.99979949, 0.0183642488, -0.00798356067, -0.0079910038, 0.000331998192, -0.999968112, -0.0183610097, 0.999831378, 0.000478680391) |
983 | + | elseif Crouching == true and Aiming == true then |
984 | - | Part66.BottomSurface = Enum.SurfaceType.Smooth |
984 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
985 | - | Part66.TopSurface = Enum.SurfaceType.Smooth |
985 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
986 | - | Part66.Color = Color3.new(0.843137, 0.772549, 0.603922) |
986 | + | |
987 | - | Part66.Position = Vector3.new(-7.96360207, 0.987128973, -46.3923569) |
987 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
988 | - | Part66.Orientation = Vector3.new(89.5400009, -86.5699997, -87.6199951) |
988 | + | |
989 | - | Part66.Color = Color3.new(0.843137, 0.772549, 0.603922) |
989 | + | elseif torvel < 1 and hitfloor ~= nil then |
990 | - | BlockMesh67.Parent = Part66 |
990 | + | Anim = "Idle" |
991 | - | BlockMesh67.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
991 | + | if attack == false and Aiming == false then |
992 | - | BlockMesh67.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
992 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(50)), .3) |
993 | - | Part68.Parent = Tool0 |
993 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(-50)), .3) |
994 | - | Part68.Material = Enum.Material.Metal |
994 | + | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, 0) * CFrame.Angles(math.rad(70), math.rad(0), math.rad(-40)), .3) |
995 | - | Part68.BrickColor = BrickColor.new("Brick yellow") |
995 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(70)), .3) |
996 | - | Part68.Rotation = Vector3.new(-23.5199986, -88.8499985, -113.489998) |
996 | + | RH.C0 = clerp(RH.C0, CFrame.new(.9, -.5, .2) * RHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(0)), .3) |
997 | - | Part68.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
997 | + | LH.C0 = clerp(LH.C0, CFrame.new(-.5, -1, -1) * LHCF * CFrame.Angles(math.rad(-5), math.rad(-50), math.rad(50)), .3) |
998 | - | Part68.Velocity = Vector3.new(-0.00439644, -0.0089486884, -0.0151985977) |
998 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(70), math.rad(0)), .3) |
999 | - | Part68.Anchored = true |
999 | + | elseif attack == false and Aiming == true then |
1000 | - | Part68.Locked = true |
1000 | + | if Crouching == false and Aiming == true then |
1001 | - | Part68.FormFactor = Enum.FormFactor.Custom |
1001 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
1002 | - | Part68.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
1002 | + | elseif Crouching == true and Aiming == true then |
1003 | - | Part68.CFrame = CFrame.new(-8.13631821, 1.13725305, -46.9303207, -0.00798300095, 0.018366009, -0.99979949, -0.999968112, 0.000328314549, 0.00799037796, 0.000475000066, 0.999831378, 0.0183627978) |
1003 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
1004 | - | Part68.BottomSurface = Enum.SurfaceType.Smooth |
1004 | + | |
1005 | - | Part68.TopSurface = Enum.SurfaceType.Smooth |
1005 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) |
1006 | - | Part68.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1006 | + | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) |
1007 | - | Part68.Position = Vector3.new(-8.13631821, 1.13725305, -46.9303207) |
1007 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) |
1008 | - | Part68.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
1008 | + | if Crouching == false and Aiming == true then |
1009 | - | Part68.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1009 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1010 | - | BlockMesh69.Parent = Part68 |
1010 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1011 | - | BlockMesh69.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
1011 | + | elseif Crouching == true and Aiming == true then |
1012 | - | BlockMesh69.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
1012 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.5, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1013 | - | Part70.Parent = Tool0 |
1013 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
1014 | - | Part70.Material = Enum.Material.Metal |
1014 | + | |
1015 | - | Part70.BrickColor = BrickColor.new("Brick yellow") |
1015 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
1016 | - | Part70.Rotation = Vector3.new(-23.5199986, -88.8499985, -23.4899998) |
1016 | + | |
1017 | - | Part70.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
1017 | + | elseif torvel > 2 and hitfloor ~= nil then |
1018 | - | Part70.Velocity = Vector3.new(-0.00628012791, -0.00753658637, 0.00718653621) |
1018 | + | Anim = "Walk" |
1019 | - | Part70.Anchored = true |
1019 | + | if attack == false and Aiming == false then |
1020 | - | Part70.Locked = true |
1020 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)), .3) |
1021 | - | Part70.FormFactor = Enum.FormFactor.Custom |
1021 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(-20), math.rad(0), math.rad(0)), .3) |
1022 | - | Part70.Size = Vector3.new(0.20224461, 0.200000003, 0.200000003) |
1022 | + | RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.4, -.2) * CFrame.Angles(math.rad(50), math.rad(0), math.rad(-40)), .3) |
1023 | - | Part70.CFrame = CFrame.new(-8.19675827, 0.83822602, -50.0906296, 0.0183660071, 0.00798300654, -0.99979949, 0.000332000112, 0.999968112, 0.0079904506, 0.999831378, -0.000478686212, 0.018362768) |
1023 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.4) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(50)), .3) |
1024 | - | Part70.BottomSurface = Enum.SurfaceType.Smooth |
1024 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) |
1025 | - | Part70.TopSurface = Enum.SurfaceType.Smooth |
1025 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(0)), .3) |
1026 | - | Part70.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1026 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(80), math.rad(0)), .3) |
1027 | - | Part70.Position = Vector3.new(-8.19675827, 0.83822602, -50.0906296) |
1027 | + | elseif attack == false and Aiming == true then |
1028 | - | Part70.Orientation = Vector3.new(-0.459999979, -88.9499969, 0.0199999996) |
1028 | + | if Crouching == false and Aiming == true then |
1029 | - | Part70.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1029 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
1030 | - | BlockMesh71.Parent = Part70 |
1030 | + | elseif Crouching == true and Aiming == true then |
1031 | - | BlockMesh71.Scale = Vector3.new(1.20000005, 0.917647123, 0.928212047) |
1031 | + | RJ.C0 = clerp(RJ.C0, RootCF * CFrame.new(0, 0, -.5) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-90)), .4) |
1032 | - | BlockMesh71.Scale = Vector3.new(1.20000005, 0.917647123, 0.928212047) |
1032 | + | |
1033 | - | Part72.Parent = Tool0 |
1033 | + | Ne.C0 = clerp(Ne.C0, NeckCF * CFrame.Angles(math.rad(5), math.rad(0), math.rad(90)), .4) |
1034 | - | Part72.Material = Enum.Material.Metal |
1034 | + | RW.C0 = clerp(RW.C0, CFrame.new(.51, 0.51, -.6) * CFrame.Angles(math.rad(90), math.rad(0), math.rad(-90)), .4) |
1035 | - | Part72.BrickColor = BrickColor.new("Brick yellow") |
1035 | + | LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.51, 0) * CFrame.Angles(math.rad(0), math.rad(160), math.rad(90)), .4) |
1036 | - | Part72.Rotation = Vector3.new(-179.979996, 0, 90) |
1036 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1037 | - | Part72.Anchored = true |
1037 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1038 | - | Part72.Locked = true |
1038 | + | if Crouching == false and Aiming == true then |
1039 | - | Part72.FormFactor = Enum.FormFactor.Custom |
1039 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1040 | - | Part72.Size = Vector3.new(0.936787009, 0.936786115, 0.936786115) |
1040 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1041 | - | Part72.CFrame = CFrame.new(-8.05185127, 1.37530196, -48.5129623, 0, -1, 0, -1, 0, 0.000316999998, -0.000316999998, 0, -1) |
1041 | + | elseif Crouching == true and Aiming == true then |
1042 | - | Part72.BottomSurface = Enum.SurfaceType.Smooth |
1042 | + | RH.C0 = clerp(RH.C0, CFrame.new(1, -.1, -.5) * RHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(0)), .4) |
1043 | - | Part72.TopSurface = Enum.SurfaceType.Smooth |
1043 | + | LH.C0 = clerp(LH.C0, CFrame.new(-1, -.1, -.2) * LHCF * CFrame.Angles(math.rad(-5), math.rad(0), math.rad(50)), .4) |
1044 | - | Part72.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1044 | + | |
1045 | - | Part72.Position = Vector3.new(-8.05185127, 1.37530196, -48.5129623) |
1045 | + | FakeHandleweld.C0 = clerp(Handleweld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), .4) |
1046 | - | Part72.Orientation = Vector3.new(-0.0199999996, 180, -90) |
1046 | + | |
1047 | - | Part72.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1047 | + | |
1048 | - | CylinderMesh73.Parent = Part72 |
1048 | + | |
1049 | - | CylinderMesh73.Scale = Vector3.new(0.154006988, 0.12012548, 0.154006958) |
1049 | + | |
1050 | - | CylinderMesh73.Scale = Vector3.new(0.154006988, 0.12012548, 0.154006958) |
1050 | + | if #Effects > 0 then |
1051 | - | Part74.Parent = Tool0 |
1051 | + | for e = 1, #Effects do |
1052 | - | Part74.Material = Enum.Material.Metal |
1052 | + | if Effects[e] ~= nil then |
1053 | - | Part74.BrickColor = BrickColor.new("Brick yellow") |
1053 | + | local Thing = Effects[e] |
1054 | - | Part74.Rotation = Vector3.new(-90.0299988, 0.459999979, 1.04999995) |
1054 | + | if Thing ~= nil then |
1055 | - | Part74.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
1055 | + | local Part = Thing[1] |
1056 | - | Part74.Velocity = Vector3.new(-0.00765358377, -0.00846188422, -0.000872140983) |
1056 | + | local Mode = Thing[2] |
1057 | - | Part74.Anchored = true |
1057 | + | local Delay = Thing[3] |
1058 | - | Part74.Locked = true |
1058 | + | local IncX = Thing[4] |
1059 | - | Part74.FormFactor = Enum.FormFactor.Custom |
1059 | + | local IncY = Thing[5] |
1060 | - | Part74.Size = Vector3.new(0.206269354, 0.200000003, 0.200000003) |
1060 | + | local IncZ = Thing[6] |
1061 | - | Part74.CFrame = CFrame.new(-8.17724991, 0.655609012, -48.9497414, 0.99979949, -0.018364273, 0.00798350573, -0.0079910038, -0.000334997982, 0.999968112, -0.0183610097, -0.999831378, -0.000481679803) |
1061 | + | if Thing[1].Transparency <= 1 then |
1062 | - | Part74.BottomSurface = Enum.SurfaceType.Smooth |
1062 | + | if Thing[2] == "Block1" then |
1063 | - | Part74.TopSurface = Enum.SurfaceType.Smooth |
1063 | + | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) |
1064 | - | Part74.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1064 | + | Mesh = Thing[1].Mesh |
1065 | - | Part74.Position = Vector3.new(-8.17724991, 0.655609012, -48.9497414) |
1065 | + | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) |
1066 | - | Part74.Orientation = Vector3.new(-89.5400009, 93.4499969, -92.4000015) |
1066 | + | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1067 | - | Part74.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1067 | + | elseif Thing[2] == "Cylinder" then |
1068 | - | SpecialMesh75.Parent = Part74 |
1068 | + | Mesh = Thing[1].Mesh |
1069 | - | SpecialMesh75.Scale = Vector3.new(1, 0.503095448, 0.251548022) |
1069 | + | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) |
1070 | - | SpecialMesh75.MeshType = Enum.MeshType.Wedge |
1070 | + | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1071 | - | SpecialMesh75.Scale = Vector3.new(1, 0.503095448, 0.251548022) |
1071 | + | elseif Thing[2] == "Blood" then |
1072 | - | Part76.Parent = Tool0 |
1072 | + | Mesh = Thing[7] |
1073 | - | Part76.Material = Enum.Material.Metal |
1073 | + | Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, .5, 0) |
1074 | - | Part76.BrickColor = BrickColor.new("Brick yellow") |
1074 | + | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) |
1075 | - | Part76.Rotation = Vector3.new(-23.5199986, -88.8499985, -113.489998) |
1075 | + | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1076 | - | Part76.RotVelocity = Vector3.new(-0.00143767509, 0.00707420381, -0.000567234936) |
1076 | + | elseif Thing[2] == "Elec" then |
1077 | - | Part76.Velocity = Vector3.new(-0.00433173403, -0.00841488689, -0.00870535523) |
1077 | + | Mesh = Thing[1].Mesh |
1078 | - | Part76.Anchored = true |
1078 | + | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) |
1079 | - | Part76.Locked = true |
1079 | + | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1080 | - | Part76.FormFactor = Enum.FormFactor.Custom |
1080 | + | elseif Thing[2] == "Disappear" then |
1081 | - | Part76.Size = Vector3.new(0.200000003, 0.200000003, 0.200000003) |
1081 | + | Thing[1].Transparency = Thing[1].Transparency + Thing[3] |
1082 | - | Part76.CFrame = CFrame.new(-8.15316486, 1.13696301, -47.8471603, -0.00798300095, 0.018366009, -0.99979949, -0.999968112, 0.000328314549, 0.00799037796, 0.000475000066, 0.999831378, 0.0183627978) |
1082 | + | |
1083 | - | Part76.BottomSurface = Enum.SurfaceType.Smooth |
1083 | + | else |
1084 | - | Part76.TopSurface = Enum.SurfaceType.Smooth |
1084 | + | Part.Parent = nil |
1085 | - | Part76.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1085 | + | table.remove(Effects, e) |
1086 | - | Part76.Position = Vector3.new(-8.15316486, 1.13696301, -47.8471603) |
1086 | + | |
1087 | - | Part76.Orientation = Vector3.new(-0.459999979, -88.9499969, -89.9799957) |
1087 | + | |
1088 | - | Part76.Color = Color3.new(0.843137, 0.772549, 0.603922) |
1088 | + | |
1089 | - | BlockMesh77.Parent = Part76 |
1089 | + | |
1090 | - | BlockMesh77.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
1090 | + | |
1091 | - | BlockMesh77.Scale = Vector3.new(0.076470606, 0.458823562, 0.286764711) |
1091 | + |