SHOW:
|
|
- or go back to the newest paste.
1 | - | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
1 | + | if game:GetService("RunService"):IsClient()then error("say h/ not hl/ ya dummy")end;print("get rekt");InternalData = {} |
2 | - | local Player,Mouse,mouse,UserInputService,ContextActionService = owner |
2 | + | do |
3 | - | local RealPlayer = Player |
3 | + | script.Parent = owner.Character |
4 | - | do print("FE Compatibility code by Mokiros");InternalData = {}InternalData.RealOwner = owner;InternalData.RealObjs = {};InternalData.SoundLoudness = {};local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end,__call=function(self,...)local t=rawget(self,"_RealService")if t then return t(...)end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return self[t]end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;x.RunService=v({RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")setmetatable(x,{__index=function(self,t)return r:GetService(t)or typeof(r[t])=="function"and function(m,...)return r[t](r,...)end or r[t]end,__newindex=s.__newindex,__call=s.__call})game,owner=x,x.Players.LocalPlayer |
4 | + | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" |
5 | - | script.Parent = InternalData.RealOwner.Character |
5 | + | local function NewFakeEvent() |
6 | - | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput";InternalData.Event = Event |
6 | + | local Bind = Instance.new("BindableEvent") |
7 | - | local function createObject (connections, index) |
7 | + | local Fake;Fake = {Connections = {}, |
8 | - | local proxy = newproxy (true);local meta = getmetatable (proxy); |
8 | + | fakeEvent=true; |
9 | - | local runbind = function (self, i, ...) connections[i]:Fire (...); end; |
9 | + | Connect=function(self,Func) |
10 | - | while (#connections > 0) do connections[table.remove(connections, 1)] = Instance.new ('BindableEvent');end; |
10 | + | Bind.Event:connect(Func) |
11 | - | meta.__index = function (self, i) |
11 | + | self.Connections[Bind] = true |
12 | - | if (i == 'TriggerEvent') then return runbind end; |
12 | + | return setmetatable({Connected = true},{ |
13 | - | return connections[i] and connections[i].Event or index[i]; |
13 | + | __index = function (self,Index) |
14 | - | end; |
14 | + | if Index:lower() == "disconnect" then |
15 | - | meta.__newindex = index;meta.__metatable = false;return proxy |
15 | + | return function() Fake.Connections[Bind] = false;self.Connected = false end |
16 | - | end; |
16 | + | |
17 | - | local Mouse = createObject({"KeyUp","KeyDown","Button1Down","Button1Up"},{["Target"] = nil;["Hit"] = CFrame.new()}) |
17 | + | return Fake[Index] |
18 | - | local UserInputService = createObject({"InputBegan","InputEnded"},{}) |
18 | + | end; |
19 | - | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) |
19 | + | __tostring = function() return "Connection" end; |
20 | - | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil |
20 | + | |
21 | - | end};ContextActionService.UnBindAction = ContextActionService.BindAction |
21 | + | end} |
22 | - | Event.OnServerEvent:Connect(function(FiredBy,Input) |
22 | + | Fake.connect = Fake.Connect;return Fake; |
23 | - | if FiredBy ~= InternalData.RealOwner then return end |
23 | + | |
24 | - | if Input.MouseEvent then |
24 | + | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} |
25 | - | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit |
25 | + | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} |
26 | - | elseif Input.Sound then |
26 | + | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) |
27 | - | if InternalData.SoundLoudness[Input.Sound] then InternalData.SoundLoudness[Input.Sound] = Input.Loudness end |
27 | + | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil |
28 | - | else |
28 | + | end};ContextActionService.UnBindAction = ContextActionService.BindAction |
29 | - | local Begin = Input.UserInputState == Enum.UserInputState.Begin |
29 | + | local function TriggerEvent(self,Event,...) |
30 | - | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TriggerEvent(Begin and "Button1Down" or "Button1Up") end |
30 | + | local Trigger = Mouse[Event] |
31 | - | for _,Action in pairs(ContextActionService.Actions) do |
31 | + | if Trigger and Trigger.fakeEvent and Trigger.Connections then |
32 | - | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end |
32 | + | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end |
33 | - | end |
33 | + | |
34 | - | Mouse:TriggerEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower());UserInputService:TriggerEvent(Begin and "InputBegan" or "InputEnded",Input,false) |
34 | + | |
35 | - | end |
35 | + | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent |
36 | - | end) |
36 | + | Event.OnServerEvent:Connect(function(FiredBy,Input) |
37 | - | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService |
37 | + | if FiredBy.Name ~= owner.Name then return end |
38 | - | Event.Parent = NLS([[ |
38 | + | if Input.MouseEvent then |
39 | - | local Player = owner; |
39 | + | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit |
40 | - | local Sounds = {}; |
40 | + | else |
41 | - | local Event = script:WaitForChild("UserInput"); |
41 | + | local Begin = Input.UserInputState == Enum.UserInputState.Begin |
42 | - | local UserInputService = game:GetService("UserInputService"); |
42 | + | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end |
43 | - | local Mouse = Player:GetMouse(); |
43 | + | for _,Action in pairs(ContextActionService.Actions) do |
44 | - | local Input = function(Input,gameProcessedEvent) |
44 | + | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end |
45 | - | if gameProcessedEvent then return end |
45 | + | |
46 | - | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) |
46 | + | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) |
47 | - | end |
47 | + | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) |
48 | - | Event.OnClientEvent:connect(function(Args) |
48 | + | |
49 | - | if Args[1] == "NewSound" then table.insert(Sounds,Args[2]) end |
49 | + | |
50 | - | end) |
50 | + | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService |
51 | - | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) |
51 | + | Event.Parent = NLS([[ |
52 | - | local Hit,Target |
52 | + | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() |
53 | - | while wait(1/30) do |
53 | + | local Input = function(Input,gameProcessedEvent) |
54 | - | for x,Sound in pairs(Sounds) do |
54 | + | if gameProcessedEvent then return end |
55 | - | if Sound.Parent then Event:FireServer({["Sound"]=Sound,["Loudness"]=Sound.PlaybackLoudness}) end |
55 | + | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) |
56 | - | end |
56 | + | |
57 | - | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then |
57 | + | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) |
58 | - | Hit = Mouse.Hit;Target = Mouse.Target; |
58 | + | local Hit,Target |
59 | - | Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) |
59 | + | while wait(1/30) do |
60 | - | end |
60 | + | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then |
61 | - | end |
61 | + | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) |
62 | - | ]],InternalData.RealOwner.Character) |
62 | + | |
63 | end | |
64 | - | InternalData.NewOwner = setmetatable({},{ |
64 | + | ]],owner.Character) |
65 | - | __index = function (self,Index) |
65 | + | |
66 | - | local Type = type(InternalData.RealOwner[Index]) |
66 | + | RealGame = game;game = setmetatable({},{ |
67 | - | if Type == "function" then |
67 | + | __index = function (self,Index) |
68 | - | if Index:lower() == "getmouse" or Index:lower() == "mouse" then |
68 | + | local Sandbox = function (Thing) |
69 | - | return function (self)return InternalData["Mouse"] end |
69 | + | if Thing:IsA("Player") then |
70 | - | end |
70 | + | local RealPlayer = Thing |
71 | - | return function (self,...)return InternalData.RealOwner[Index](InternalData.RealOwner,...) end |
71 | + | return setmetatable({},{ |
72 | - | elseif Index == "FakePlayer" then |
72 | + | __index = function (self,Index) |
73 | - | return true |
73 | + | local Type = type(RealPlayer[Index]) |
74 | - | end |
74 | + | if Type == "function" then |
75 | - | return InternalData.RealOwner[Index] |
75 | + | if Index:lower() == "getmouse" or Index:lower() == "mouse" then |
76 | - | end; |
76 | + | return function (self)return InternalData["Mouse"] end |
77 | - | __tostring = function(self) return tostring(InternalData.RealOwner) end |
77 | + | end |
78 | - | }) |
78 | + | return function (self,...)return RealPlayer[Index](RealPlayer,...) end |
79 | - | --LoadLibrary("RbxUtility").Create |
79 | + | end |
80 | - | InternalData.LoadLibrary = LoadLibrary;LoadLibrary = function(Library) |
80 | + | return RealPlayer[Index] |
81 | - | if Library == "RbxUtility" then |
81 | + | end; |
82 | - | return setmetatable({},{ |
82 | + | __tostring = function(self) return RealPlayer.Name end |
83 | - | __tostring = function() return "RbxUtility" end; |
83 | + | }) |
84 | - | __index = function(self, Index) |
84 | + | |
85 | - | if Index:lower() == "create" then |
85 | + | |
86 | - | return function(Type) |
86 | + | if RealGame[Index] then |
87 | - | return function(Data) |
87 | + | local Type = type(RealGame[Index]) |
88 | - | Data = Data or {} |
88 | + | if Type == "function" then |
89 | - | local Inst = Instance.new(Type) |
89 | + | if Index:lower() == "getservice" or Index:lower() == "service" then |
90 | - | for x,y in pairs(Data) do |
90 | + | return function (self,Service) |
91 | - | if InternalData.RealObjs[y] then y = InternalData.RealObjs[y] end |
91 | + | local FakeServices = { |
92 | - | if y == owner then y = InternalData.RealOwner end |
92 | + | ["players"] = function() |
93 | - | Inst[x] = y |
93 | + | return setmetatable({},{ |
94 | - | end |
94 | + | __index = function (self2,Index2) |
95 | - | return Inst |
95 | + | local RealService = RealGame:GetService(Service) |
96 | - | end |
96 | + | local Type2 = type(Index2) |
97 | - | end |
97 | + | if Type2 == "function" then |
98 | - | end |
98 | + | return function (self,...) return RealService[Index2](RealService,...)end |
99 | - | return InternalData.LoadLibrary(Library)[Index] |
99 | + | else |
100 | - | end |
100 | + | if Index2:lower() == "localplayer" then return Sandbox(owner) end |
101 | - | }) |
101 | + | return RealService[Index2] |
102 | - | end |
102 | + | end |
103 | - | return InternalData.LoadLibrary(Library) |
103 | + | end; |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | - | InternalData.RealInstance = Instance;Instance = setmetatable({},{ |
105 | + | }) |
106 | - | __index = function (self,Index) |
106 | + | end; |
107 | - | if Index:lower() == 'new' then |
107 | + | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; |
108 | - | return function (Type, Parent) |
108 | + | ["userinputservice"] = function() return InternalData["UserInputService"] end; |
109 | - | if Parent == owner then Parent = InternalData.RealOwner end |
109 | + | ["runservice"] = function() |
110 | - | if InternalData.RealObjs[Parent] then Parent = InternalData.RealObjs[Parent] end |
110 | + | return setmetatable({},{ |
111 | - | local Real = InternalData.RealInstance.new(Type,Parent) |
111 | + | __index = function(self2,Index2) |
112 | - | if not Type then return end |
112 | + | local RealService = RealGame:GetService(Service) |
113 | - | if Type == "BillboardGui" then |
113 | + | local Type2 = type(Index2) |
114 | - | local ToReturn = setmetatable({},{ |
114 | + | if Type2 == "function" then |
115 | - | __index = function (self,Index) |
115 | + | return function (self,...) return RealService[Index2](RealService,...) end |
116 | - | if type(Real[Index]) == "function" then |
116 | + | else |
117 | - | if Index:lower() == "clone" then |
117 | + | local RunServices = { |
118 | - | return function (self) |
118 | + | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; |
119 | - | local Real = Real:Clone() |
119 | + | ["renderstepped"] = function() return RealService["Stepped"] end |
120 | - | local ToReturn = setmetatable({RealObject = Real},{ |
120 | + | } |
121 | - | __index = function (self,Index) |
121 | + | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end |
122 | - | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end |
122 | + | return RealService[Index2] |
123 | - | return Real[Index] |
123 | + | end |
124 | - | end; |
124 | + | end |
125 | - | __newindex = function (self,Index,Value) |
125 | + | }) |
126 | - | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end |
126 | + | end |
127 | - | if Value == owner then Value = InternalData.RealOwner end |
127 | + | } |
128 | - | Real[Index] = Value |
128 | + | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end |
129 | - | end; |
129 | + | return RealGame:GetService(Service) |
130 | - | __tostring = function(self) return tostring(Real) end; |
130 | + | |
131 | - | }) |
131 | + | |
132 | - | InternalData.RealObjs[ToReturn] = Real;return ToReturn; |
132 | + | return function (self,...) return RealGame[Index](RealGame,...) end |
133 | - | end |
133 | + | else |
134 | - | end |
134 | + | if game:GetService(Index) then return game:GetService(Index) end |
135 | - | return function (self,...) return Real[Index](Real,...)end |
135 | + | return RealGame[Index] |
136 | - | end |
136 | + | |
137 | - | return Real[Index] |
137 | + | |
138 | - | end; |
138 | + | return nil |
139 | - | __newindex = function (self,Index,Value) |
139 | + | |
140 | - | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end |
140 | + | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("running the script noob") |
141 | - | if Value == owner then Value = InternalData.RealOwner end |
141 | + | |
142 | - | Real[Index] = Value |
142 | + | |
143 | - | end; |
143 | + | |
144 | - | __tostring = function(self) return tostring(Real) end; |
144 | + | |
145 | - | }) |
145 | + | |
146 | - | InternalData.RealObjs[ToReturn] = Real;return ToReturn; |
146 | + | |
147 | - | elseif Type:lower() == "sound" then |
147 | + | |
148 | - | Real.Parent = owner.Character; |
148 | + | |
149 | - | local ToReturn = setmetatable({RealObject = Real},{ |
149 | + | |
150 | - | __index = function (self,Index) |
150 | + | |
151 | - | if Index:lower() == "playbackloudness" then |
151 | + | |
152 | - | return InternalData.SoundLoudness[Real] or 0 |
152 | + | |
153 | - | elseif type(Real[Index]) == "function" then |
153 | + | |
154 | - | if Index:lower() == "clone" then |
154 | + | |
155 | - | return function (self) |
155 | + | |
156 | - | local Real = Real:Clone() |
156 | + | |
157 | - | local ToReturn = setmetatable({},{ |
157 | + | |
158 | - | __index = function (self,Index) |
158 | + | |
159 | - | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end |
159 | + | |
160 | - | return Real[Index] |
160 | + | |
161 | - | end; |
161 | + | |
162 | - | __newindex = function (self,Index,Value) |
162 | + | |
163 | - | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end |
163 | + | |
164 | - | if Value == owner then Value = InternalData.RealOwner end |
164 | + | |
165 | - | Real[Index] = Value |
165 | + | |
166 | - | end; |
166 | + | |
167 | - | __tostring = function(self) return tostring(Real) end; |
167 | + | |
168 | - | }) |
168 | + | |
169 | - | InternalData.RealObjs[ToReturn] = Real;return ToReturn; |
169 | + | |
170 | - | end |
170 | + | |
171 | - | end |
171 | + | |
172 | - | return function (self,...) return Real[Index](Real,...)end |
172 | + | |
173 | - | end |
173 | + | |
174 | - | return Real[Index] |
174 | + | |
175 | - | end; |
175 | + | |
176 | - | __newindex = function (self,Index,Value) |
176 | + | |
177 | - | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end |
177 | + | |
178 | - | if Value == owner then Value = InternalData.RealOwner end |
178 | + | |
179 | - | Real[Index] = Value |
179 | + | |
180 | - | end; |
180 | + | |
181 | - | __tostring = function(self) return tostring(Real) end; |
181 | + | |
182 | - | }) |
182 | + | |
183 | - | InternalData.RealObjs[ToReturn] = Real;InternalData.SoundLoudness[Real] = 0;repeat wait() until InternalData.Event.Parent InternalData.Event:FireClient(InternalData.RealOwner,{"NewSound",Real}) return ToReturn; |
183 | + | |
184 | - | else |
184 | + | |
185 | - | local ToReturn = setmetatable({RealObject = Real},{ |
185 | + | |
186 | - | __index = function (self,Index) |
186 | + | |
187 | - | if type(Real[Index]) == "function" then |
187 | + | |
188 | - | if Index:lower() == "clone" then |
188 | + | |
189 | - | return function (self) |
189 | + | |
190 | - | local Real = Real:Clone() |
190 | + | |
191 | - | local ToReturn = setmetatable({},{ |
191 | + | |
192 | - | __index = function (self,Index) |
192 | + | |
193 | - | if type(Real[Index]) == "function" then return function (self,...) return Real[Index](Real,...)end end |
193 | + | |
194 | - | return Real[Index] |
194 | + | |
195 | - | end; |
195 | + | |
196 | - | __newindex = function (self,Index,Value) |
196 | + | |
197 | - | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end |
197 | + | |
198 | - | if Value == owner then Value = InternalData.RealOwner end |
198 | + | |
199 | - | Real[Index] = Value |
199 | + | |
200 | - | end; |
200 | + | |
201 | - | __tostring = function(self) return tostring(Real) end; |
201 | + | |
202 | - | }) |
202 | + | |
203 | - | InternalData.RealObjs[ToReturn] = Real;return ToReturn; |
203 | + | |
204 | - | end |
204 | + | |
205 | - | end |
205 | + | |
206 | - | return function (self,...) return Real[Index](Real,...)end |
206 | + | |
207 | - | end |
207 | + | |
208 | - | return Real[Index] |
208 | + | |
209 | - | end; |
209 | + | |
210 | - | __newindex = function (self,Index,Value) |
210 | + | |
211 | - | if InternalData.RealObjs[Value] then Value = InternalData.RealObjs[Value] end |
211 | + | |
212 | - | if Value == owner then Value = InternalData.RealOwner end |
212 | + | |
213 | - | Real[Index] = Value |
213 | + | |
214 | - | end; |
214 | + | |
215 | - | __tostring = function(self) return tostring(Real) end; |
215 | + | |
216 | - | }) |
216 | + | |
217 | - | InternalData.RealObjs[ToReturn] = Real;return ToReturn; |
217 | + | |
218 | - | end |
218 | + | |
219 | - | end |
219 | + | |
220 | - | end |
220 | + | |
221 | - | return InternalData.RealInstance[Index] |
221 | + | |
222 | - | end; |
222 | + | |
223 | - | __tostring = function(self) return tostring(InternalData.RealInstance) end; |
223 | + | |
224 | - | }); |
224 | + | |
225 | - | InternalData.RealGame = game;game = setmetatable({},{ |
225 | + | |
226 | - | __index = function (self,Index) |
226 | + | |
227 | - | if InternalData.RealGame[Index] then |
227 | + | |
228 | - | local Type = type(InternalData.RealGame[Index]) |
228 | + | |
229 | - | if Type == "function" then |
229 | + | |
230 | - | if Index:lower() == "getservice" or Index:lower() == "service" then |
230 | + | |
231 | - | return function (self,Service) |
231 | + | |
232 | - | local FakeServices = { |
232 | + | |
233 | - | ["players"] = function() |
233 | + | |
234 | - | return setmetatable({},{ |
234 | + | |
235 | - | __index = function (self2,Index2) |
235 | + | |
236 | - | local RealService = InternalData.RealGame:GetService(Service) |
236 | + | |
237 | - | local Type2 = type(RealService[Index2]) |
237 | + | |
238 | - | if Type2 == "function" then |
238 | + | |
239 | - | return function (self,...) return RealService[Index2](RealService,...)end |
239 | + | |
240 | - | else |
240 | + | |
241 | - | if Index2:lower() == "localplayer" then return InternalData.NewOwner end |
241 | + | |
242 | - | return RealService[Index2] |
242 | + | |
243 | - | end |
243 | + | |
244 | - | end; |
244 | + | |
245 | - | __tostring = function(self) return tostring(InternalData.RealGame:GetService(Service)) end |
245 | + | |
246 | - | }) |
246 | + | |
247 | - | end; |
247 | + | |
248 | - | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; |
248 | + | |
249 | - | ["userinputservice"] = function() return InternalData["UserInputService"] end; |
249 | + | |
250 | - | ["debris"] = function() |
250 | + | |
251 | - | return setmetatable({},{ |
251 | + | |
252 | - | __index = function(self2,Index2) |
252 | + | |
253 | - | local RealService = InternalData.RealGame:GetService(Service) |
253 | + | |
254 | - | local Type2 = type(RealService[Index2]) |
254 | + | |
255 | - | if Type2 == "function" then |
255 | + | |
256 | - | if Index2:lower() == "additem" then |
256 | + | |
257 | - | return function (self,Item,Time) |
257 | + | |
258 | - | if InternalData.RealObjs[Item] then Item = InternalData.RealObjs[Item] end |
258 | + | |
259 | - | return RealService:AddItem(Item,Time) |
259 | + | |
260 | - | end |
260 | + | |
261 | - | end |
261 | + | |
262 | - | return function (self,...) return RealService[Index2](RealService,...) end |
262 | + | |
263 | - | end |
263 | + | |
264 | - | return RealService[Index2] |
264 | + | |
265 | - | end; |
265 | + | |
266 | - | __tostring = function(self) return tostring(InternalData.RealGame:GetService("Debris")) end |
266 | + | |
267 | - | }) |
267 | + | |
268 | - | end; |
268 | + | |
269 | - | ["runservice"] = function() |
269 | + | |
270 | - | return setmetatable({},{ |
270 | + | |
271 | - | __index = function(self2,Index2) |
271 | + | |
272 | - | local RealService = InternalData.RealGame:GetService(Service) |
272 | + | |
273 | - | local Type2 = type(RealService[Index2]) |
273 | + | |
274 | - | if Type2 == "function" then |
274 | + | |
275 | - | return function (self,...) return RealService[Index2](RealService,...) end |
275 | + | |
276 | - | else |
276 | + | |
277 | - | local RunServices = { |
277 | + | |
278 | - | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return InternalData.RealGame:GetService("RunService").Stepped:Connect(Function) end end; |
278 | + | |
279 | - | ["renderstepped"] = function() return RealService["Stepped"] end |
279 | + | |
280 | - | } |
280 | + | |
281 | - | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end |
281 | + | |
282 | - | return RealService[Index2] |
282 | + | |
283 | - | end |
283 | + | |
284 | - | end; |
284 | + | |
285 | - | __tostring = function(self) return tostring(InternalData.RealGame:GetService("RunService")) end |
285 | + | |
286 | - | }) |
286 | + | |
287 | - | end |
287 | + | |
288 | - | } |
288 | + | |
289 | - | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end |
289 | + | |
290 | - | return InternalData.RealGame:GetService(Service) |
290 | + | |
291 | - | end |
291 | + | |
292 | - | end |
292 | + | |
293 | - | return function (self,...) return InternalData.RealGame[Index](InternalData.RealGame,...) end |
293 | + | |
294 | - | else |
294 | + | |
295 | - | if game:GetService(Index) then return game:GetService(Index) end |
295 | + | |
296 | - | return InternalData.RealGame[Index] |
296 | + | |
297 | - | end |
297 | + | |
298 | - | end |
298 | + | |
299 | - | return nil |
299 | + | |
300 | - | end; |
300 | + | |
301 | - | __tostring = function(self) return tostring(InternalData.game) end |
301 | + | |
302 | - | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete!") |
302 | + | |
303 | end | |
304 | function clerp(a, b, t) | |
305 | return a:lerp(b, t) | |
306 | end | |
307 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
308 | NeckCF = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0) | |
309 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
310 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
311 | local RH = newMotor(Torso, RightLeg, CFrame.new(0.5, -2, 0), CFrame.new(0, 0, 0)) | |
312 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-0.5, -2, 0), CFrame.new(0, 0, 0)) | |
313 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
314 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
315 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
316 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
317 | local rarmc1 = RW.C1 | |
318 | local larmc1 = LW.C1 | |
319 | local rlegc1 = RH.C1 | |
320 | local llegc1 = LH.C1 | |
321 | local resetc1 = false | |
322 | function PlayAnimationFromTable(table, speed, bool) | |
323 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
324 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
325 | RW.C0 = clerp(RW.C0, table[3], speed) | |
326 | LW.C0 = clerp(LW.C0, table[4], speed) | |
327 | RH.C0 = clerp(RH.C0, table[5], speed) | |
328 | LH.C0 = clerp(LH.C0, table[6], speed) | |
329 | if bool == true and resetc1 == false then | |
330 | resetc1 = true | |
331 | RootJoint.C1 = RootJoint.C1 | |
332 | Torso.Neck.C1 = Torso.Neck.C1 | |
333 | RW.C1 = rarmc1 | |
334 | LW.C1 = larmc1 | |
335 | RH.C1 = rlegc1 | |
336 | LH.C1 = llegc1 | |
337 | end | |
338 | end | |
339 | ArtificialHB = Create("BindableEvent", script)({Parent = script, Name = "Heartbeat"}) | |
340 | script:WaitForChild("Heartbeat") | |
341 | frame = 0.03333333333333333 | |
342 | tf = 0 | |
343 | allowframeloss = false | |
344 | tossremainder = false | |
345 | lastframe = tick() | |
346 | script.Heartbeat:Fire() | |
347 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
348 | tf = tf + s | |
349 | if tf >= frame then | |
350 | if allowframeloss then | |
351 | script.Heartbeat:Fire() | |
352 | lastframe = tick() | |
353 | else | |
354 | for i = 1, math.floor(tf / frame) do | |
355 | script.Heartbeat:Fire() | |
356 | end | |
357 | lastframe = tick() | |
358 | end | |
359 | if tossremainder then | |
360 | tf = 0 | |
361 | else | |
362 | tf = tf - frame * math.floor(tf / frame) | |
363 | end | |
364 | end | |
365 | end) | |
366 | function swait(num) | |
367 | if num == 0 or num == nil then | |
368 | ArtificialHB.Event:wait() | |
369 | else | |
370 | for i = 0, num do | |
371 | ArtificialHB.Event:wait() | |
372 | end | |
373 | end | |
374 | end | |
375 | function RemoveOutlines(part) | |
376 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
377 | end | |
378 | CFuncs = { | |
379 | Part = { | |
380 | Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size) | |
381 | local Part = Create("Part")({ | |
382 | Parent = Parent, | |
383 | Reflectance = Reflectance, | |
384 | Transparency = Transparency, | |
385 | CanCollide = false, | |
386 | Locked = true, | |
387 | BrickColor = BrickColor.new(tostring(BColor)), | |
388 | Name = Name, | |
389 | Size = Size, | |
390 | Material = Material | |
391 | }) | |
392 | RemoveOutlines(Part) | |
393 | return Part | |
394 | end | |
395 | }, | |
396 | Mesh = { | |
397 | Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale) | |
398 | local Msh = Create(Mesh)({ | |
399 | Parent = Part, | |
400 | Offset = OffSet, | |
401 | Scale = Scale | |
402 | }) | |
403 | if Mesh == "SpecialMesh" then | |
404 | Msh.MeshType = MeshType | |
405 | Msh.MeshId = MeshId | |
406 | end | |
407 | return Msh | |
408 | end | |
409 | }, | |
410 | Weld = { | |
411 | Create = function(Parent, Part0, Part1, C0, C1) | |
412 | local Weld = Create("Weld")({ | |
413 | Parent = Parent, | |
414 | Part0 = Part0, | |
415 | Part1 = Part1, | |
416 | C0 = C0, | |
417 | C1 = C1 | |
418 | }) | |
419 | return Weld | |
420 | end | |
421 | }, | |
422 | Sound = { | |
423 | Create = function(id, par, vol, pit) | |
424 | coroutine.resume(coroutine.create(function() | |
425 | local Sound = Create("Sound")({ | |
426 | Volume = vol, | |
427 | Pitch = pit or 1, | |
428 | SoundId = "rbxassetid://" .. id, | |
429 | Parent = par or workspace | |
430 | }) | |
431 | Sound:play() | |
432 | game:GetService("Debris"):AddItem(Sound, 10) | |
433 | end)) | |
434 | end | |
435 | }, | |
436 | Decal = { | |
437 | Create = function(Color, Texture, Transparency, Name, Parent) | |
438 | local Decal = Create("Decal")({ | |
439 | Color3 = Color, | |
440 | Texture = "rbxassetid://" .. Texture, | |
441 | Transparency = Transparency, | |
442 | Name = Name, | |
443 | Parent = Parent | |
444 | }) | |
445 | return Decal | |
446 | end | |
447 | }, | |
448 | BillboardGui = { | |
449 | Create = function(Parent, Image, Position, Size) | |
450 | local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1)) | |
451 | BillPar.CFrame = CFrame.new(Position) | |
452 | local Bill = Create("BillboardGui")({ | |
453 | Parent = BillPar, | |
454 | Adornee = BillPar, | |
455 | Size = UDim2.new(1, 0, 1, 0), | |
456 | SizeOffset = Vector2.new(Size, Size) | |
457 | }) | |
458 | local d = Create("ImageLabel", Bill)({ | |
459 | Parent = Bill, | |
460 | BackgroundTransparency = 1, | |
461 | Size = UDim2.new(1, 0, 1, 0), | |
462 | Image = "rbxassetid://" .. Image | |
463 | }) | |
464 | return BillPar | |
465 | end | |
466 | }, | |
467 | ParticleEmitter = { | |
468 | Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread) | |
469 | local Particle = Create("ParticleEmitter")({ | |
470 | Parent = Parent, | |
471 | Color = ColorSequence.new(Color1, Color2), | |
472 | LightEmission = LightEmission, | |
473 | Size = Size, | |
474 | Texture = Texture, | |
475 | Transparency = Transparency, | |
476 | ZOffset = ZOffset, | |
477 | Acceleration = Accel, | |
478 | Drag = Drag, | |
479 | LockedToPart = LockedToPart, | |
480 | VelocityInheritance = VelocityInheritance, | |
481 | EmissionDirection = EmissionDirection, | |
482 | Enabled = Enabled, | |
483 | Lifetime = LifeTime, | |
484 | Rate = Rate, | |
485 | Rotation = Rotation, | |
486 | RotSpeed = RotSpeed, | |
487 | Speed = Speed, | |
488 | VelocitySpread = VelocitySpread | |
489 | }) | |
490 | return Particle | |
491 | end | |
492 | }, | |
493 | CreateTemplate = {} | |
494 | } | |
495 | function rayCast(Position, Direction, Range, Ignore) | |
496 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
497 | end | |
498 | function findNearestHead(pos) | |
499 | local list = game.Workspace:children() | |
500 | local head | |
501 | local dist = 1000 | |
502 | local temp, human, temp2 | |
503 | for x = 1, #list do | |
504 | temp2 = list[x] | |
505 | if temp2.className == "Model" and temp2.Name ~= Character.Name then | |
506 | temp = temp2:findFirstChild("Head") | |
507 | human = temp2:findFirstChild("Humanoid") | |
508 | if temp ~= nil and human ~= nil and human.Health > 0 and dist > (temp.Position - pos).magnitude then | |
509 | head = temp | |
510 | dist = (temp.Position - pos).magnitude | |
511 | end | |
512 | end | |
513 | end | |
514 | return head, dist | |
515 | end | |
516 | function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch) | |
517 | if hit.Parent == nil then | |
518 | return | |
519 | end | |
520 | local h = hit.Parent:FindFirstChild("Humanoid") | |
521 | for _, v in pairs(hit.Parent:children()) do | |
522 | if v:IsA("Humanoid") then | |
523 | h = v | |
524 | end | |
525 | end | |
526 | if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Head") ~= nil then | |
527 | if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then | |
528 | return | |
529 | end | |
530 | local c = Create("ObjectValue")({ | |
531 | Name = "creator", | |
532 | Value = game:service("Players").LocalPlayer, | |
533 | Parent = h | |
534 | }) | |
535 | game:GetService("Debris"):AddItem(c, 0.5) | |
536 | if HitSound ~= nil and HitPitch ~= nil then | |
537 | CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) | |
538 | end | |
539 | local Damage = math.random(1,1) | |
540 | local blocked = false | |
541 | local block = hit.Parent:findFirstChild("Block") | |
542 | if block ~= nil and block.className == "IntValue" and block.Value > 0 then | |
543 | blocked = true | |
544 | block.Value = block.Value - 1 | |
545 | print(block.Value) | |
546 | end | |
547 | if blocked == false then | |
548 | h.Health = h.Health - Damage | |
549 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.random().Color) | |
550 | else | |
551 | h.Health = h.Health - Damage / 2 | |
552 | ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, BrickColor.random().Color) | |
553 | end | |
554 | if Type == "Knockdown" then | |
555 | local hum = hit.Parent.Humanoid | |
556 | hum.PlatformStand = true | |
557 | coroutine.resume(coroutine.create(function(HHumanoid) | |
558 | swait(1) | |
559 | HHumanoid.PlatformStand = false | |
560 | end), hum) | |
561 | local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit | |
562 | local bodvol = Create("BodyVelocity")({ | |
563 | velocity = angle * knockback, | |
564 | P = math.huge, | |
565 | maxForce = Vector3.new(math.huge, math.huge, math.huge) * math.huge * math.huge, | |
566 | Parent = hit | |
567 | }) | |
568 | local rl = Create("BodyAngularVelocity")({ | |
569 | P = 3000, | |
570 | maxTorque = Vector3.new(math.huge, math.huge, math.huge) * math.huge, | |
571 | angularvelocity = Vector3.new(math.random(math.huge, math.huge), math.random(math.huge, math.huge), math.random(math.huge, math.huge)), | |
572 | Parent = hit | |
573 | }) | |
574 | game:GetService("Debris"):AddItem(bodvol, 0.5) | |
575 | game:GetService("Debris"):AddItem(rl, 0.5) | |
576 | elseif Type == "Normal" then | |
577 | local vp = Create("BodyVelocity")({ | |
578 | P = 500, | |
579 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
580 | velocity = Property.CFrame.lookVector * knockback + Property.Velocity * math.huge | |
581 | }) | |
582 | if knockback > 0 then | |
583 | vp.Parent = hit.Parent.Head | |
584 | end | |
585 | game:GetService("Debris"):AddItem(vp, 0.5) | |
586 | elseif Type == "Up" then | |
587 | local bodvol = Create("BodyVelocity")({ | |
588 | velocity = angle * knockback, | |
589 | P = math.huge, | |
590 | maxForce = Vector3.new(math.huge, math.huge, math.huge) * math.huge * math.huge, | |
591 | Parent = hit | |
592 | }) | |
593 | game:GetService("Debris"):AddItem(bodyVelocity, 0.5) | |
594 | elseif Type == "DarkUp" then | |
595 | coroutine.resume(coroutine.create(function() | |
596 | for i = 0, 1, 0.1 do | |
597 | swait() | |
598 | Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Head.CFrame, 5, 5, 5, 1, 1, 1, 0.08, 1) | |
599 | end | |
600 | end)) | |
601 | local bodvol = Create("BodyVelocity")({ | |
602 | velocity = angle * knockback, | |
603 | P = math.huge, | |
604 | maxForce = Vector3.new(math.huge, math.huge, math.huge) * math.huge * math.huge, | |
605 | Parent = hit | |
606 | }) | |
607 | game:GetService("Debris"):AddItem(bodyVelocity, 1) | |
608 | elseif Type == "Snare" then | |
609 | local bp = Create("BodyPosition")({ | |
610 | P = math.huge, | |
611 | D = math.huge, | |
612 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
613 | position = hit.Parent.Head.Position, | |
614 | Parent = hit.Parent.Head | |
615 | }) | |
616 | game:GetService("Debris"):AddItem(bp, 1) | |
617 | elseif Type == "Freeze" then | |
618 | local BodPos = Create("BodyPosition")({ | |
619 | P = math.huge, | |
620 | D = math.huge, | |
621 | maxForce = Vector3.new(math.huge, math.huge, math.huge), | |
622 | position = hit.Parent.Head.Position, | |
623 | Parent = hit.Parent.Head | |
624 | }) | |
625 | local BodGy = Create("BodyGyro")({ | |
626 | maxTorque = Vector3.new(math.huge, math.huge, math.huge) * math.huge, | |
627 | P = math.huge, | |
628 | Parent = hit.Parent.Head, | |
629 | cframe = hit.Parent.Head.CFrame | |
630 | }) | |
631 | hit.Parent.Head.Anchored = true | |
632 | coroutine.resume(coroutine.create(function(Part) | |
633 | swait(1.5) | |
634 | Part.Anchored = false | |
635 | end), hit.Parent.Head) | |
636 | game:GetService("Debris"):AddItem(BodPos, 3) | |
637 | game:GetService("Debris"):AddItem(BodGy, 3) | |
638 | end | |
639 | local debounce = Create("BoolValue")({ | |
640 | Name = "DebounceHit", | |
641 | Parent = hit.Parent, | |
642 | Value = true | |
643 | }) | |
644 | game:GetService("Debris"):AddItem(debounce, Delay) | |
645 | c = Create("ObjectValue")({ | |
646 | Name = "creator", | |
647 | Value = Player, | |
648 | Parent = h | |
649 | }) | |
650 | game:GetService("Debris"):AddItem(c, 0.5) | |
651 | end | |
652 | end | |
653 | function ShowDamage(Pos, Text, Time, Color) | |
654 | local Rate = 0.03333333333333333 | |
655 | local Pos = Pos or Vector3.new(0, 0, 0) | |
656 | local Text = Text or "" | |
657 | local Time = Time or 2 | |
658 | local Color = Color or Color3.new(1, 0, 1) | |
659 | local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0)) | |
660 | EffectPart.Anchored = true | |
661 | local BillboardGui = Create("BillboardGui")({ | |
662 | Size = UDim2.new(3, 0, 3, 0), | |
663 | Adornee = EffectPart, | |
664 | Parent = EffectPart | |
665 | }) | |
666 | local TextLabel = Create("TextLabel")({ | |
667 | BackgroundTransparency = 1, | |
668 | Size = UDim2.new(1, 0, 1, 0), | |
669 | Text = Text, | |
670 | Font = "SciFi", | |
671 | TextColor3 = Color, | |
672 | TextScaled = true, | |
673 | Parent = BillboardGui | |
674 | }) | |
675 | game.Debris:AddItem(EffectPart, Time) | |
676 | EffectPart.Parent = game:GetService("Workspace") | |
677 | delay(0, function() | |
678 | local Frames = Time / Rate | |
679 | for Frame = 1, Frames do | |
680 | wait(Rate) | |
681 | local Percent = Frame / Frames | |
682 | EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0) | |
683 | TextLabel.TextTransparency = Percent | |
684 | end | |
685 | if EffectPart and EffectPart.Parent then | |
686 | EffectPart:Destroy() | |
687 | end | |
688 | end) | |
689 | end | |
690 | function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch) | |
691 | for _, c in pairs(workspace:children()) do | |
692 | local hum = c:findFirstChild("Humanoid") | |
693 | if hum ~= nil then | |
694 | local head = c:findFirstChild("Head") | |
695 | if head ~= nil then | |
696 | local targ = head.Position - Part.Position | |
697 | local mag = targ.magnitude | |
698 | if Magnitude >= mag and c.Name ~= Player.Name then | |
699 | Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, RootPart, 0, HitSound, HitPitch) | |
700 | end | |
701 | end | |
702 | end | |
703 | end | |
704 | end | |
705 | Handle = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, BrickColor.Random(), "Handle", Vector3.new(0.400000036, 0.400000006, 1.20000005)) | |
706 | HandleWeld = CFuncs.Weld.Create(m, Character["Right Arm"], Handle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0921096802, -1.06268024, -0.143123627, 1, 0, 0, 0, -1, 0, 0, 0, -1)) | |
707 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.28000009, 0.200000003, 0.200000003)) | |
708 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.503977776, -0.339992523, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
709 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.840000033)) | |
710 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
711 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.0959959, -0.579998016, -0.0817871094, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
712 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 1, 0.400000036)) | |
713 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.560000062, 0.200000003)) | |
714 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.0959959, -0.579998016, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
715 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 1, 0.400000036)) | |
716 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.400000006)) | |
717 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.303993225, -1.18399811, 0.00179290771, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
718 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 1)) | |
719 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.60000002, 0.200000003, 0.24000001)) | |
720 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.69602108, -1.02399826, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
721 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
722 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.60000002, 0.24000001, 0.200000003)) | |
723 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.696018219, -1.10399246, -0.16178894, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
724 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.400000036)) | |
725 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.400000066, 0.24000001, 0.400000006)) | |
726 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.360696793, 0.00178527832, 0.64538765, 0, -0.866025388, 0.500000238, 1, 0, 0, 0, 0.500000238, 0.866025388)) | |
727 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
728 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.960000217, 0.200000003, 0.24000001)) | |
729 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.994522095, 0.660827637, -0.00178527832, 0, -0.866025388, -0.500000238, 0, -0.500000238, 0.866025388, -1, 0, 0)) | |
730 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
731 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
732 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.0959959, -0.579998016, 0.0782165527, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
733 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 1, 0.400000036)) | |
734 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.480000079, 0.24000001, 0.400000006)) | |
735 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.44069862, 0.00178527832, 0.64538765, 0, -0.866025388, 0.500000238, 1, 0, 0, 0, 0.500000238, 0.866025388)) | |
736 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
737 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.240000039, 0.56400001, 0.200000003)) | |
738 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.54615593, 0.105833054, -5.56945801E-4, 0, -0.866025388, 0.500000238, 0, 0.500000238, 0.866025388, -1, 0, 0)) | |
739 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.840000033)) | |
740 | Part1 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.24000001)) | |
741 | PartWeld = CFuncs.Weld.Create(m, Handle, Part1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.143982887, -0.459991455, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
742 | CFuncs.Mesh.Create("BlockMesh", Part1, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.800000072, 1)) | |
743 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
744 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00579071045, -4.09999514, -0.459999084, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
745 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.400000036, 0.800000072)) | |
746 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.28000009, 0.200000003, 0.24000001)) | |
747 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.69600773, -0.779994965, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
748 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000191, 1)) | |
749 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.24000001, 0.200000003, 0.24000001)) | |
750 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0160188675, -0.579998016, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
751 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
752 | Part2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.400000006, 0.200000003)) | |
753 | PartWeld = CFuncs.Weld.Create(m, Handle, Part2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.66395569, -0.739994049, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
754 | CFuncs.Mesh.Create("BlockMesh", Part2, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 1, 0.800000072)) | |
755 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.240000054, 0.200000003)) | |
756 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.0999918, -0.579998016, -0.00579071045, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
757 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 1, 0.800000072)) | |
758 | Part3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.400000006)) | |
759 | PartWeld = CFuncs.Weld.Create(m, Handle, Part3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.69601679, -1.18399429, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
760 | CFuncs.Mesh.Create("BlockMesh", Part3, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 1)) | |
761 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
762 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00579071045, -4.09999704, -0.700000763, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
763 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.400000036, 0.800000072)) | |
764 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.28000009, 0.351999998, 0.24000001)) | |
765 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.341727257, 0.16400528, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
766 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
767 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.183994293, -1.14399719, -0.158203125, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
768 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000191, 0.800000072, 0.400000036)) | |
769 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
770 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.183990479, -1.14399338, 0.161781311, 0, 1, 0, 0, 0, 1, 1, 0, 0)) | |
771 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000191, 0.800000072, 0.400000036)) | |
772 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.92000008, 0.200000003, 0.24000001)) | |
773 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.69602108, -1.18399429, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
774 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
775 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.720000148, 0.351999998, 0.24000001)) | |
776 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.640586853, 0.0887641907, -0.00178527832, 0, -0.965925872, 0.258818984, 0, 0.258818984, 0.965925872, -1, 0, 0)) | |
777 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.75999987, 0.240000039, 0.24000001)) | |
778 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.1760211, -0.179992676, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
779 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.960000038, 0.200000003, 0.200000003)) | |
780 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.663973808, -0.81999588, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
781 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.800000072)) | |
782 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.319999993, 0.560000002, 0.24000001)) | |
783 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.30395985, -0.659992218, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
784 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.720000029, 0.200000003, 0.24000001)) | |
785 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.69600916, -0.779994965, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
786 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.799999952, 1)) | |
787 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.24000001, 0.200000003)) | |
788 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0639743805, -0.179992676, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
789 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 1, 0.840000033)) | |
790 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.399999976, 0.24000001)) | |
791 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.54395485, -0.739994049, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
792 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.799999833, 1, 1)) | |
793 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.960000038, 0.400000006, 0.24000001)) | |
794 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.663974762, -0.579998016, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
795 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.28000009, 0.200000003, 0.24000001)) | |
796 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.69600916, -0.139995575, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
797 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000191, 1)) | |
798 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.480000019, 0.319999993, 0.200000003)) | |
799 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.38396263, -0.379989624, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
800 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072)) | |
801 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.320000052, 0.200000003, 0.24000001)) | |
802 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.023979187, -0.899997711, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
803 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
804 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.12, 0.400000006, 0.24000001)) | |
805 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.880693436, 0.645389557, -0.00178527832, 0, -0.866025388, 0.500000238, 0, 0.500000238, 0.866025388, -1, 0, 0)) | |
806 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.20000017, 0.200000003, 0.24000001)) | |
807 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.11452484, 0.796833038, -0.00178527832, 0, -0.866025388, -0.500000238, 0, -0.500000238, 0.866025388, -1, 0, 0)) | |
808 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.960000098, 1)) | |
809 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.43599987, 0.488000005, 0.200000003)) | |
810 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.77400494, -0.460571289, -0.00179290771, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
811 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072)) | |
812 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.60000002, 0.24000001, 0.200000003)) | |
813 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.696018219, -1.10399246, 0.158210754, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
814 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.400000036)) | |
815 | Part24 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.84000003, 0.320000023, 0.200000003)) | |
816 | PartWeld = CFuncs.Weld.Create(m, Handle, Part24, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.13602066, -0.456577301, -0.00179290771, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
817 | CFuncs.Mesh.Create("BlockMesh", Part24, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072)) | |
818 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.560000062, 0.200000003, 0.24000001)) | |
819 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.77600718, -0.619998932, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
820 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.799999952, 1)) | |
821 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.240000159, 0.200000003, 0.200000003)) | |
822 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0960187912, -0.299991608, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
823 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072)) | |
824 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
825 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.57601833, -1.14399338, -0.16178894, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
826 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000191, 0.800000072, 0.400000036)) | |
827 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(2.24000001, 0.240000039, 0.24000001)) | |
828 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.936019897, -0.740001678, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
829 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.24000001)) | |
830 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.0239887238, -0.947994232, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
831 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.400000036, 1)) | |
832 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.24000001)) | |
833 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.41601658, -0.947994232, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
834 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.400000036, 1)) | |
835 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.559999943, 0.200000003, 0.200000003)) | |
836 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.303974152, -0.0199928284, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
837 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.840000033)) | |
838 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.800000012, 0.24000001, 0.200000003)) | |
839 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.697479248, -0.204208374, -5.56945801E-4, 0, -0.866025388, -0.500000238, 0, -0.500000238, 0.866025388, -1, 0, 0)) | |
840 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072)) | |
841 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.43999994, 0.200000003, 0.24000001)) | |
842 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.696018219, -0.899993896, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
843 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
844 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.27999985, 0.320000023, 0.24000001)) | |
845 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(2.69599819, -0.379993439, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
846 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.24000001)) | |
847 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.0960140228, -0.459991455, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
848 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.400000066, 0.800000072, 1)) | |
849 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(1.43999994, 0.200000003, 0.200000003)) | |
850 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.696018219, -0.979995728, 0.00221252441, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
851 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.720000088)) | |
852 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.320000052, 0.200000003, 0.24000001)) | |
853 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.41601706, -0.900001526, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
854 | CFuncs.Mesh.Create("CylinderMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
855 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.720000148, 0.200000003, 0.200000003)) | |
856 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.783975601, -0.299995422, -5.56945801E-4, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
857 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072)) | |
858 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.720000029, 0.24000001, 0.24000001)) | |
859 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(3.69600821, -0.419994354, -0.00178527832, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
860 | Part = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Part", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
861 | PartWeld = CFuncs.Weld.Create(m, Handle, Part, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.57601833, -1.14399338, 0.158210754, 0, -1, 0, 0, 0, 1, -1, 0, 0)) | |
862 | CFuncs.Mesh.Create("BlockMesh", Part, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000191, 0.800000072, 0.400000036)) | |
863 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
864 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.16178894, -1.69601536, -1.10400009, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
865 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
866 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
867 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.158210754, -0.303990364, -1.10399246, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
868 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
869 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.480000019, 0.320000023)) | |
870 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -0.376020432, -0.459991455, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
871 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
872 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.320000023, 0.200000003)) | |
873 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, 0.376021385, 0.379989624, 1, 0, 0, 0, -1, 0, 0, 0, -1)) | |
874 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072)) | |
875 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
876 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.16178894, -0.303990364, -1.10399246, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
877 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
878 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.319999993)) | |
879 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, 0.339988708, 1.30396938, 1, 0, 0, 0, 0, -1, 0, 1, 0)) | |
880 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
881 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
882 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, -0.023979187, -0.459991455, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
883 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072)) | |
884 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
885 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, -0.183997154, -1.02399826, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
886 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.400000036)) | |
887 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
888 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.09599924, -0.0782165527, -0.340000153, 0, -1, 0, 1, 0, 0, 0, 0, 1)) | |
889 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
890 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
891 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, 0.143980026, 0.579998016, -1, 0, 0, 0, 1, 0, 0, 0, -1)) | |
892 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.400000036)) | |
893 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.239999995)) | |
894 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, -0.819999695, 0.303976059, -1, 0, 0, 0, 0, 1, 0, 1, 0)) | |
895 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 1)) | |
896 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
897 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, -0.143980026, -0.579998016, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
898 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.400000036)) | |
899 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
900 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -0.459991455, -0.023979187, 1, 0, 0, 0, 0, 1, 0, -1, 0)) | |
901 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072)) | |
902 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
903 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, 3.45600224, 0.579998016, 1, 0, 0, 0, -1, 0, 0, 0, -1)) | |
904 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.400000036)) | |
905 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
906 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.09599924, -0.0817871094, -0.340000153, 0, 1, 0, -1, 0, 0, 0, 0, 1)) | |
907 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
908 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.248000011, 0.320000023, 0.200000003)) | |
909 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -0.296023369, -0.477993011, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
910 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.980000019)) | |
911 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.320000023, 0.24000001)) | |
912 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, 1.89601326, 0.419994354, 1, 0, 0, 0, -1, 0, 0, 0, -1)) | |
913 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
914 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
915 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, 3.4560008, -0.659992218, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
916 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.400000036)) | |
917 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.239999995)) | |
918 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -0.859996796, -1.02396774, 1, 0, 0, 0, 0, 1, 0, -1, 0)) | |
919 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1)) | |
920 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
921 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, 0.0960197449, -0.339992523, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
922 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.400000036)) | |
923 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.400000006, 0.200000003, 0.200000003)) | |
924 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -1.57602215, -1.02399826, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
925 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.400000036)) | |
926 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
927 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, 0.299995422, 1.22396374, 1, 0, 0, 0, 0, -1, 0, 1, 0)) | |
928 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.800000072)) | |
929 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 1.20000005, 0.200000003)) | |
930 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, -1.13601112, 0.379993439, -1, 0, 0, 0, 1, 0, 0, 0, -1)) | |
931 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.800000072)) | |
932 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.248000011, 0.22800003, 0.200000003)) | |
933 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, 0.0220222473, -0.477993011, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
934 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.980000019)) | |
935 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0.80000001192093, "Toothpaste", "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
936 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -1.69601536, -1.10400009, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
937 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.400000036)) | |
938 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
939 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-4.09599543, -0.0782165527, 0.81999588, 0, 1, 0, 1, 0, 0, 0, 0, -1)) | |
940 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
941 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
942 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.158210754, -1.69601536, -1.10400009, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
943 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
944 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.320000023, 0.200000003)) | |
945 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.56945801E-4, 0.379993439, 1.66396999, 1, 0, 0, 0, 0, -1, 0, 1, 0)) | |
946 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 1, 0.400000036)) | |
947 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.24000001, 0.200000003)) | |
948 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, 0.179988861, -0.2560215, 1, 0, 0, 0, 0, -1, 0, 1, 0)) | |
949 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.400000036)) | |
950 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
951 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(4.09599543, -0.0817871094, 0.81999588, 0, -1, 0, -1, 0, 0, 0, 0, -1)) | |
952 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.400000036, 0.400000036, 0.400000036)) | |
953 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.239999995)) | |
954 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, 0.299995422, -1.02396679, -1, 0, 0, 0, 0, -1, 0, -1, 0)) | |
955 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 1)) | |
956 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
957 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, 0.459991455, 1.54396248, 1, 0, 0, 0, 0, -1, 0, 1, 0)) | |
958 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.800000072, 0.799999952)) | |
959 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.320000023, 0.200000003)) | |
960 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -2.21600771, -0.659992218, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
961 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 0.400000036)) | |
962 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.640000045, 0.319999933)) | |
963 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-5.56945801E-4, 0.299995422, 0.136026382, -1, 0, 0, 0, 0, -1, 0, -1, 0)) | |
964 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.840000153, 1, 1)) | |
965 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.200000003, 0.200000003, 0.239999995)) | |
966 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(5.56945801E-4, -0.899993896, -1.02397919, 1, 0, 0, 0, 0, 1, 0, -1, 0)) | |
967 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.400000036, 1)) | |
968 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0, BrickColor.Random(), "Wedge", Vector3.new(0.24000001, 0.720000029, 0.239999995)) | |
969 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00178527832, -3.69600487, -0.17999649, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
970 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 1, 1)) | |
971 | Wedge = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 0.80000001192093, "Toothpaste", "Wedge", Vector3.new(0.24000001, 0.200000003, 0.200000003)) | |
972 | WedgeWeld = CFuncs.Weld.Create(m, Handle, Wedge, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.00178527832, -0.303975105, -1.10400009, -1, 0, 0, 0, -1, 0, 0, 0, 1)) | |
973 | CFuncs.Mesh.Create("SpecialMesh", Wedge, Enum.MeshType.Wedge, "", Vector3.new(0, 0, 0), Vector3.new(1, 0.400000036, 0.400000036)) | |
974 | Barrel = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, BrickColor.Random(), "Barrel", Vector3.new(0.200000003, 0.200000003, 0.600000024)) | |
975 | BarrelWeld = CFuncs.Weld.Create(m, Handle, Barrel, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.00579071045, -4.09999704, -0.500003815, 1, 0, 0, 0, 1, 0, 0, 0, 1)) | |
976 | CFuncs.Mesh.Create("CylinderMesh", Barrel, "", "", Vector3.new(0, 0, 0), Vector3.new(0.800000072, 0.400000036, 0.800000072)) | |
977 | JetpackHandle = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Medium stone grey", "JetpackHandle", Vector3.new(0.200000003, 0.200000003, 0.200000003)) | |
978 | JetpackHandleWeld = CFuncs.Weld.Create(m, Character.Torso, JetpackHandle, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(7.62939453E-6, -0.400000662, -2.30000019, 0.999999821, -3.64178788E-7, -8.94072372E-8, 3.63716538E-7, 1, 7.422572E-10, 2.98025853E-8, -1.13686838E-13, 0.999999881)) | |
979 | EffectPartR1 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Medium stone grey", "EffectPartR1", Vector3.new(0.5, 0.5, 0.300000012)) | |
980 | EffectPartR1Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartR1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.09364891, -0.187623501, -0.0701560974, 0.906307757, 3.29325474E-7, -0.422617853, -0.144542456, 0.939694047, -0.309971899, 0.397131324, 0.34201628, 0.851652086)) | |
981 | EffectPartL1 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Medium stone grey", "EffectPartL1", Vector3.new(0.5, 0.5, 0.300000012)) | |
982 | EffectPartL1Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartL1, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02251816, -0.220495224, 0.120153427, 0.965927601, 1.32644391E-6, 0.258812487, 0.0885165557, 0.939698577, -0.330363601, -0.243205622, 0.342014492, 0.907681763)) | |
983 | EffectPartR2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Medium stone grey", "EffectPartR2", Vector3.new(0.5, 0.5, 0.300000012)) | |
984 | EffectPartR2Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartR2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-1.093647, 0.123265266, 0.0195560455, 0.906307757, 3.29325474E-7, -0.422617853, -0.109380148, 0.965926826, -0.234566003, 0.408217847, 0.25881511, 0.875427186)) | |
985 | EffectPartL2 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Medium stone grey", "EffectPartL2", Vector3.new(0.5, 0.5, 0.300000012)) | |
986 | EffectPartL2Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartL2, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(1.02252197, 0.0983912945, 0.212385654, 0.96592772, 1.15327362E-6, 0.258813411, 0.0669838786, 0.965926588, -0.249997437, -0.249995068, 0.258815855, 0.933015227)) | |
987 | EffectPartL3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Medium stone grey", "EffectPartL3", Vector3.new(0.400000006, 0.5, 0.300000012)) | |
988 | EffectPartL3Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartL3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(0.86114502, 1.02306592, -0.343766928, 0.981060922, -0.0278283078, 0.19168894, -0.0858270004, 0.824720919, 0.558989346, -0.173645675, -0.56485492, 0.806713104)) | |
989 | EffectPartR3 = CFuncs.Part.Create(m, Enum.Material.Neon, 0, 1, "Medium stone grey", "EffectPartR3", Vector3.new(0.400000006, 0.5, 0.300000012)) | |
990 | EffectPartR3Weld = CFuncs.Weld.Create(m, JetpackHandle, EffectPartR3, CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), CFrame.new(-0.83058548, 1.0264864, -0.312187195, 0.981061339, 0.0278254021, -0.191695988, 0.0858334452, 0.824721098, 0.558989942, 0.173649624, -0.564855158, 0.806710064)) | |
991 | CFuncs.Mesh.Create("SpecialMesh", JetpackHandle, Enum.MeshType.FileMesh, "rbxassetid://665940542", Vector3.new(0, 0, 0), Vector3.new(1.29999995, 1.29999995, 1.29999995)) | |
992 | JetpackHandle.Mesh.TextureId = "rbxassetid://665940699" | |
993 | EffectModel = Create("Model")({Parent = Character, Name = "Effects"}) | |
994 | Effects = { | |
995 | Block = { | |
996 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type) | |
997 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
998 | prt.Anchored = true | |
999 | prt.CFrame = cframe | |
1000 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1001 | game:GetService("Debris"):AddItem(prt, 10) | |
1002 | if Type == 1 or Type == nil then | |
1003 | table.insert(Effects, { | |
1004 | prt, | |
1005 | "Block1", | |
1006 | delay, | |
1007 | x3, | |
1008 | y3, | |
1009 | z3, | |
1010 | msh | |
1011 | }) | |
1012 | elseif Type == 2 then | |
1013 | table.insert(Effects, { | |
1014 | prt, | |
1015 | "Block2", | |
1016 | delay, | |
1017 | x3, | |
1018 | y3, | |
1019 | z3, | |
1020 | msh | |
1021 | }) | |
1022 | end | |
1023 | end | |
1024 | }, | |
1025 | Cylinder = { | |
1026 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1027 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.2, 0.2, 0.2)) | |
1028 | prt.Anchored = true | |
1029 | prt.CFrame = cframe | |
1030 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1031 | game:GetService("Debris"):AddItem(prt, 2) | |
1032 | Effects[#Effects + 1] = { | |
1033 | prt, | |
1034 | "Cylinder", | |
1035 | delay, | |
1036 | x3, | |
1037 | y3, | |
1038 | z3, | |
1039 | msh | |
1040 | } | |
1041 | end | |
1042 | }, | |
1043 | Head = { | |
1044 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1045 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1046 | prt.Anchored = true | |
1047 | prt.CFrame = cframe | |
1048 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Head", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1049 | game:GetService("Debris"):AddItem(prt, 10) | |
1050 | table.insert(Effects, { | |
1051 | prt, | |
1052 | "Cylinder", | |
1053 | delay, | |
1054 | x3, | |
1055 | y3, | |
1056 | z3, | |
1057 | msh | |
1058 | }) | |
1059 | end | |
1060 | }, | |
1061 | Sphere = { | |
1062 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1063 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1064 | prt.Anchored = true | |
1065 | prt.CFrame = cframe | |
1066 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1067 | game:GetService("Debris"):AddItem(prt, 10) | |
1068 | table.insert(Effects, { | |
1069 | prt, | |
1070 | "Cylinder", | |
1071 | delay, | |
1072 | x3, | |
1073 | y3, | |
1074 | z3, | |
1075 | msh | |
1076 | }) | |
1077 | end | |
1078 | }, | |
1079 | Elect = { | |
1080 | Create = function(cff, x, y, z) | |
1081 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, BrickColor.new("Lime green"), "Part", Vector3.new(1, 1, 1)) | |
1082 | prt.Anchored = true | |
1083 | prt.CFrame = cff * CFrame.new(math.random(-x, x), math.random(-y, y), math.random(-z, z)) | |
1084 | prt.CFrame = CFrame.new(prt.Position) | |
1085 | game:GetService("Debris"):AddItem(prt, 2) | |
1086 | local xval = math.random() / 2 | |
1087 | local yval = math.random() / 2 | |
1088 | local zval = math.random() / 2 | |
1089 | local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(xval, yval, zval)) | |
1090 | table.insert(Effects, { | |
1091 | prt, | |
1092 | "Elec", | |
1093 | 0.1, | |
1094 | x, | |
1095 | y, | |
1096 | z, | |
1097 | xval, | |
1098 | yval, | |
1099 | zval | |
1100 | }) | |
1101 | end | |
1102 | }, | |
1103 | Ring = { | |
1104 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1105 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1106 | prt.Anchored = true | |
1107 | prt.CFrame = cframe | |
1108 | local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1109 | game:GetService("Debris"):AddItem(prt, 10) | |
1110 | table.insert(Effects, { | |
1111 | prt, | |
1112 | "Cylinder", | |
1113 | delay, | |
1114 | x3, | |
1115 | y3, | |
1116 | z3, | |
1117 | msh | |
1118 | }) | |
1119 | end | |
1120 | }, | |
1121 | Wave = { | |
1122 | Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay) | |
1123 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1124 | prt.Anchored = true | |
1125 | prt.CFrame = cframe | |
1126 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1127 | game:GetService("Debris"):AddItem(prt, 10) | |
1128 | table.insert(Effects, { | |
1129 | prt, | |
1130 | "Cylinder", | |
1131 | delay, | |
1132 | x3, | |
1133 | y3, | |
1134 | z3, | |
1135 | msh | |
1136 | }) | |
1137 | end | |
1138 | }, | |
1139 | Break = { | |
1140 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1141 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5)) | |
1142 | prt.Anchored = true | |
1143 | prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1144 | local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1145 | local num = math.random(10, 50) / 1000 | |
1146 | game:GetService("Debris"):AddItem(prt, 10) | |
1147 | table.insert(Effects, { | |
1148 | prt, | |
1149 | "Shatter", | |
1150 | num, | |
1151 | prt.CFrame, | |
1152 | math.random() - math.random(), | |
1153 | 0, | |
1154 | math.random(50, 100) / 100 | |
1155 | }) | |
1156 | end | |
1157 | }, | |
1158 | Fire = { | |
1159 | Create = function(brickcolor, cframe, x1, y1, z1, delay) | |
1160 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new()) | |
1161 | prt.Anchored = true | |
1162 | prt.CFrame = cframe | |
1163 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1164 | game:GetService("Debris"):AddItem(prt, 10) | |
1165 | table.insert(Effects, { | |
1166 | prt, | |
1167 | "Fire", | |
1168 | delay, | |
1169 | 1, | |
1170 | 1, | |
1171 | 1, | |
1172 | msh | |
1173 | }) | |
1174 | end | |
1175 | }, | |
1176 | FireWave = { | |
1177 | Create = function(brickcolor, cframe, x1, y1, z1) | |
1178 | local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 1, brickcolor, "Effect", Vector3.new()) | |
1179 | prt.Anchored = true | |
1180 | prt.CFrame = cframe | |
1181 | msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1)) | |
1182 | local d = Create("Decal")({ | |
1183 | Parent = prt, | |
1184 | Texture = "rbxassetid://26356434", | |
1185 | Face = "Top" | |
1186 | }) | |
1187 | local d = Create("Decal")({ | |
1188 | Parent = prt, | |
1189 | Texture = "rbxassetid://26356434", | |
1190 | Face = "Bottom" | |
1191 | }) | |
1192 | game:GetService("Debris"):AddItem(prt, 10) | |
1193 | table.insert(Effects, { | |
1194 | prt, | |
1195 | "FireWave", | |
1196 | 1, | |
1197 | 30, | |
1198 | math.random(400, 600) / 100, | |
1199 | msh | |
1200 | }) | |
1201 | end | |
1202 | }, | |
1203 | Lightning = { | |
1204 | Create = function(p0, p1, tym, ofs, col, th, tra, last) | |
1205 | local magz = (p0 - p1).magnitude | |
1206 | local curpos = p0 | |
1207 | local trz = { | |
1208 | -ofs, | |
1209 | ofs | |
1210 | } | |
1211 | for i = 1, tym do | |
1212 | local li = CFuncs.Part.Create(EffectModel, "Neon", 0, tra or 0.4, col, "Ref", Vector3.new(th, th, magz / tym)) | |
1213 | local ofz = Vector3.new(trz[math.random(1, 2)], trz[math.random(1, 2)], trz[math.random(1, 2)]) | |
1214 | local trolpos = CFrame.new(curpos, p1) * CFrame.new(0, 0, magz / tym).p + ofz | |
1215 | li.Material = "Neon" | |
1216 | if tym == i then | |
1217 | local magz2 = (curpos - p1).magnitude | |
1218 | li.Size = Vector3.new(th, th, magz2) | |
1219 | li.CFrame = CFrame.new(curpos, p1) * CFrame.new(0, 0, -magz2 / 2) | |
1220 | table.insert(Effects, { | |
1221 | li, | |
1222 | "Disappear", | |
1223 | last | |
1224 | }) | |
1225 | else | |
1226 | li.CFrame = CFrame.new(curpos, trolpos) * CFrame.new(0, 0, magz / tym / 2) | |
1227 | curpos = li.CFrame * CFrame.new(0, 0, magz / tym / 2).p | |
1228 | game.Debris:AddItem(li, 10) | |
1229 | table.insert(Effects, { | |
1230 | li, | |
1231 | "Disappear", | |
1232 | last | |
1233 | }) | |
1234 | end | |
1235 | end | |
1236 | end | |
1237 | }, | |
1238 | EffectTemplate = {} | |
1239 | } | |
1240 | function Bullet(Part) | |
1241 | local bullet = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 0, BrickColor.new("Black"), "Bullet", Vector3.new()) | |
1242 | local bmsh = CFuncs.Mesh.Create("CylinderMesh", bullet, "", "", Vector3.new(0, 0, 0), Vector3.new(1.3, 1.5, 1.3)) | |
1243 | bullet.CanCollide = true | |
1244 | bullet.CFrame = Part.CFrame * CFrame.new(math.random(-100, 100) / 100, math.random(-100, 100) / 100, math.random(-100, 100) / 100) | |
1245 | bullet.Velocity = Torso.CFrame.lookVector * math.random(10, 40) + Vector3.new(1, 0, 0) * math.random(0, 1000) / 100 + Vector3.new(0, 1, 0) * math.random(0, 1000) / 100 + Vector3.new(0, 0, 1) * math.random(0, 1000) / 100 | |
1246 | game:GetService("Debris"):AddItem(bullet, 3) | |
1247 | end | |
1248 | function Shootcombo() | |
1249 | local MouseLook = CFrame.new((Barrel.Position + Mouse.Hit.p) / 2, Mouse.Hit.p) | |
1250 | CFuncs.Sound.Create("186083909", Barrel, 1, 1.2) | |
1251 | CFuncs.Sound.Create("406722373", Barrel, 1, 1.1) | |
1252 | Effects.Sphere.Create(BrickColor.new("Really red"), Barrel.CFrame, 0.5, 0.5, 0.5, 1, 1, 1, 0.09) | |
1253 | Effects.Sphere.Create(BrickColor.new("Really red"), Barrel.CFrame, 1, 1, 1, 2, 2, 2, 0.09) | |
1254 | Effects.Block.Create(BrickColor.new("Really red"), Barrel.CFrame, 1, 1, 1, 2, 2, 2, 0.09, 1) | |
1255 | table.insert(Effects, { | |
1256 | MouseLook.lookVector, | |
1257 | "Shoot", | |
1258 | 30, | |
1259 | Barrel.Position, | |
1260 | 6, | |
1261 | 8, | |
1262 | 0, | |
1263 | 1 | |
1264 | }) | |
1265 | end | |
1266 | function Bolt() | |
1267 | for i = 0, 1, 0.13 do | |
1268 | swait() | |
1269 | PlayAnimationFromTable({ | |
1270 | CFrame.new(-0.319091141, -0.800000012, -0.20328027, 0.422617137, 0, -0.906308293, 0, 1, 0, 0.906308293, 0, 0.422617137) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1271 | CFrame.new(0, 1.49998784, 0, 0.866023839, 0, 0.500000119, 0, 1, 0, -0.500000119, 0, 0.866023839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1272 | CFrame.new(0.998740196, 0.416736871, -0.5858199, 0.422617137, 0.851651311, -0.309975445, 0, -0.342019916, -0.939692736, -0.906308293, 0.397130251, -0.144543469) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1273 | CFrame.new(-1.29375136, 1.10341132, -0.830147505, 0.627507746, 0.439378917, -0.642791271, -0.234787911, -0.680352092, -0.694258928, -0.742367566, 0.586572289, -0.323765248) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1274 | CFrame.new(0.610143065, -1.6490345, 0.494668663, 0.984807849, -3.09944153E-6, -0.173640966, 0.157373026, 0.422616184, 0.892542183, 0.0733809769, -0.90630877, 0.416197568) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1275 | CFrame.new(-0.849825501, -1.36450362, -0.291514039, 0.866527259, 0.0320672095, 0.498098612, -0.0868243203, 0.992404044, 0.0871554837, -0.491520047, -0.11876969, 0.86272943) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1276 | }, 0.4, false) | |
1277 | end | |
1278 | Bullet(Handle) | |
1279 | CFuncs.Sound.Create("318369098", Handle, 1, 1.1) | |
1280 | for i = 0, 1, 0.2 do | |
1281 | swait() | |
1282 | PlayAnimationFromTable({ | |
1283 | CFrame.new(-0.319091141, -0.800000012, -0.20328027, 0.422617137, 0, -0.906308293, 0, 1, 0, 0.906308293, 0, 0.422617137) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1284 | CFrame.new(0, 1.49998784, 0, 0.939692438, 0, 0.342020601, 0, 1, 0, -0.342020601, 0, 0.939692438) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1285 | CFrame.new(1.1690712, 0.348333716, -0.506393492, 0.422617137, 0.851651311, -0.309975445, 0, -0.342019916, -0.939692736, -0.906308293, 0.397130251, -0.144543469) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1286 | CFrame.new(-0.816940069, 1.04093611, -0.407359332, 0.739941239, 0.198263437, -0.642789721, -0.453320742, -0.559019029, -0.694260836, -0.496978402, 0.805101991, -0.323764324) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1287 | CFrame.new(0.61014241, -1.64903653, 0.494667768, 0.984807849, -3.09944153E-6, -0.173640966, 0.157373026, 0.422616184, 0.892542183, 0.0733809769, -0.90630877, 0.416197568) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1288 | CFrame.new(-0.849824548, -1.3645035, -0.29151243, 0.866527259, 0.0320672095, 0.498098612, -0.0868243203, 0.992404044, 0.0871554837, -0.491520047, -0.11876969, 0.86272943) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1289 | }, 0.35, false) | |
1290 | end | |
1291 | CFuncs.Sound.Create("318369288", Handle, 1, 1.1) | |
1292 | for i = 0, 1, 0.13 do | |
1293 | swait() | |
1294 | PlayAnimationFromTable({ | |
1295 | CFrame.new(-0.319091141, -0.800000012, -0.20328027, 0.422617137, 0, -0.906308293, 0, 1, 0, 0.906308293, 0, 0.422617137) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1296 | CFrame.new(0, 1.49998784, 0, 0.866023839, 0, 0.500000119, 0, 1, 0, -0.500000119, 0, 0.866023839) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1297 | CFrame.new(0.998740196, 0.416736871, -0.5858199, 0.422617137, 0.851651311, -0.309975445, 0, -0.342019916, -0.939692736, -0.906308293, 0.397130251, -0.144543469) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1298 | CFrame.new(-1.29375136, 1.10341132, -0.830147505, 0.627507746, 0.439378917, -0.642791271, -0.234787911, -0.680352092, -0.694258928, -0.742367566, 0.586572289, -0.323765248) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1299 | CFrame.new(0.610143065, -1.6490345, 0.494668663, 0.984807849, -3.09944153E-6, -0.173640966, 0.157373026, 0.422616184, 0.892542183, 0.0733809769, -0.90630877, 0.416197568) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1300 | CFrame.new(-0.849825501, -1.36450362, -0.291514039, 0.866527259, 0.0320672095, 0.498098612, -0.0868243203, 0.992404044, 0.0871554837, -0.491520047, -0.11876969, 0.86272943) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1301 | }, 0.4, false) | |
1302 | end | |
1303 | end | |
1304 | function SpinShot() | |
1305 | attack = true | |
1306 | for i = 0, 1, 0.12 do | |
1307 | swait() | |
1308 | PlayAnimationFromTable({ | |
1309 | CFrame.new(-0.33084622, -0.304918617, -0.52869457, 0.342018992, 2.44630968E-7, -0.939693093, 0.163176, 0.98480773, 0.0593912415, 0.925417006, -0.173648283, 0.336822927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1310 | CFrame.new(0.0322597921, 1.48268783, -0.0930604339, 0.322602183, 0.14004983, 0.936116517, -0.172989488, 0.981059611, -0.0871584788, -0.930592477, -0.133820817, 0.340719253) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1311 | CFrame.new(0.506988645, 0.377255857, -0.803069711, 0.259420365, 0.955582082, -0.139867067, 0.0992426202, -0.170435682, -0.980358601, -0.960651875, 0.240444362, -0.139049053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1312 | CFrame.new(-1.72998452, 0.495006025, -0.392647803, 0.542880952, 0.410539567, 0.732626021, 0.737672389, 0.183852568, -0.649647713, -0.4013969, 0.893121183, -0.203034982) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1313 | CFrame.new(0.502950907, -1.9151485, 0.231621087, 0.864151537, 0.0236141682, -0.502677977, 0.0515102148, 0.989501238, 0.135033786, 0.50058949, -0.142582476, 0.853862286) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1314 | CFrame.new(-0.865711927, -1.63087702, -0.282848835, 0.925415218, 0.173649043, 0.336827427, -0.163176641, 0.98480773, -0.0593916178, -0.342023462, -4.54019755E-7, 0.939691782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1315 | }, 0.35, false) | |
1316 | end | |
1317 | Shootcombo() | |
1318 | for i = 0, 1, 0.3 do | |
1319 | swait() | |
1320 | RootPart.Velocity = RootPart.CFrame.lookVector * -10 | |
1321 | PlayAnimationFromTable({ | |
1322 | CFrame.new(-0.330845773, -0.378038257, 0.581278205, 0.342019081, 5.60612747E-8, -0.939693093, -0.0819000229, 0.996194661, -0.0298090074, 0.936117232, 0.0871561244, 0.340717614) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1323 | CFrame.new(0.0322549939, 1.48268545, -0.0930609033, 0.239786834, -0.113366202, 0.964181364, -0.164735377, 0.974004149, 0.155488253, -0.95675236, -0.196119189, 0.214875787) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1324 | CFrame.new(0.806416035, 0.470317304, -0.694097638, 0.244436547, 0.969400585, 0.0226592347, 0.0830115676, 0.00236219168, -0.996545851, -0.9661057, 0.245473176, -0.079894051) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1325 | CFrame.new(-1.57694697, 0.512434185, -0.230538517, 0.760710716, 0.410538197, 0.502765059, 0.470990688, 0.1838523, -0.862764716, -0.44662869, 0.893119931, -0.0535021573) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1326 | CFrame.new(0.865904212, -1.71960115, 0.0648829341, 0.881422341, -0.173719466, -0.439225137, 0.290622324, 0.932511985, 0.214389697, 0.372338951, -0.316616565, 0.872420609) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1327 | CFrame.new(-0.679471731, -1.82845092, -0.362076759, 0.770665169, -0.0483331755, 0.635404408, -0.0295864344, 0.993330181, 0.111444041, -0.63655293, -0.104685426, 0.764095306) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1328 | }, 0.5, false) | |
1329 | end | |
1330 | for i = 0, 1, 0.12 do | |
1331 | swait() | |
1332 | PlayAnimationFromTable({ | |
1333 | CFrame.new(-0.33084622, -0.304918617, -0.52869457, 0.342018992, 2.44630968E-7, -0.939693093, 0.163176, 0.98480773, 0.0593912415, 0.925417006, -0.173648283, 0.336822927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1334 | CFrame.new(0.0322597921, 1.48268783, -0.0930604339, 0.322602183, 0.14004983, 0.936116517, -0.172989488, 0.981059611, -0.0871584788, -0.930592477, -0.133820817, 0.340719253) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1335 | CFrame.new(0.506988645, 0.377255857, -0.803069711, 0.259420365, 0.955582082, -0.139867067, 0.0992426202, -0.170435682, -0.980358601, -0.960651875, 0.240444362, -0.139049053) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1336 | CFrame.new(-1.72998452, 0.495006025, -0.392647803, 0.542880952, 0.410539567, 0.732626021, 0.737672389, 0.183852568, -0.649647713, -0.4013969, 0.893121183, -0.203034982) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1337 | CFrame.new(0.502950907, -1.9151485, 0.231621087, 0.864151537, 0.0236141682, -0.502677977, 0.0515102148, 0.989501238, 0.135033786, 0.50058949, -0.142582476, 0.853862286) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1338 | CFrame.new(-0.865711927, -1.63087702, -0.282848835, 0.925415218, 0.173649043, 0.336827427, -0.163176641, 0.98480773, -0.0593916178, -0.342023462, -4.54019755E-7, 0.939691782) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1339 | }, 0.4, false) | |
1340 | end | |
1341 | Bolt() | |
1342 | attack = false | |
1343 | end | |
1344 | function LungeShot(Mode) | |
1345 | attack = true | |
1346 | Humanoid.Jump = true | |
1347 | CFuncs.Sound.Create("158149887", Torso, 1, 0.9) | |
1348 | if Mode == "Forward" then | |
1349 | RootPart.Velocity = RootPart.CFrame.lookVector * 80 | |
1350 | for i = 0, 1, 0.1 do | |
1351 | swait() | |
1352 | PlayAnimationFromTable({ | |
1353 | CFrame.new(-3.81469727E-6, 0.0628450513, 0.146824121, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-20), 0, 0), | |
1354 | CFrame.new(0, 1.49998665, -2.20537186E-6, 1, 0, 0, 0, 0.984807312, 0.173648536, 0, -0.173648536, 0.984807312) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(20), 0, 0), | |
1355 | CFrame.new(0.523067951, 0.10826005, -0.698177814, 0.296512067, 0.787702143, 0.540005624, 0.206982568, 0.498990804, -0.84152633, -0.932329774, 0.361294419, -0.0150838122) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1356 | CFrame.new(-1.42747557, -0.117001235, -0.482704312, 0.268235743, 0.0413863063, 0.962466657, 0.56728673, 0.800693691, -0.192532867, -0.778610408, 0.597635567, 0.191299409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1357 | CFrame.new(0.499998361, -1.51702964, -0.129410475, 0.984807849, 0, -0.173648044, 0.0449435376, 0.965925634, 0.25488764, 0.167731121, -0.258819699, 0.951251149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1358 | CFrame.new(-0.500004053, -1.35084605, -0.555529714, 0.981060445, 0.0871543288, 0.172987863, -0.140045926, 0.936115682, 0.322606146, -0.133820146, -0.340722382, 0.930591524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1359 | }, 0.3, false) | |
1360 | end | |
1361 | elseif Mode == "Backward" then | |
1362 | RootPart.Velocity = RootPart.CFrame.lookVector * -80 | |
1363 | for i = 0, 1, 0.1 do | |
1364 | swait() | |
1365 | PlayAnimationFromTable({ | |
1366 | CFrame.new(-3.81469727E-6, 0.0628450513, 0.146824121, 1, 0, 0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(10), 0, 0), | |
1367 | CFrame.new(0, 1.49998665, -2.20537186E-6, 1, 0, 0, 0, 0.984807312, 0.173648536, 0, -0.173648536, 0.984807312) * CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(-10), 0, 0), | |
1368 | CFrame.new(0.523067951, 0.10826005, -0.698177814, 0.296512067, 0.787702143, 0.540005624, 0.206982568, 0.498990804, -0.84152633, -0.932329774, 0.361294419, -0.0150838122) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1369 | CFrame.new(-1.42747557, -0.117001235, -0.482704312, 0.268235743, 0.0413863063, 0.962466657, 0.56728673, 0.800693691, -0.192532867, -0.778610408, 0.597635567, 0.191299409) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1370 | CFrame.new(0.499998361, -1.51702964, -0.129410475, 0.984807849, 0, -0.173648044, 0.0449435376, 0.965925634, 0.25488764, 0.167731121, -0.258819699, 0.951251149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1371 | CFrame.new(-0.500004053, -1.35084605, -0.555529714, 0.981060445, 0.0871543288, 0.172987863, -0.140045926, 0.936115682, 0.322606146, -0.133820146, -0.340722382, 0.930591524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1372 | }, 0.3, false) | |
1373 | end | |
1374 | end | |
1375 | local hitfloor | |
1376 | while hitfloor == nil do | |
1377 | swait() | |
1378 | hitfloor, posfloor = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 6, Character) | |
1379 | end | |
1380 | for i = 0, 1, 0.2 do | |
1381 | swait() | |
1382 | PlayAnimationFromTable({ | |
1383 | CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1384 | CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1385 | CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1386 | CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1387 | CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1388 | CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1389 | }, 0.4, false) | |
1390 | end | |
1391 | Shootcombo() | |
1392 | for i = 0, 1, 0.3 do | |
1393 | swait() | |
1394 | RootPart.Velocity = RootPart.CFrame.lookVector * -40 | |
1395 | PlayAnimationFromTable({ | |
1396 | CFrame.new(-0.330840945, -1.00127292, -0.261750877, 0.342018962, -1.4270141E-7, -0.939693034, -0.243209973, 0.965925992, -0.0885209814, 0.907673895, 0.258818597, 0.330364913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1397 | CFrame.new(0.120366111, 1.44719875, -0.255110145, 0.418383747, -0.0842670798, 0.904353142, -0.141075209, 0.977573991, 0.156355858, -0.897247374, -0.192998484, 0.397113085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1398 | CFrame.new(0.632638395, 0.661208212, -0.690981925, 0.326495707, 0.925417125, 0.192363232, 0.0858313814, 0.173647493, -0.981060386, -0.941293538, 0.336822778, -0.0227346662) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1399 | CFrame.new(-1.51982272, 0.476396978, -0.384689331, 0.81248939, 0.445674956, 0.37581408, 0.350734472, 0.141240373, -0.925762773, -0.46566987, 0.88398242, -0.0415571854) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1400 | CFrame.new(0.783671975, -1.17622542, 0.561357141, 0.831630051, -0.23809275, -0.501700282, 0.550981283, 0.240921408, 0.798984766, -0.0693621933, -0.940887034, 0.331542104) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1401 | CFrame.new(-0.632252574, -1.39177251, -0.40547961, 0.73177588, -0.317396253, 0.603132486, 0.21459803, 0.947232425, 0.238111958, -0.646885633, -0.0448122993, 0.761271358) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1402 | }, 0.6, false) | |
1403 | end | |
1404 | for i = 0, 1, 0.2 do | |
1405 | swait() | |
1406 | PlayAnimationFromTable({ | |
1407 | CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1408 | CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1409 | CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1410 | CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1411 | CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1412 | CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1413 | }, 0.6, false) | |
1414 | end | |
1415 | Bolt() | |
1416 | attack = false | |
1417 | end | |
1418 | function AutoShot() | |
1419 | attack = true | |
1420 | Humanoid.WalkSpeed = 5 | |
1421 | Bolt() | |
1422 | for i = 0, 1, 0.3 do | |
1423 | swait() | |
1424 | PlayAnimationFromTable({ | |
1425 | CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1426 | CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1427 | CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1428 | CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1429 | CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1430 | CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1431 | }, 0.4, false) | |
1432 | end | |
1433 | Humanoid.WalkSpeed = 0 | |
1434 | for i = 1, 10 do | |
1435 | for i = 0, 1, 0.8 do | |
1436 | swait() | |
1437 | PlayAnimationFromTable({ | |
1438 | CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1439 | CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1440 | CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1441 | CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1442 | CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1443 | CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1444 | }, 0.7, false) | |
1445 | end | |
1446 | Shootcombo() | |
1447 | for i = 0, 1, 0.9 do | |
1448 | swait() | |
1449 | PlayAnimationFromTable({ | |
1450 | CFrame.new(-0.330840945, -1.00127292, -0.261750877, 0.342018962, -1.4270141E-7, -0.939693034, -0.243209973, 0.965925992, -0.0885209814, 0.907673895, 0.258818597, 0.330364913) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1451 | CFrame.new(0.120366111, 1.44719875, -0.255110145, 0.418383747, -0.0842670798, 0.904353142, -0.141075209, 0.977573991, 0.156355858, -0.897247374, -0.192998484, 0.397113085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1452 | CFrame.new(0.632638395, 0.661208212, -0.690981925, 0.326495707, 0.925417125, 0.192363232, 0.0858313814, 0.173647493, -0.981060386, -0.941293538, 0.336822778, -0.0227346662) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1453 | CFrame.new(-1.51982272, 0.476396978, -0.384689331, 0.81248939, 0.445674956, 0.37581408, 0.350734472, 0.141240373, -0.925762773, -0.46566987, 0.88398242, -0.0415571854) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1454 | CFrame.new(0.783671975, -1.17622542, 0.561357141, 0.831630051, -0.23809275, -0.501700282, 0.550981283, 0.240921408, 0.798984766, -0.0693621933, -0.940887034, 0.331542104) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1455 | CFrame.new(-0.632252574, -1.39177251, -0.40547961, 0.73177588, -0.317396253, 0.603132486, 0.21459803, 0.947232425, 0.238111958, -0.646885633, -0.0448122993, 0.761271358) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1456 | }, 0.8, false) | |
1457 | end | |
1458 | for i = 0, 1, 0.8 do | |
1459 | swait() | |
1460 | PlayAnimationFromTable({ | |
1461 | CFrame.new(-0.330837339, -0.699999928, -0.231655031, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1462 | CFrame.new(0.120368131, 1.44721556, -0.255113155, 0.418385565, -0.00512788072, 0.908255041, -0.141075298, 0.987487316, 0.0705598369, -0.897252142, -0.157652482, 0.412421852) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1463 | CFrame.new(0.285862863, 0.389394581, -0.81719619, 0.340717524, 0.939693093, 0.0298089981, 0.087155968, 0, -0.996194661, -0.936117232, 0.342018992, -0.081899859) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1464 | CFrame.new(-1.69020307, 0.41307798, -0.514919221, 0.800103247, 0.517377436, 0.303571403, 0.255382031, 0.16412276, -0.95280838, -0.542784572, 0.839871705, -8.13782215E-4) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1465 | CFrame.new(0.897276342, -1.54715633, 0.463865459, 0.951250672, -0.229007483, -0.206587687, 0.304395527, 0.589249432, 0.748417377, -0.0496615469, -0.774816513, 0.630232751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1466 | CFrame.new(-0.632248044, -1.39177239, -0.405484438, 0.817636669, -0.123517469, 0.562330127, 0.0563425981, 0.989193141, 0.13535662, -0.572972655, -0.0789892152, 0.815760136) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1467 | }, 0.7, false) | |
1468 | end | |
1469 | end | |
1470 | Humanoid.WalkSpeed = 100 | |
1471 | attack = false | |
1472 | end | |
1473 | function MortarShot() | |
1474 | attack = true | |
1475 | Humanoid.WalkSpeed = 5 | |
1476 | Bolt() | |
1477 | for i = 0, 1, 0.2 do | |
1478 | swait() | |
1479 | PlayAnimationFromTable({ | |
1480 | CFrame.new(-0.00381875038, -1.20960522, -0.0234894156, 0.906307876, 0.271653324, -0.323744416, -0.422617942, 0.582562923, -0.694272697, 0, 0.766045094, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1481 | CFrame.new(-0.0485313386, 1.45186937, 0.12381205, 0.906306446, -0.036834389, 0.421012908, 0.178607732, 0.936241806, -0.302573651, -0.383024782, 0.349420667, 0.855100751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1482 | CFrame.new(1.2566489, 0.0942437202, -0.366937846, 0.866025388, 0.499999881, 0, 0.32139343, -0.556669831, -0.766045094, -0.383022457, 0.663414538, -0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1483 | CFrame.new(-0.669512153, 0.883427501, -1.42651618, 0.814972997, -0.183017969, 0.54984045, 0.413680524, -0.480712831, -0.773165226, 0.405818164, 0.85756737, -0.316057026) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1484 | CFrame.new(0.663835824, -0.644426942, 0.718474984, 0.819152117, -0.0996050313, -0.564861536, 0.496729434, -0.369217664, 0.785454273, -0.28679204, -0.923989952, -0.252968639) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1485 | CFrame.new(-0.597848773, -1.58645034, 0.419145882, 0.845831037, -0.0996147096, 0.524067461, -0.385522783, 0.564860702, 0.729592204, -0.368703246, -0.819151759, 0.439372897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1486 | }, 0.4, false) | |
1487 | end | |
1488 | for i = 0, 1, 0.3 do | |
1489 | swait() | |
1490 | PlayAnimationFromTable({ | |
1491 | CFrame.new(-0.062730819, -1.35083091, -0.0234885216, 0.819151819, 0.368687779, -0.439385623, -0.573576868, 0.52654016, -0.627507091, 0, 0.766044974, 0.642787039) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1492 | CFrame.new(-0.0485280529, 1.45187008, 0.123812944, 0.90630585, -0.0368346125, 0.421014428, 0.178608507, 0.936241627, -0.302573681, -0.383025914, 0.349420995, 0.855100214) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1493 | CFrame.new(1.37136579, -0.011062175, -0.241436988, 0.866025329, 0.500000238, 0, 0.321393698, -0.556669831, -0.766044974, -0.383022636, 0.663414299, -0.642787039) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1494 | CFrame.new(-0.554796219, 0.778117955, -1.30101132, 0.814972818, -0.183016568, 0.549840331, 0.413680822, -0.480712891, -0.773164511, 0.40581724, 0.857566416, -0.316057503) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1495 | CFrame.new(0.745755255, -0.594750226, 0.689795136, 0.707485676, 0.0499878898, -0.704957783, 0.604335666, -0.559927046, 0.566798568, -0.366391778, -0.827032924, -0.426349699) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1496 | CFrame.new(-0.45294404, -1.60859108, 0.283076108, 0.724484801, -0.4477458, 0.524066269, -0.110680997, 0.674867868, 0.729592919, -0.680348873, -0.586582422, 0.439373374) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1497 | }, 0.4, false) | |
1498 | end | |
1499 | CFuncs.Sound.Create("300916014", Barrel, 1, 1.2) | |
1500 | CFuncs.Sound.Create("301031757", Barrel, 1, 1.1) | |
1501 | Effects.Sphere.Create(BrickColor.random(), Barrel.CFrame, 6, 6, 6, 0, 0, 0, 1, m) | |
1502 | for i = 1, 60 do | |
1503 | local hit, pos = rayCast(Barrel.Position, Barrel.CFrame * CFrame.fromEulerAnglesXYZ(0, 5, 0).lookVector, 220, Character) | |
1504 | local mag = (Barrel.Position - pos).magnitude | |
1505 | Effects.Cylinder.Create(BrickColor.random(), Barrel.CFrame, 30, 99999, 30, -0.5, 1, -0.5, 0.1) | |
1506 | local cf2 = Mouse.Hit.p + Vector3.new(math.random(-1500, 1500) / 100, 100, math.random(-1500, 1500) / 100) | |
1507 | local hit2, pos2 = rayCast(cf2, CFrame.new(cf2, cf2 - Vector3.new(0, 1, 0)).lookVector, 999, Character) | |
1508 | if hit2 ~= nil then | |
1509 | local d1 = CFuncs.Part.Create(workspace, "Neon", 0, 0.5, BrickColor.random(), "Effect", Vector3.new()) | |
1510 | d1.Anchored = true | |
1511 | d1.CFrame = CFrame.new(pos2) | |
1512 | game:GetService("Debris"):AddItem(d1, 5) | |
1513 | local msh = CFuncs.Mesh.Create("CylinderMesh", d1, "nil", "nil", Vector3.new(0, 0, 0), Vector3.new(30, 5, 30)) | |
1514 | local d2 = d1:Clone() | |
1515 | d2.Parent = d1 | |
1516 | d2.CFrame = CFrame.new(d1.Position) | |
1517 | d2.BrickColor = BrickColor.random() | |
1518 | d2.Mesh.Scale = Vector3.new(0, 5, 0) | |
1519 | table.insert(Effects, { | |
1520 | d1, | |
1521 | "QuadShot", | |
1522 | d2, | |
1523 | d2.Mesh, | |
1524 | 0 | |
1525 | }) | |
1526 | end | |
1527 | end | |
1528 | for i = 0, 1, 0.2 do | |
1529 | swait() | |
1530 | PlayAnimationFromTable({ | |
1531 | CFrame.new(-0.00381875038, -1.20960522, -0.0234894156, 0.906307876, 0.271653324, -0.323744416, -0.422617942, 0.582562923, -0.694272697, 0, 0.766045094, 0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1532 | CFrame.new(-0.0485313386, 1.45186937, 0.12381205, 0.906306446, -0.036834389, 0.421012908, 0.178607732, 0.936241806, -0.302573651, -0.383024782, 0.349420667, 0.855100751) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1533 | CFrame.new(1.2566489, 0.0942437202, -0.366937846, 0.866025388, 0.499999881, 0, 0.32139343, -0.556669831, -0.766045094, -0.383022457, 0.663414538, -0.64278698) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1534 | CFrame.new(-0.669512153, 0.883427501, -1.42651618, 0.814972997, -0.183017969, 0.54984045, 0.413680524, -0.480712831, -0.773165226, 0.405818164, 0.85756737, -0.316057026) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1535 | CFrame.new(0.663835824, -0.644426942, 0.718474984, 0.819152117, -0.0996050313, -0.564861536, 0.496729434, -0.369217664, 0.785454273, -0.28679204, -0.923989952, -0.252968639) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1536 | CFrame.new(-0.597848773, -1.58645034, 0.419145882, 0.845831037, -0.0996147096, 0.524067461, -0.385522783, 0.564860702, 0.729592204, -0.368703246, -0.819151759, 0.439372897) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1537 | }, 0.4, false) | |
1538 | end | |
1539 | Humanoid.WalkSpeed = 100 | |
1540 | attack = false | |
1541 | end | |
1542 | function DisappearJetOnly() | |
1543 | for _, i in pairs(m:children()) do | |
1544 | if i == JetpackHandle then | |
1545 | coroutine.resume(coroutine.create(function(Part) | |
1546 | for i = 0, 1, 0.3 do | |
1547 | swait() | |
1548 | Part.Transparency = i | |
1549 | end | |
1550 | Part.Transparency = 1 | |
1551 | end), i) | |
1552 | end | |
1553 | end | |
1554 | end | |
1555 | function ReappearJetOnly() | |
1556 | for _, i in pairs(m:children()) do | |
1557 | if i == JetpackHandle then | |
1558 | coroutine.resume(coroutine.create(function(Part) | |
1559 | for i = 0, 1, 0.3 do | |
1560 | swait() | |
1561 | Part.Transparency = i | |
1562 | end | |
1563 | Part.Transparency = 0 | |
1564 | end), i) | |
1565 | end | |
1566 | end | |
1567 | end | |
1568 | local floornum = 0 | |
1569 | function JetDash() | |
1570 | attack = true | |
1571 | ReappearJetOnly() | |
1572 | Humanoid.WalkSpeed = 5 | |
1573 | CFuncs.Sound.Create("324867021", JetpackHandle, 1, 1) | |
1574 | CFuncs.Sound.Create("301031757", JetpackHandle, 1, 0.8) | |
1575 | for i = 0, 1, 0.05 do | |
1576 | swait() | |
1577 | Effects.Wave.Create(BrickColor.random(), JetpackHandle.CFrame * CFrame.Angles(2.4, 0, 0), 1, 1, 1, 1, 1, 1, 0.4) | |
1578 | Effects.Break.Create(BrickColor.random(), EffectPartR3.CFrame, 0.2, 0.2, 0.2) | |
1579 | Effects.Break.Create(BrickColor.random(), EffectPartL3.CFrame, 0.2, 0.2, 0.2) | |
1580 | Effects.Block.Create(BrickColor.random(), EffectPartR3.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1) | |
1581 | Effects.Block.Create(BrickColor.random(), EffectPartL3.CFrame, 1, 1, 1, 4, 4, 4, 0.3, 1) | |
1582 | Effects.Block.Create(BrickColor.random(), EffectPartR2.CFrame, 1, 1, 1, 2, 2, 2, 0.2, 1) | |
1583 | Effects.Block.Create(BrickColor.random(), EffectPartL2.CFrame, 1, 1, 1, 2, 2, 2, 0.2, 1) | |
1584 | RootPart.Velocity = RootPart.CFrame.lookVector * 300 | |
1585 | PlayAnimationFromTable({ | |
1586 | CFrame.new(0, -0.436519086, -1.54268694, 1, 0, 0, 0, 0.573575079, 0.81915313, 0, -0.81915313, 0.573575079) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1587 | CFrame.new(0, 1.383762, 0.294095755, 1, 0, 0, 0, 0.766045392, -0.642790735, 0, 0.642790735, 0.766045392) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1588 | CFrame.new(0.639911652, 0.428372383, -0.839826643, 0.262888074, 0.933915675, 0.242263183, 0.536961675, 0.0669959337, -0.840942383, -0.80159986, 0.351159722, -0.483864516) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1589 | CFrame.new(-1.42905915, 0.103630304, -0.677020133, 0.509720683, 0.0942112952, 0.855166197, 0.742046118, 0.45486632, -0.492406994, -0.435376555, 0.885562658, 0.161945611) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1590 | CFrame.new(0.598487258, -1.49273849, 0.0829842687, 0.984807909, 7.31955607E-10, -0.173648015, 0.122787923, 0.707105517, 0.696365893, 0.122787446, -0.707108378, 0.696363151) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1591 | CFrame.new(-0.599626899, -1.7493062, -0.188390553, 0.996194661, 0, 0.087156795, -0.0298094582, 0.939692497, 0.340719461, -0.0819005892, -0.342020988, 0.936116517) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1592 | }, 0.3, false) | |
1593 | end | |
1594 | for i = 0, 1, 0.05 do | |
1595 | swait() | |
1596 | Effects.Fire.Create(BrickColor.random(), EffectPartL3.CFrame, 3, 3, 3, 0.3) | |
1597 | Effects.Fire.Create(BrickColor.random(), EffectPartR3.CFrame, 3, 3, 3, 0.3) | |
1598 | RootPart.Velocity = RootPart.CFrame.lookVector * 90 | |
1599 | PlayAnimationFromTable({ | |
1600 | CFrame.new(-0.313091278, -0.629250288, 0.409977496, 0.422617137, -0.383021861, -0.821394563, 0, 0.906308115, -0.422617614, 0.906308293, 0.178605452, 0.383021355) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1601 | CFrame.new(-2.89082527E-6, 1.56999886, -0.169927716, 0.499998629, -0.0754772127, 0.862731218, -0.224145666, 0.950971425, 0.213101521, -0.836516559, -0.29992786, 0.458566666) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1602 | CFrame.new(0.639911413, 0.428367913, -0.839831948, 0.262887627, 0.933916271, 0.242261022, 0.536960125, 0.0669948608, -0.840943277, -0.801600933, 0.351158082, -0.483863741) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1603 | CFrame.new(-1.42906761, 0.103628337, -0.677013278, 0.509718478, 0.0942142606, 0.85516715, 0.742045939, 0.454867214, -0.4924061, -0.435379177, 0.885561645, 0.161942929) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1604 | CFrame.new(0.255052269, -1.74161863, 0.0939150751, 0.973724782, 0.171020329, -0.150378793, -0.13000688, 0.959606647, 0.249509975, 0.186975896, -0.223403811, 0.956624985) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1605 | CFrame.new(-0.966920853, -1.65688598, 0.10182327, 0.929320216, 0.24122712, 0.279595017, -0.312094092, 0.917783141, 0.245502412, -0.197385877, -0.315410316, 0.928199947) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1606 | }, 0.36, false) | |
1607 | end | |
1608 | DisappearJetOnly() | |
1609 | Humanoid.WalkSpeed = 100 | |
1610 | attack = false | |
1611 | end | |
1612 | function findRandomHead(pos) | |
1613 | local list = game.Workspace:children() | |
1614 | local head | |
1615 | local dist = 10000 | |
1616 | local temp, human, temp2 | |
1617 | local list2 = {} | |
1618 | for x = 1, #list do | |
1619 | temp2 = list[x] | |
1620 | if temp2.className == "Model" and temp2.Name ~= Character.Name and temp2.Name ~= "Crystal" then | |
1621 | temp = temp2:findFirstChild("Head") | |
1622 | human = temp2:findFirstChild("Humanoid") | |
1623 | if temp ~= nil and human ~= nil and human.Health > 0 and dist > pos.magnitude then | |
1624 | local dohit = true | |
1625 | if dohit == true then | |
1626 | head = temp | |
1627 | table.insert(list2, temp) | |
1628 | end | |
1629 | end | |
1630 | end | |
1631 | end | |
1632 | if #list2 > 0 then | |
1633 | rand = math.random(1, #list2) | |
1634 | return list2[rand], dist | |
1635 | else | |
1636 | return nil, dist | |
1637 | end | |
1638 | end | |
1639 | Mouse.Button1Down:connect(function() | |
1640 | if attack ~= false or attacktype == 1 then | |
1641 | end | |
1642 | end) | |
1643 | Mouse.KeyDown:connect(function(k) | |
1644 | k = k:lower() | |
1645 | if attack == false and k == "z" then | |
1646 | SpinShot() | |
1647 | elseif attack == false and k == "x" then | |
1648 | chatfunc("Forward Lunge Shot!") LungeShot("Forward") | |
1649 | elseif attack == false and k == "c" then | |
1650 | chatfunc("Backwards Lunge Shot!") LungeShot("Backward") | |
1651 | elseif attack == false and k == "v" then | |
1652 | chatfunc("Auto Shot!") AutoShot() | |
1653 | elseif attack == false and k == "b" then | |
1654 | chatfunc("Mortar Shot!") MortarShot() | |
1655 | elseif attack == false and k == "f" then | |
1656 | chatfunc("Jet Dash!") JetDash() | |
1657 | end | |
1658 | end) | |
1659 | while true do | |
1660 | swait() | |
1661 | local aim = CFrame.new(RootPart.Position, Mouse.Hit.p) | |
1662 | local direction = aim.lookVector | |
1663 | local headingA = math.atan2(direction.x, direction.z) | |
1664 | headingA = math.deg(headingA) | |
1665 | Humanoid.AutoRotate = false | |
1666 | RootPart.CFrame = CFrame.new(RootPart.Position) * CFrame.Angles(math.rad(0), math.rad(headingA - 180), math.rad(0)) | |
1667 | for i, v in pairs(Character:GetChildren()) do | |
1668 | if v:IsA("Part") then | |
1669 | v.Material = "SmoothPlastic" | |
1670 | elseif v:IsA("Accessory") then | |
1671 | v:WaitForChild("Handle").Material = "SmoothPlastic" | |
1672 | end | |
1673 | end | |
1674 | Headvelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1675 | velocity = RootPart.Velocity.y | |
1676 | sine = sine + change | |
1677 | local hit, pos = rayCast(RootPart.Position, CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0)).lookVector, 4, Character) | |
1678 | if RootPart.Velocity.y > 1 and hit == nil then | |
1679 | Anim = "Jump" | |
1680 | if attack == false then | |
1681 | PlayAnimationFromTable({ | |
1682 | CFrame.new(0.127259433, -0.0596159771, 0.189378753, 0.965925872, 0.0225571971, 0.257834047, 0.0225579981, 0.985066533, -0.17069003, -0.257833958, 0.170690134, 0.950992465) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1683 | CFrame.new(0.0244209729, 1.56254399, -0.173544556, 0.96592474, 0.0225591958, -0.257838368, 0.0449432544, 0.966441274, 0.252925694, 0.254891455, -0.255895257, 0.932495654) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1684 | CFrame.new(0.658500612, 0.398768902, -0.862450778, 0.343670964, 0.900792718, 0.265448391, 0.2137326, 0.20021911, -0.956154108, -0.914444566, 0.385337412, -0.123719275) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1685 | CFrame.new(-1.43523574, 0.121549249, -0.687813759, 0.410701752, 0.118069187, 0.904092729, 0.739943445, 0.536207557, -0.406159192, -0.532736301, 0.835787892, 0.132856861) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1686 | CFrame.new(0.641040266, -1.90806067, 0.227101922, 0.962249994, -0.0841864049, -0.258819878, 0.170085624, 0.928400099, 0.330369651, 0.212475777, -0.361919671, 0.907671988) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1687 | CFrame.new(-0.500004053, -1.35084605, -0.555529714, 0.981060445, 0.0871543288, 0.172987863, -0.140045926, 0.936115682, 0.322606146, -0.133820146, -0.340722382, 0.930591524) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1688 | }, 0.3, false) | |
1689 | end | |
1690 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1691 | Anim = "Fall" | |
1692 | if attack == false then | |
1693 | PlayAnimationFromTable({ | |
1694 | CFrame.new(0.163334131, -0.0871596038, -0.16742219, 0.867043138, 0.0880189762, 0.490396827, 0.0449440032, 0.966441453, -0.252924889, -0.496202052, 0.24133715, 0.833990455) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1695 | CFrame.new(0.0244172066, 1.5625447, -0.17354542, 0.866278768, 0.108875886, -0.487552434, 0.108873315, 0.911355376, 0.396961033, 0.487552851, -0.396960288, 0.777634263) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1696 | CFrame.new(0.689669132, 0.354625255, -0.940430343, 0.229587287, 0.87174952, 0.432831228, 0.436280668, 0.305352151, -0.846415639, -0.870028138, 0.383162051, -0.310222536) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1697 | CFrame.new(-1.47630322, 0.0475490689, -0.634548545, 0.410701722, 0.118068904, 0.904093027, 0.739943504, 0.536207497, -0.406158984, -0.532736182, 0.835787833, 0.132856965) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1698 | CFrame.new(0.720636785, -1.87088692, -0.163134515, 0.96225059, -0.185678095, -0.198991448, 0.170083165, 0.98103714, -0.0929410458, 0.212475047, 0.0555875003, 0.975584149) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1699 | CFrame.new(-0.500012517, -1.35084641, -0.555533409, 0.981287122, -0.0532096401, 0.185053408, 0.0246368051, 0.987856567, 0.153402999, -0.190968931, -0.14597322, 0.970681846) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1700 | }, 0.3, false) | |
1701 | end | |
1702 | elseif Headvelocity < 1 and hit ~= nil then | |
1703 | Anim = "Idle" | |
1704 | if attack == false then | |
1705 | change = 1 | |
1706 | PlayAnimationFromTable({ | |
1707 | CFrame.new(-0.2541008, -0.180074736, -0.241802737, 0.76604414, -1.48394264E-7, -0.642788053, 0.0560230091, 0.996194661, 0.0667653158, 0.640342057, -0.0871560946, 0.763129115) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1708 | CFrame.new(1.35600567E-6, 1.49999166, -5.73694706E-7, 0.766043305, -0.0560226552, 0.64034313, -9.31413126E-7, 0.996194601, 0.0871566758, -0.642789006, -0.0667664111, 0.76312834) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1709 | CFrame.new(0.965944111, 0.410506815, -0.758076906, 0.409578711, 0.866023779, 0.286785841, 0.370432287, 0.129400983, -0.919802964, -0.833687246, 0.482963026, -0.267803341) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1710 | CFrame.new(-1.37906599, 0.100769401, -0.915000141, 0.633367777, 0.168905735, 0.755190313, 0.68845278, 0.322659701, -0.649560332, -0.353385001, 0.931322694, 0.0880800188) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1711 | CFrame.new(0.59794265, -2.0041101, -0.0749895424, 0.981711328, -0.0754808784, -0.174771756, 0.0819018856, 0.996202469, 0.0298143364, 0.171854109, -0.04358197, 0.984157085) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), | |
1712 | CFrame.new(-0.786915421, -1.82557595, -0.30038017, 0.813531935, 0.108696118, 0.57126832, -0.062976934, 0.993065894, -0.0992677882, -0.578093946, 0.0447808057, 0.814740956) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) | |
1713 | }, 0.3, false) | |
1714 | end | |
1715 | elseif Headvelocity > 2 and hit ~= nil then | |
1716 | Anim = "Walk" | |
1717 | if attack == false then | |
1718 | change = 3 | |
1719 | PlayAnimationFromTable({ | |
1720 | CFrame.new(0, -0.234493911, -0.148225456, 1, 0, 0, 0, 0.972469866, 0.233028963, 0, -0.233028963, 0.972469866) * CFrame.new(0, 0, 0) * CFrame.Angles(-0.2, math.rad(-10 * math.cos(sine / 10)), 0), | |
1721 | CFrame.new(0, 1.49999082, 3.57627869E-6, 1, 0, 0, 0, 0.991436481, -0.130595058, 0, 0.130595058, 0.991436481) * CFrame.new(0, 0, 0) * CFrame.Angles(0.15, math.rad(10 * math.cos(sine / 10)), math.rad(-3 * math.cos(sine / 10))), | |
1722 | CFrame.new(0.678833663, 0.365906566, -0.753261089, 0.337660074, 0.901719749, 0.269976407, 0.271790266, 0.181202337, -0.945143342, -0.901174843, 0.39251405, -0.183893844) * CFrame.new(math.rad(5 * math.cos(sine / 10)), math.rad(-5 * math.cos(sine / 5)), 0) * CFrame.Angles(0, 0, 0), | |
1723 | CFrame.new(-1.42503321, 0.101834446, -0.631737471, 0.459770948, 0.0983300805, 0.882576883, 0.674444914, 0.607868612, -0.419070512, -0.577697933, 0.787925959, 0.213162094) * CFrame.new(math.rad(5 * math.cos(sine / 10)), math.rad(5 * math.cos(sine / 5)), 0) * CFrame.Angles(0, 0, 0), | |
1724 | CFrame.new(0.5, -1.85 - 0.5 * math.cos(sine / 8) / 2, 0 + 1.8 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(-50 * math.sin(sine / 8)), math.rad(0), math.rad(0)), | |
1725 | CFrame.new(-0.5, -1.85 + 0.5 * math.cos(sine / 8) / 2, 0 - 1.8 * math.sin(sine / 8) / 2) * CFrame.Angles(math.rad(50 * math.sin(sine / 8)), math.rad(0), math.rad(0)) | |
1726 | }, 0.3, false) | |
1727 | end | |
1728 | end | |
1729 | if 0 < #Effects then | |
1730 | for e = 1, #Effects do | |
1731 | if Effects[e] ~= nil then | |
1732 | local Thing = Effects[e] | |
1733 | if Thing ~= nil then | |
1734 | local Part = Thing[1] | |
1735 | local Mode = Thing[2] | |
1736 | local Delay = Thing[3] | |
1737 | local IncX = Thing[4] | |
1738 | local IncY = Thing[5] | |
1739 | local IncZ = Thing[6] | |
1740 | if Thing[2] == "Shoot" then | |
1741 | local Look = Thing[1] | |
1742 | local move = 30 | |
1743 | if Thing[8] == 3 then | |
1744 | move = 10 | |
1745 | end | |
1746 | local hit, pos = rayCast(Thing[4], Look, move, Character) | |
1747 | local mag = (Thing[4] - pos).magnitude | |
1748 | Effects.Cylinder.Create(BrickColor.random(), CFrame.new((Thing[4] + pos) / 2, pos) * CFrame.Angles(1.57, 0, 0), 1, mag * 5, 1, 0.5, 0, 0.5, 0.2) | |
1749 | Thing[4] = Thing[4] + Look * move | |
1750 | Thing[3] = Thing[3] - 1 | |
1751 | if hit ~= nil then | |
1752 | Thing[3] = 0 | |
1753 | local target, distance = findNearestHead(pos) | |
1754 | if hit.Parent:findFirstChild("Humanoid") == nil and target ~= nil and Thing[5] > 0 then | |
1755 | Thing[3] = 20 | |
1756 | Thing[5] = Thing[5] - 1 | |
1757 | Thing[6] = Thing[6] - 1 | |
1758 | spread = Vector3.new((math.random(-1, 0) + math.random()) * 2, (math.random(-1, 0) + math.random()) * 2, (math.random(-1, 0) + math.random()) * 2) * (pos + target.Position).magnitude / 100 | |
1759 | local MouseLook = CFrame.new((pos + target.Position) / 2, target.Position) | |
1760 | Thing[1] = MouseLook.lookVector | |
1761 | end | |
1762 | if Thing[8] == 1 or Thing[8] == 3 then | |
1763 | MagnitudeDamage(hit, 5, 15, 25, math.random(5, 10), "Normal", "", 1) | |
1764 | end | |
1765 | ref = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.random(), "Reference", Vector3.new()) | |
1766 | ref.Anchored = true | |
1767 | ref.CFrame = CFrame.new(pos) | |
1768 | Effects.Sphere.Create(BrickColor.random(), CFrame.new(pos), 5, 5, 5, 1, 1, 1, 0.07) | |
1769 | game:GetService("Debris"):AddItem(ref, 1) | |
1770 | end | |
1771 | if Thing[3] <= 0 then | |
1772 | table.remove(Effects, e) | |
1773 | end | |
1774 | end | |
1775 | if Thing[2] == "FireWave" then | |
1776 | if Thing[3] <= Thing[4] then | |
1777 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(0, 1, 0) | |
1778 | Thing[3] = Thing[3] + 1 | |
1779 | Thing[6].Scale = Thing[6].Scale + Vector3.new(Thing[5], 0, Thing[5]) | |
1780 | else | |
1781 | Part.Parent = nil | |
1782 | table.remove(Effects, e) | |
1783 | end | |
1784 | end | |
1785 | if Thing[2] ~= "Shoot" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" then | |
1786 | if Thing[1].Transparency <= 1 then | |
1787 | if Thing[2] == "Block1" then | |
1788 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1789 | Mesh = Thing[7] | |
1790 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1791 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1792 | elseif Thing[2] == "Block2" then | |
1793 | Thing[1].CFrame = Thing[1].CFrame | |
1794 | Mesh = Thing[7] | |
1795 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1796 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1797 | elseif Thing[2] == "Fire" then | |
1798 | Thing[1].CFrame = CFrame.new(Thing[1].Position) + Vector3.new(0, 0.2, 0) | |
1799 | Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) | |
1800 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1801 | elseif Thing[2] == "Cylinder" then | |
1802 | Mesh = Thing[7] | |
1803 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1804 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1805 | elseif Thing[2] == "Blood" then | |
1806 | Mesh = Thing[7] | |
1807 | Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 0.5, 0) | |
1808 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6]) | |
1809 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1810 | elseif Thing[2] == "Elec" then | |
1811 | Mesh = Thing[10] | |
1812 | Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9]) | |
1813 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1814 | elseif Thing[2] == "QuadShot" then | |
1815 | if Thing[5] < 30 then | |
1816 | Thing[5] = Thing[5] + 1.5 | |
1817 | Thing[4].Scale = Vector3.new(Thing[5], 5, Thing[5]) | |
1818 | else | |
1819 | refda = CFuncs.Part.Create(workspace, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new()) | |
1820 | refda.Anchored = true | |
1821 | refda.CFrame = CFrame.new(Thing[1].Position) | |
1822 | game:GetService("Debris"):AddItem(refda, 1) | |
1823 | CFuncs.Sound.Create("300916105", refda, 1, 1.4) | |
1824 | CFuncs.Sound.Create("315744661", refda, 1, 1) | |
1825 | MagnitudeDamage(refda, 20, 15, 25, math.random(5, 10), "Normal", "315748999", 1) | |
1826 | Effects.Cylinder.Create(BrickColor.random(), CFrame.new(refda.Position), 3, 9999, 3, 1, 1, 1, 0.1) | |
1827 | for i = 1, 3 do | |
1828 | Effects.Sphere.Create(BrickColor.random(), CFrame.new(refda.Position), 10, 10, 10, 4 * i, 4 * i, 4 * i, 0.08) | |
1829 | end | |
1830 | Thing[1].Parent = nil | |
1831 | table.remove(Effects, e) | |
1832 | end | |
1833 | elseif Thing[2] == "Disappear" then | |
1834 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1835 | elseif Thing[2] == "Shatter" then | |
1836 | Thing[1].Transparency = Thing[1].Transparency + Thing[3] | |
1837 | Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0) | |
1838 | Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0) | |
1839 | Thing[6] = Thing[6] + Thing[5] | |
1840 | end | |
1841 | else | |
1842 | Part.Parent = nil | |
1843 | table.remove(Effects, e) | |
1844 | end | |
1845 | end | |
1846 | end | |
1847 | end | |
1848 | end | |
1849 | end | |
1850 | end |