SHOW:
|
|
- or go back to the newest paste.
1 | - | ------------------------ |
1 | + | |
2 | - | --Aiju Love Trap Rifle-- |
2 | + | |
3 | - | ---------------------------------------------------------------- |
3 | + | |
4 | - | --By CKbackup (Sugarie Saffron) -- |
4 | + | |
5 | - | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- |
5 | + | |
6 | - | --Discord: Sugarie Saffron#4705 -- |
6 | + | |
7 | - | ---------------------------------------------------------------- |
7 | + | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | if plr~=Player then return end | |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | m.Hit = io.Hit | |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/math.huge) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | - | while wait(1e-162) do |
83 | + | |
84 | Player=owner | |
85 | Character=Player.Character | |
86 | PlayerGui=Player.PlayerGui | |
87 | Backpack=Player.Backpack | |
88 | Torso=Character.Torso | |
89 | Head=Character.Head | |
90 | Humanoid=Character.Humanoid | |
91 | - | Player = owner |
91 | + | m=Instance.new('Model',Character) |
92 | LeftArm=Character["Left Arm"] | |
93 | - | ------------------------ |
93 | + | LeftLeg=Character["Left Leg"] |
94 | - | --Aiju Love Trap Rifle-- |
94 | + | RightArm=Character["Right Arm"] |
95 | - | ---------------------------------------------------------------- |
95 | + | RightLeg=Character["Right Leg"] |
96 | - | --By CKbackup (Sugarie Saffron) -- |
96 | + | LS=Torso["Left Shoulder"] |
97 | - | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- |
97 | + | LH=Torso["Left Hip"] |
98 | - | --Discord: Sugarie Saffron#4705 -- |
98 | + | RS=Torso["Right Shoulder"] |
99 | - | ---------------------------------------------------------------- |
99 | + | RH=Torso["Right Hip"] |
100 | - | wait(1/60) |
100 | + | Face = Head.face |
101 | - | Effects = { } |
101 | + | Neck=Torso.Neck |
102 | - | --local Player = game:GetService("Players"):FindFirstChild(script.Parent) |
102 | + | it=Instance.new |
103 | - | local chara = Player.Character |
103 | + | attacktype=1 |
104 | - | local Humanoid = chara:FindFirstChildOfClass("Humanoid") |
104 | + | vt=Vector3.new |
105 | - | local LeftArm = chara["Left Arm"] |
105 | + | cf=CFrame.new |
106 | - | local RightArm = chara["Right Arm"] |
106 | + | euler=CFrame.fromEulerAnglesXYZ |
107 | - | local LeftLeg = chara["Left Leg"] |
107 | + | angles=CFrame.Angles |
108 | - | local RightLeg = chara["Right Leg"] |
108 | + | cloaked=false |
109 | - | local Head = chara.Head |
109 | + | necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
110 | - | local Torso = chara.Torso |
110 | + | necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
111 | - | local Camera = workspace.CurrentCamera |
111 | + | LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0) |
112 | - | local RootPart = chara.HumanoidRootPart |
112 | + | LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0) |
113 | - | local RootJoint = RootPart.RootJoint |
113 | + | RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0) |
114 | - | local attack = false |
114 | + | RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0) |
115 | - | local Anim = 'Idle' |
115 | + | RootPart=Character.HumanoidRootPart |
116 | - | local attacktype = 1 |
116 | + | RootJoint=RootPart.RootJoint |
117 | - | local delays = false |
117 | + | RootCF=euler(-1.57,0,3.14) |
118 | - | local play = true |
118 | + | attack = false |
119 | - | local targetted = nil |
119 | + | attackdebounce = false |
120 | - | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude |
120 | + | deb=false |
121 | - | local velocity = RootPart.Velocity.y |
121 | + | equipped=true |
122 | hand=false | |
123 | MMouse=nil | |
124 | - | local doe = 0 |
124 | + | combo=0 |
125 | - | local Create = LoadLibrary("RbxUtility").Create |
125 | + | mana=0 |
126 | - | local debby = game:GetService("Debris") |
126 | + | trispeed=.2 |
127 | - | Humanoid.WalkSpeed = 200 |
127 | + | attackmode='none' |
128 | local idle=0 | |
129 | - | Humanoid.Animator.Parent = nil |
129 | + | local Anim="Idle" |
130 | - | chara.Animate.Parent = nil |
130 | + | local Effects={} |
131 | - | local damagemode = "none" |
131 | + | local gun=false |
132 | - | local LuvGunt = false |
132 | + | local shoot=false |
133 | - | local VOLUME = 1 |
133 | + | player=nil |
134 | - | local newMotor = function(part0, part1, c0, c1) |
134 | + | mana=0 |
135 | - | local w = Create('Motor'){ |
135 | + | |
136 | - | Parent = part0, |
136 | + | --mouse=Player:GetMouse() |
137 | - | Part0 = part0, |
137 | + | --save shoulders |
138 | - | Part1 = part1, |
138 | + | RSH, LSH=nil, nil |
139 | - | C0 = c0, |
139 | + | --welds |
140 | - | C1 = c1, |
140 | + | RW, LW=Instance.new("Weld"), Instance.new("Weld") |
141 | RW.Name="Right Shoulder" LW.Name="Left Shoulder" | |
142 | - | return w |
142 | + | LH=Torso["Left Hip"] |
143 | RH=Torso["Right Hip"] | |
144 | TorsoColor=Torso.BrickColor | |
145 | - | function clerp(a, b, t) |
145 | + | function NoOutline(Part) |
146 | - | return a:lerp(b, t) |
146 | + | Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10 |
147 | end | |
148 | player=Player | |
149 | - | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) |
149 | + | ch=Character |
150 | - | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) |
150 | + | RSH=ch.Torso["Right Shoulder"] |
151 | LSH=ch.Torso["Left Shoulder"] | |
152 | - | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) |
152 | + | -- |
153 | - | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) |
153 | + | RSH.Parent=nil |
154 | - | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) |
154 | + | LSH.Parent=nil |
155 | - | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) |
155 | + | -- |
156 | - | RootJoint.C1 = CFrame.new(0, 0, 0) |
156 | + | RW.Name="Right Shoulder" |
157 | - | RootJoint.C0 = CFrame.new(0, 0, 0) |
157 | + | RW.Part0=ch.Torso |
158 | - | Torso.Neck.C1 = CFrame.new(0, 0, 0) |
158 | + | RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) |
159 | - | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) |
159 | + | RW.C1=cf(0, 0.5, 0) |
160 | RW.Part1=ch["Right Arm"] | |
161 | - | local rarmc1 = RW.C1 |
161 | + | RW.Parent=ch.Torso |
162 | - | local larmc1 = LW.C1 |
162 | + | -- |
163 | - | local rlegc1 = RH.C1 |
163 | + | LW.Name="Left Shoulder" |
164 | - | local llegc1 = LH.C1 |
164 | + | LW.Part0=ch.Torso |
165 | LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) | |
166 | - | local resetc1 = false |
166 | + | LW.C1=cf(0, 0.5, 0) |
167 | LW.Part1=ch["Left Arm"] | |
168 | - | function PlayAnimationFromTable(table, speed, bool) |
168 | + | LW.Parent=ch.Torso |
169 | - | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) |
169 | + | |
170 | - | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) |
170 | + | Player=owner |
171 | - | RW.C0 = clerp(RW.C0, table[3], speed) |
171 | + | Character=Player.Character |
172 | - | LW.C0 = clerp(LW.C0, table[4], speed) |
172 | + | --Mouse=Player:GetMouse() |
173 | - | RH.C0 = clerp(RH.C0, table[5], speed) |
173 | + | m=Instance.new('Model',Character) |
174 | - | LH.C0 = clerp(LH.C0, table[6], speed) |
174 | + | |
175 | - | if bool == true then |
175 | + | |
176 | - | if resetc1 == false then |
176 | + | local function weldBetween(a, b) |
177 | - | resetc1 = true |
177 | + | local weldd = Instance.new("ManualWeld") |
178 | - | RootJoint.C1 = RootJoint.C1 |
178 | + | weldd.Part0 = a |
179 | - | Torso.Neck.C1 = Torso.Neck.C1 |
179 | + | weldd.Part1 = b |
180 | - | RW.C1 = rarmc1 |
180 | + | weldd.C0 = CFrame.new() |
181 | - | LW.C1 = larmc1 |
181 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
182 | - | RH.C1 = rlegc1 |
182 | + | weldd.Parent = a |
183 | - | LH.C1 = llegc1 |
183 | + | return weldd |
184 | end | |
185 | ||
186 | it=Instance.new | |
187 | ||
188 | - | ArtificialHB = Instance.new("BindableEvent", script) |
188 | + | function nooutline(part) |
189 | - | ArtificialHB.Name = "Heartbeat" |
189 | + | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 |
190 | - | script:WaitForChild("Heartbeat") |
190 | + | end |
191 | - | frame = 0.03333333333333 |
191 | + | |
192 | - | tf = 0 |
192 | + | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) |
193 | - | allowframeloss = false |
193 | + | local fp=it("Part") |
194 | - | tossremainder = false |
194 | + | fp.formFactor=formfactor |
195 | - | lastframe = tick() |
195 | + | fp.Parent=parent |
196 | - | script.Heartbeat:Fire() |
196 | + | fp.Reflectance=reflectance |
197 | - | game:GetService("RunService").Heartbeat:connect(function(s, p) |
197 | + | fp.Transparency=1 |
198 | - | tf = tf + s |
198 | + | fp.CanCollide=false |
199 | - | if tf >= frame then |
199 | + | fp.Locked=true |
200 | - | if allowframeloss then |
200 | + | fp.BrickColor=BrickColor.new(tostring(brickcolor)) |
201 | - | script.Heartbeat:Fire() |
201 | + | fp.Name=name |
202 | - | lastframe = tick() |
202 | + | fp.Size=size |
203 | fp.Position=Character.Torso.Position | |
204 | - | for i = 1, math.floor(tf / frame) do |
204 | + | nooutline(fp) |
205 | - | script.Heartbeat:Fire() |
205 | + | fp.Material=material |
206 | fp:BreakJoints() | |
207 | - | lastframe = tick() |
207 | + | return fp |
208 | end | |
209 | - | if tossremainder then |
209 | + | |
210 | - | tf = 0 |
210 | + | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
211 | local mesh=it(Mesh) | |
212 | - | tf = tf - frame * math.floor(tf / frame) |
212 | + | mesh.Parent=part |
213 | if Mesh=="SpecialMesh" then | |
214 | mesh.MeshType=meshtype | |
215 | mesh.MeshId=meshid | |
216 | - | function swait(num) |
216 | + | end |
217 | - | if num == 0 or num == nil then |
217 | + | mesh.Offset=offset |
218 | - | ArtificialHB.Event:wait() |
218 | + | mesh.Scale=scale |
219 | return mesh | |
220 | - | for i = 0, num do |
220 | + | end |
221 | - | ArtificialHB.Event:wait() |
221 | + | |
222 | function weld(parent,part0,part1,c0,c1) | |
223 | local weld=it("Weld") | |
224 | weld.Parent=parent | |
225 | weld.Part0=part0 | |
226 | - | function RemoveOutlines(part) |
226 | + | weld.Part1=part1 |
227 | - | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 |
227 | + | weld.C0=c0 |
228 | weld.C1=c1 | |
229 | return weld | |
230 | - | function so(id,par,pit,vol) |
230 | + | end |
231 | - | local sou = Instance.new("Sound", par or workspace) |
231 | + | |
232 | - | if par == chara then |
232 | + | |
233 | - | sou.Parent = chara.Torso |
233 | + | Player=owner |
234 | Character=Player.Character | |
235 | - | sou.Volume = vol |
235 | + | --Mouse=Player:GetMouse() |
236 | - | sou.Pitch = pit or 1 |
236 | + | m=Instance.new('Model',Character) |
237 | - | sou.SoundId = "rbxassetid://" .. id |
237 | + | |
238 | - | sou.PlayOnRemove = true |
238 | + | |
239 | - | sou:Destroy() |
239 | + | local function weldBetween(a, b) |
240 | local weldd = Instance.new("ManualWeld") | |
241 | weldd.Part0 = a | |
242 | - | --This is just for builds-- |
242 | + | weldd.Part1 = b |
243 | - | New = function(Object, Parent, Name, Data) |
243 | + | weldd.C0 = CFrame.new() |
244 | - | local Object = Instance.new(Object) |
244 | + | weldd.C1 = b.CFrame:inverse() * a.CFrame |
245 | - | for Index, Value in pairs(Data or {}) do |
245 | + | weldd.Parent = a |
246 | - | Object[Index] = Value |
246 | + | return weldd |
247 | end | |
248 | - | Object.Parent = Parent |
248 | + | |
249 | - | Object.Name = Name |
249 | + | it=Instance.new |
250 | - | return Object |
250 | + | |
251 | function nooutline(part) | |
252 | part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10 | |
253 | - | LuvGun = New("Model",chara,"LuvGun",{}) |
253 | + | end |
254 | - | Handle = New("Part",LuvGun,"Handaru",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999809, 1.10000002, 0.50000006),CFrame = CFrame.new(-55.7999725, 3.16094255, -23.6752853, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
254 | + | |
255 | - | HWeld = New("ManualWeld",Handle,"HWeld",{Part0 = Handle,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),C1 = CFrame.new(-0.164215088, -1.07379532, 0.339058399, -1, 0, 0, 0, 0, -1, -0, -1, -0),}) |
255 | + | function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size) |
256 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 0.100000001),CFrame = CFrame.new(-55.7999687, 4.4999733, -22.25, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
256 | + | local fp=it("Part") |
257 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) |
257 | + | fp.formFactor=formfactor |
258 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.56618547, 1.17111206, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
258 | + | fp.Parent=parent |
259 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 0.100000001),CFrame = CFrame.new(-55.7999687, 4.4999733, -22.0499992, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
259 | + | fp.Reflectance=reflectance |
260 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) |
260 | + | fp.Transparency=1 |
261 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.60091519, 1.36807442, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
261 | + | fp.CanCollide=false |
262 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999994278, 0.600000024, 0.600000024),CFrame = CFrame.new(-55.7999611, 2.34997582, -22.4000015, 0, 0, -1, 1.00000012, 0, 0, 0, -1.00000012, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
262 | + | fp.Locked=true |
263 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) |
263 | + | fp.BrickColor=BrickColor.new(tostring(brickcolor)) |
264 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0),C1 = CFrame.new(1.14440918e-05, -0.577195883, 1.39673233, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
264 | + | fp.Name=name |
265 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.700000048, 0.199999988),CFrame = CFrame.new(-55.6999779, 4.59997463, -23.2499962, 1, 0, 0, 0, 0, -1.00000012, 0, 1.00000012, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
265 | + | fp.Size=size |
266 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
266 | + | fp.Position=Character.Torso.Position |
267 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0),C1 = CFrame.new(0.0999946594, 1.49102044, 0.168943405, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
267 | + | nooutline(fp) |
268 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.100000001, 0.800000012),CFrame = CFrame.new(-55.849968, 4.39997292, -20.2000103, 0, -1, 0, 0, 0, -1.00000012, 1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
268 | + | fp.Material=material |
269 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
269 | + | fp:BreakJoints() |
270 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, -1, 0, 0, 0, -1, 0),C1 = CFrame.new(-0.0499954224, 1.82368135, 3.20732307, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
270 | + | return fp |
271 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.100000001, 0.199999988),CFrame = CFrame.new(-55.7999725, 4.59997463, -23.5499954, 1, 0, 0, 0, 0, -1.00000012, 0, 1.00000012, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
271 | + | end |
272 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1, 1),MeshType = Enum.MeshType.Wedge,}) |
272 | + | |
273 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0),C1 = CFrame.new(0, 1.43892598, -0.126499176, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
273 | + | function swait(num) |
274 | - | ShotPt = New("Part",LuvGun,"ShotPt",{Transparency = 1,Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999983624, 0.100000001, 0.100000001),CFrame = CFrame.new(-55.7999687, 3.84997725, -19.3500118, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
274 | + | if num==0 or num==nil then |
275 | - | Weld = New("ManualWeld",ShotPt,"Weld",{Part0 = ShotPt,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.81469727e-06, 1.42964172, 4.13991356, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
275 | + | game:service'RunService'.Heartbeat:wait(0) |
276 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399998486, 0.400000006, 0.100000001),CFrame = CFrame.new(-55.9499664, 3.89997602, -22.4000187, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
276 | + | else |
277 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 1, 1.20000005),MeshType = Enum.MeshType.Cylinder,}) |
277 | + | for i=0,num do |
278 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(-0.149993896, 0.949253559, 1.12756157, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
278 | + | game:service'RunService'.Heartbeat:wait(0) |
279 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Lily white"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.599999428, 0.800000072, 0.600000024),CFrame = CFrame.new(-55.7999611, 2.79997706, -22.4000034, -1, 0, 0, 0, 1.00000012, 0, 0, 0, -1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.929412, 0.917647, 0.917647),}) |
279 | + | end |
280 | - | Mesh = New("CylinderMesh",Part,"Mesh",{}) |
280 | + | end |
281 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(1.14440918e-05, -0.134031534, 1.31858826, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
281 | + | end |
282 | - | Part = New("Part",LuvGun,"Part",{Transparency = 1,Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.600000024, 0.5, 0.600000024),CFrame = CFrame.new(-55.7999611, 2.79997706, -22.4000034, -1, 0, 0, 0, 1.00000012, 0, 0, 0, -1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,}) |
282 | + | |
283 | - | Mesh = New("CylinderMesh",Part,"Mesh",{}) |
283 | + | function mesh(Mesh,part,meshtype,meshid,offset,scale) |
284 | - | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "rbxassetid://52650427",}) |
284 | + | local mesh=it(Mesh) |
285 | - | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "rbxassetid://52650427",}) |
285 | + | mesh.Parent=part |
286 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(1.14440918e-05, -0.134031534, 1.31858826, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
286 | + | if Mesh=="SpecialMesh" then |
287 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.100000001, 0.800000012),CFrame = CFrame.new(-55.7499695, 4.39997292, -20.2000103, 0, 1, 0, 0, 0, -1.00000012, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
287 | + | mesh.MeshType=meshtype |
288 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
288 | + | mesh.MeshId=meshid |
289 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 1, 0, 0, 0, -1, 0),C1 = CFrame.new(0.0500030518, 1.82368135, 3.20732307, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
289 | + | end |
290 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.700000048, 0.199999988),CFrame = CFrame.new(-55.899971, 4.59997463, -23.2499962, 1, 0, 0, 0, 0, -1.00000012, 0, 1.00000012, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
290 | + | mesh.Offset=offset |
291 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
291 | + | mesh.Scale=scale |
292 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1, 0),C1 = CFrame.new(-0.0999984741, 1.49102044, 0.168943405, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
292 | + | return mesh |
293 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999422, 0.400000006, 0.600000024),CFrame = CFrame.new(-55.7999611, 3.39997506, -22.4000015, 0, 0, -1, 1.00000012, 0, 0, 0, -1.00000012, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
293 | + | end |
294 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) |
294 | + | |
295 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0),C1 = CFrame.new(1.14440918e-05, 0.456851482, 1.21440125, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
295 | + | function weld(parent,part0,part1,c0,c1) |
296 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.0999998972, 1.70000017),CFrame = CFrame.new(-55.649971, 3.84997725, -24.8499966, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
296 | + | local weld=it("Weld") |
297 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(0.150001526, 0.474580526, -1.27651405, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
297 | + | weld.Parent=parent |
298 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(3.8999989, 0.400000006, 0.400000006),CFrame = CFrame.new(-55.7999687, 3.89997602, -22.0499992, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
298 | + | weld.Part0=part0 |
299 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) |
299 | + | weld.Part1=part1 |
300 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.81469727e-06, 1.01003361, 1.47226334, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
300 | + | weld.C0=c0 |
301 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.90000045, 0.100000001, 0.0999998972),CFrame = CFrame.new(-55.5999718, 3.44997501, -21.1500034, 0, 1, 0, 0, 0, 1.00000012, 1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
301 | + | weld.C1=c1 |
302 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
302 | + | return weld |
303 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0),C1 = CFrame.new(0.200000763, 0.723151445, 2.43672752, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
303 | + | end |
304 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.0999998972, 0.100000001),CFrame = CFrame.new(-55.9499664, 3.84997725, -25.7500038, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
304 | + | |
305 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
305 | + | |
306 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(-0.149993896, 0.318296194, -2.16284752, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
306 | + | local function CFrameFromTopBack(at, top, back) |
307 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.100000001, 1.89999998),CFrame = CFrame.new(-55.7999687, 3.44997501, -21.1500034, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
307 | + | local right = top:Cross(back) |
308 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 0.723151445, 2.43672752, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
308 | + | return CFrame.new(at.x, at.y, at.z, |
309 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.499999911, 0.100000001),CFrame = CFrame.new(-55.9499664, 3.54997826, -25.7500038, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
309 | + | right.x, top.x, back.x, |
310 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(-0.149993896, 0.022854805, -2.11075401, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
310 | + | right.y, top.y, back.y, |
311 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999994278, 0.600000024, 0.600000024),CFrame = CFrame.new(-55.7999611, 3.24997807, -22.4000015, 0, 0, -1, 1.00000012, 0, 0, 0, -1.00000012, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
311 | + | right.z, top.z, back.z) |
312 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) |
312 | + | |
313 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 1, 0, 0, 0, -1, -1, 0, 0),C1 = CFrame.new(1.14440918e-05, 0.309133291, 1.240448, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
313 | + | |
314 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.0999998972, 0.100000001),CFrame = CFrame.new(-55.9499664, 3.24997902, -25.7500019, 0, 0, -1, 0, -1.00000012, -0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
314 | + | function Triangle(a, b, c) |
315 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
315 | + | local edg1 = (c-a):Dot((b-a).unit) |
316 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, -1, 0, -1, -0, -0),C1 = CFrame.new(-0.149993896, -0.272586584, -2.0586586, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
316 | + | local edg2 = (a-b):Dot((c-b).unit) |
317 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.0999998972, 0.100000001),CFrame = CFrame.new(-55.649971, 3.24997902, -25.7500019, 0, 0, -1, 0, -1.00000012, -0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
317 | + | local edg3 = (b-c):Dot((a-c).unit) |
318 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
318 | + | if edg1 <= (b-a).magnitude and edg1 >= 0 then |
319 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, -1, 0, -1, -0, -0),C1 = CFrame.new(0.150001526, -0.272586584, -2.0586586, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
319 | + | a, b, c = a, b, c |
320 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399998367, 0.300000012, 0.400000006),CFrame = CFrame.new(-55.7999687, 3.84997725, -19.6000099, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
320 | + | elseif edg2 <= (c-b).magnitude and edg2 >= 0 then |
321 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.20000005, 1),MeshType = Enum.MeshType.Cylinder,}) |
321 | + | a, b, c = b, c, a |
322 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.81469727e-06, 1.38622999, 3.893713, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
322 | + | elseif edg3 <= (a-c).magnitude and edg3 >= 0 then |
323 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.299998373, 0.300000012, 0.400000006),CFrame = CFrame.new(-55.7999687, 3.84997702, -19.9500103, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
323 | + | a, b, c = c, a, b |
324 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) |
324 | + | |
325 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.81469727e-06, 1.3254528, 3.5490303, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
325 | + | assert(false, "unreachable") |
326 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.499999911, 0.100000001),CFrame = CFrame.new(-55.649971, 3.54997826, -25.7500038, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
326 | + | |
327 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(0.150001526, 0.022854805, -2.11075401, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
327 | + | |
328 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.399999976, 0.100000001),CFrame = CFrame.new(-55.7999687, 3.39394569, -22.9842033, 1, 0, 0, 0, 0.939692855, 0.342019945, 0, -0.342019945, 0.939692855),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
328 | + | local len1 = (c-a):Dot((b-a).unit) |
329 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),C1 = CFrame.new(3.81469727e-06, 0.349468231, 0.64012146, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
329 | + | local len2 = (b-a).magnitude - len1 |
330 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Really black"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999983624, 0.300000012, 0.400000006),CFrame = CFrame.new(-55.7999687, 3.84997654, -19.4500065, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(0.0666667, 0.0666667, 0.0666667),}) |
330 | + | local width = (a + (b-a).unit*len1 - c).magnitude |
331 | - | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.10000002, 1, 1),MeshType = Enum.MeshType.Cylinder,}) |
331 | + | |
332 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.81469727e-06, 1.41227698, 4.04143715, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
332 | + | local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit) |
333 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.100000001, 0.5, 0.100000001),CFrame = CFrame.new(-55.7999687, 3.24997902, -23.2000008, -1, 0, 0, 0, 0, 1.00000012, 0, 1.00000012, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
333 | + | |
334 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0),C1 = CFrame.new(3.81469727e-06, 0.170215845, 0.452602386, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
334 | + | local list = {} |
335 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.399999797, 0.399999917, 3.89999962),CFrame = CFrame.new(-55.7999687, 3.69997907, -22.0500031, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
335 | + | |
336 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 0.81307435, 1.50698853, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
336 | + | local Color = BrickColor.new("Dark grey") |
337 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199999809, 0.0999999121, 0.100000001),CFrame = CFrame.new(-55.7999687, 3.24997902, -25.7500019, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
337 | + | |
338 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, -0.272586584, -2.0586586, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
338 | + | if len1 > 0.01 then |
339 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.0999998972, 0.100000001),CFrame = CFrame.new(-55.649971, 3.84997725, -25.7500038, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
339 | + | local w1 = Instance.new('WedgePart', m) |
340 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
340 | + | game:GetService("Debris"):AddItem(w1,5) |
341 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(0.150001526, 0.318296194, -2.16284752, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
341 | + | w1.Material = "SmoothPlastic" |
342 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.199998379, 0.200000018, 0.400000006),CFrame = CFrame.new(-55.7999687, 3.59997559, -20.0000114, 0, 0, 1, 0, 1.00000012, 0, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
342 | + | w1.FormFactor = 'Custom' |
343 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) |
343 | + | w1.BrickColor = BrickColor.new(Color) |
344 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0),C1 = CFrame.new(3.81469727e-06, 1.07056713, 3.54320145, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
344 | + | w1.Transparency = 1 |
345 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.0999998078, 0.0999998972, 1.70000017),CFrame = CFrame.new(-55.9499702, 3.84997702, -24.8499966, 1, 0, 0, 0, 1, -3.7252903e-07, 0, 3.7252903e-07, 1),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
345 | + | w1.Reflectance = 0 |
346 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(-0.149997711, 0.474580288, -1.27651405, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
346 | + | w1.Material = "SmoothPlastic" |
347 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.5, 0.300000012, 1.89999998),CFrame = CFrame.new(-55.7999687, 3.64997578, -21.1500034, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
347 | + | w1.CanCollide = false |
348 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 0.920113564, 2.40199661, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
348 | + | NoOutline(w1) |
349 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.5, 0.20000115),CFrame = CFrame.new(-55.7999687, 4.16505194, -21.5144958, 1, 0, 0, 0, 0.939692855, 0.342019945, 0, -0.342019945, 0.939692855),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
349 | + | local sz = Vector3.new(0.2, width, len1) |
350 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),C1 = CFrame.new(3.81469727e-06, 1.36407137, 1.95359993, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
350 | + | w1.Size = sz |
351 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 2.10000134),CFrame = CFrame.new(-55.7999687, 4.39997292, -22.5499954, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
351 | + | local sp = Instance.new("SpecialMesh",w1) |
352 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.41561127, 0.893039703, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
352 | + | sp.MeshType = "Wedge" |
353 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.300000012, 0.20000115),CFrame = CFrame.new(-55.7999649, 4.14997578, -23.5, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
353 | + | sp.Scale = Vector3.new(0,1,1) * sz/w1.Size |
354 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C1 = CFrame.new(7.62939453e-06, 1.00444555, 0.00087928772, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
354 | + | w1:BreakJoints() |
355 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 0.100000001),CFrame = CFrame.new(-55.7999687, 4.4999733, -21.6500015, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
355 | + | w1.Anchored = true |
356 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) |
356 | + | w1.Parent = workspace |
357 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.67037416, 1.76199532, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
357 | + | w1.Transparency = 1 |
358 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 0.100000001),CFrame = CFrame.new(-55.7999687, 4.4999733, -21.8499985, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
358 | + | table.insert(Effects,{w1,"Disappear",.01}) |
359 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) |
359 | + | w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2) |
360 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.63564491, 1.56503677, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
360 | + | table.insert(list,w1) |
361 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 0.100000001),CFrame = CFrame.new(-55.7999687, 4.4999733, -22.4499969, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
361 | + | |
362 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) |
362 | + | |
363 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.53145647, 0.974153519, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
363 | + | if len2 > 0.01 then |
364 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 0.100000001),CFrame = CFrame.new(-55.7999687, 4.49997282, -22.6499939, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
364 | + | local w2 = Instance.new('WedgePart', m) |
365 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) |
365 | + | game:GetService("Debris"):AddItem(w2,5) |
366 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.49672723, 0.777194977, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
366 | + | w2.Material = "SmoothPlastic" |
367 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(0.300000012, 0.200000003, 0.100000001),CFrame = CFrame.new(-55.7999687, 4.4999733, -22.8499947, 1, 0, 0, 0, 1.00000012, -3.87430191e-07, 0, 3.87430191e-07, 1.00000012),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.4, 0.8),}) |
367 | + | w2.FormFactor = 'Custom' |
368 | - | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) |
368 | + | w2.BrickColor = BrickColor.new(Color) |
369 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 3.7252903e-07, 0, -3.7252903e-07, 1),C1 = CFrame.new(3.81469727e-06, 1.46199775, 0.58023262, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
369 | + | w2.Transparency = 1 |
370 | - | Part = New("Part",LuvGun,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.SmoothPlastic,Size = Vector3.new(1.90000045, 0.100000001, 0.0999998972),CFrame = CFrame.new(-55.9999657, 3.44997501, -21.1500034, 0, -1, 0, 0, 0, 1.00000012, -1.00000012, 0, 0),CanCollide = false,BackSurface = Enum.SurfaceType.SmoothNoOutlines,BottomSurface = Enum.SurfaceType.SmoothNoOutlines,FrontSurface = Enum.SurfaceType.SmoothNoOutlines,LeftSurface = Enum.SurfaceType.SmoothNoOutlines,RightSurface = Enum.SurfaceType.SmoothNoOutlines,TopSurface = Enum.SurfaceType.SmoothNoOutlines,Color = Color3.new(1, 0.596078, 0.862745),}) |
370 | + | w2.Reflectance = 0 |
371 | - | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) |
371 | + | w2.Material = "SmoothPlastic" |
372 | - | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0, 0, -1, -1, 0, 0, 0, 1, 0),C1 = CFrame.new(-0.199993134, 0.723151445, 2.43672752, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) |
372 | + | w2.CanCollide = false |
373 | - | --------------------------- |
373 | + | NoOutline(w2) |
374 | - | function rayCast(Position, Direction, Range, Ignore) |
374 | + | local sz = Vector3.new(0.2, width, len2) |
375 | - | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) |
375 | + | w2.Size = sz |
376 | local sp = Instance.new("SpecialMesh",w2) | |
377 | sp.MeshType = "Wedge" | |
378 | - | function FindNearestTorso(Position, Distance, SinglePlayer) |
378 | + | sp.Scale = Vector3.new(0,1,1) * sz/w2.Size |
379 | - | if SinglePlayer then |
379 | + | w2:BreakJoints() |
380 | - | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance |
380 | + | w2.Anchored = true |
381 | w2.Parent = workspace | |
382 | - | local List = {} |
382 | + | w2.Transparency = 1 |
383 | - | for i, v in pairs(workspace:GetDescendants()) do |
383 | + | table.insert(Effects,{w2,"Disappear",.01}) |
384 | - | if v:IsA("Model") then |
384 | + | w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2) |
385 | - | if v:findFirstChild("Head") then |
385 | + | table.insert(list,w2) |
386 | - | if v ~= chara then |
386 | + | |
387 | - | if (v.Head.Position - Position).magnitude <= Distance then |
387 | + | return unpack(list) |
388 | - | table.insert(List, v) |
388 | + | |
389 | ||
390 | ||
391 | so = function(id,par,vol,pit) | |
392 | coroutine.resume(coroutine.create(function() | |
393 | local sou = Instance.new("Sound",par or workspace) | |
394 | - | return List |
394 | + | sou.Volume=vol |
395 | sou.Pitch=pit or 1 | |
396 | sou.SoundId=id | |
397 | - | EffectModel = Create("Model"){ |
397 | + | swait() |
398 | - | Parent = chara, |
398 | + | sou:play() |
399 | - | Name = "Effects", |
399 | + | game:GetService("Debris"):AddItem(sou,6) |
400 | end)) | |
401 | end | |
402 | - | --Effect Functions-- |
402 | + | |
403 | - | Effects = { |
403 | + | function clerp(a,b,t) |
404 | local qa = {QuaternionFromCFrame(a)} | |
405 | - | Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor) |
405 | + | local qb = {QuaternionFromCFrame(b)} |
406 | - | local p = Instance.new("Part",EffectModel) |
406 | + | local ax, ay, az = a.x, a.y, a.z |
407 | - | p.BrickColor = BrickColor.new(colour) |
407 | + | local bx, by, bz = b.x, b.y, b.z |
408 | - | p.Size = partsize |
408 | + | local _t = 1-t |
409 | - | p.Anchored = true |
409 | + | return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) |
410 | - | p.CanCollide = false |
410 | + | end |
411 | - | p.Material = matr |
411 | + | |
412 | - | p.CFrame = cf |
412 | + | function QuaternionFromCFrame(cf) |
413 | - | if inverse == true then |
413 | + | local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() |
414 | - | p.Transparency = 1 |
414 | + | local trace = m00 + m11 + m22 |
415 | if trace > 0 then | |
416 | - | p.Transparency = 0 |
416 | + | local s = math.sqrt(1 + trace) |
417 | local recip = 0.5/s | |
418 | - | local m = Instance.new("BlockMesh",p) |
418 | + | return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 |
419 | - | m.Scale = meshstart |
419 | + | else |
420 | - | coroutine.wrap(function() |
420 | + | local i = 0 |
421 | - | for i=0,1,factor do |
421 | + | if m11 > m00 then |
422 | i = 1 | |
423 | - | if inverse == true then |
423 | + | |
424 | - | p.Transparency = 1-i |
424 | + | if m22 > (i == 0 and m00 or m11) then |
425 | i = 2 | |
426 | - | p.Transparency = i |
426 | + | end |
427 | if i == 0 then | |
428 | - | m.Scale = m.Scale + meshadd |
428 | + | local s = math.sqrt(m00-m11-m22+1) |
429 | - | if spin == true then |
429 | + | local recip = 0.5/s |
430 | - | p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) |
430 | + | return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip |
431 | elseif i == 1 then | |
432 | local s = math.sqrt(m11-m22-m00+1) | |
433 | - | p:Destroy() |
433 | + | local recip = 0.5/s |
434 | - | end)() |
434 | + | return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip |
435 | - | return p |
435 | + | elseif i == 2 then |
436 | - | end, |
436 | + | local s = math.sqrt(m22-m00-m11+1) |
437 | local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip | |
438 | - | Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) |
438 | + | end |
439 | - | local p = Instance.new("Part",EffectModel) |
439 | + | end |
440 | - | p.BrickColor = BrickColor.new(colour) |
440 | + | |
441 | - | p.Size = partsize |
441 | + | |
442 | - | p.Anchored = true |
442 | + | function QuaternionToCFrame(px, py, pz, x, y, z, w) |
443 | - | p.CanCollide = false |
443 | + | local xs, ys, zs = x + x, y + y, z + z |
444 | - | p.Material = matr |
444 | + | local wx, wy, wz = w*xs, w*ys, w*zs |
445 | - | p.CFrame = cf |
445 | + | local xx = x*xs |
446 | - | if inverse == true then |
446 | + | local xy = x*ys |
447 | - | p.Transparency = 1 |
447 | + | local xz = x*zs |
448 | local yy = y*ys | |
449 | - | p.Transparency = 0 |
449 | + | local yz = y*zs |
450 | local zz = z*zs | |
451 | - | local m = Instance.new("SpecialMesh",p) |
451 | + | return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) |
452 | - | m.MeshType = "Sphere" |
452 | + | |
453 | - | m.Scale = meshstart |
453 | + | |
454 | - | coroutine.wrap(function() |
454 | + | function QuaternionSlerp(a, b, t) |
455 | - | for i=0,1,factor do |
455 | + | local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] |
456 | local startInterp, finishInterp; | |
457 | - | if inverse == true then |
457 | + | if cosTheta >= 0.0001 then |
458 | - | p.Transparency = 1-i |
458 | + | if (1 - cosTheta) > 0.0001 then |
459 | local theta = math.acos(cosTheta) | |
460 | - | p.Transparency = i |
460 | + | local invSinTheta = 1/math.sin(theta) |
461 | startInterp = math.sin((1-t)*theta)*invSinTheta | |
462 | - | m.Scale = m.Scale + meshadd |
462 | + | finishInterp = math.sin(t*theta)*invSinTheta |
463 | else | |
464 | - | p:Destroy() |
464 | + | startInterp = 1-t |
465 | - | end)() |
465 | + | finishInterp = t |
466 | - | return p |
466 | + | end |
467 | - | end, |
467 | + | else |
468 | if (1+cosTheta) > 0.0001 then | |
469 | - | Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) |
469 | + | local theta = math.acos(-cosTheta) |
470 | - | local p = Instance.new("Part",EffectModel) |
470 | + | local invSinTheta = 1/math.sin(theta) |
471 | - | p.BrickColor = BrickColor.new(colour) |
471 | + | startInterp = math.sin((t-1)*theta)*invSinTheta |
472 | - | p.Size = partsize |
472 | + | finishInterp = math.sin(t*theta)*invSinTheta |
473 | - | p.Anchored = true |
473 | + | else |
474 | - | p.CanCollide = false |
474 | + | startInterp = t-1 |
475 | - | p.Material = matr |
475 | + | finishInterp = t |
476 | - | p.CFrame = cf |
476 | + | end |
477 | - | if inverse == true then |
477 | + | end |
478 | - | p.Transparency = 1 |
478 | + | return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp |
479 | end | |
480 | - | p.Transparency = 0 |
480 | + | |
481 | function rayCast(Pos, Dir, Max, Ignore) -- Origin Position , Direction, MaxDistance , IgnoreDescendants | |
482 | - | local m = Instance.new("CylinderMesh",p) |
482 | + | return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) |
483 | - | m.Scale = meshstart |
483 | + | end |
484 | - | coroutine.wrap(function() |
484 | + | |
485 | - | for i=0,1,factor do |
485 | + | Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock) |
486 | if hit.Parent==nil then | |
487 | - | if inverse == true then |
487 | + | return |
488 | - | p.Transparency = 1-i |
488 | + | end |
489 | h=hit.Parent:FindFirstChild("Humanoid") | |
490 | - | p.Transparency = i |
490 | + | for _,v in pairs(hit.Parent:children()) do |
491 | if v:IsA("Humanoid") then | |
492 | - | m.Scale = m.Scale + meshadd |
492 | + | h=v |
493 | end | |
494 | - | p:Destroy() |
494 | + | end |
495 | - | end)() |
495 | + | if hit.Parent.Parent:FindFirstChild("Torso")~=nil then |
496 | - | return p |
496 | + | h=hit.Parent.Parent:FindFirstChild("Humanoid") |
497 | - | end, |
497 | + | end |
498 | if hit.Parent.className=="Hat" then | |
499 | - | Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor) |
499 | + | hit=hit.Parent.Parent:findFirstChild("Head") |
500 | - | local p = Instance.new("Part",EffectModel) |
500 | + | end |
501 | - | p.BrickColor = BrickColor.new(colour) |
501 | + | if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then |
502 | - | p.Size = Vector3.new() |
502 | + | if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end |
503 | - | p.Anchored = true |
503 | + | --[[ if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then |
504 | - | p.CanCollide = false |
504 | + | return |
505 | - | p.CFrame = cf |
505 | + | end]] |
506 | - | if inverse == true then |
506 | + | -- hs(hit,1.2) |
507 | - | p.Transparency = 1 |
507 | + | c=Instance.new("ObjectValue") |
508 | c.Name="creator" | |
509 | - | p.Transparency = 0 |
509 | + | c.Value=game:service("Players").owner |
510 | c.Parent=h | |
511 | - | local m = Instance.new("SpecialMesh",p) |
511 | + | game:GetService("Debris"):AddItem(c,.5) |
512 | - | m.MeshId = "rbxassetid://20329976" |
512 | + | Damage=math.random(minim,maxim) |
513 | - | m.Scale = meshstart |
513 | + | -- h:TakeDamage(Damage) |
514 | - | coroutine.wrap(function() |
514 | + | blocked=false |
515 | - | for i=0,1,factor do |
515 | + | block=hit.Parent:findFirstChild("Block") |
516 | if block~=nil then | |
517 | - | if inverse == true then |
517 | + | print(block.className) |
518 | - | p.Transparency = 1-i |
518 | + | if block.className=="NumberValue" then |
519 | if block.Value>0 then | |
520 | - | p.Transparency = i |
520 | + | blocked=true |
521 | if decreaseblock==nil then | |
522 | - | m.Scale = m.Scale + meshadd |
522 | + | block.Value=block.Value-1 |
523 | - | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) |
523 | + | end |
524 | end | |
525 | - | p:Destroy() |
525 | + | end |
526 | - | end)() |
526 | + | if block.className=="IntValue" then |
527 | - | return p |
527 | + | if block.Value>0 then |
528 | - | end, |
528 | + | blocked=true |
529 | if decreaseblock~=nil then | |
530 | - | Ring = function(cf,meshstart,meshadd,colour,inverse,factor) |
530 | + | block.Value=block.Value-1 |
531 | - | local p = Instance.new("Part",EffectModel) |
531 | + | end |
532 | - | p.BrickColor = BrickColor.new(colour) |
532 | + | end |
533 | - | p.Size = Vector3.new() |
533 | + | end |
534 | - | p.Anchored = true |
534 | + | end |
535 | - | p.CanCollide = false |
535 | + | if blocked==false then |
536 | - | p.CFrame = cf |
536 | + | -- h:TakeDamage(Damage) |
537 | - | if inverse == true then |
537 | + | h.Health=h.Health-Damage |
538 | - | p.Transparency = 1 |
538 | + | showDamage(hit.Parent,Damage,.5,BrickColor.new("Dark stone grey")) |
539 | else | |
540 | - | p.Transparency = 0 |
540 | + | h.Health=h.Health-(Damage/2) |
541 | showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue")) | |
542 | - | local m = Instance.new("SpecialMesh",p) |
542 | + | end |
543 | - | m.MeshId = "rbxassetid://3270017" |
543 | + | if Type=="Knockdown" then |
544 | - | m.Scale = meshstart |
544 | + | hum=hit.Parent.Humanoid |
545 | - | coroutine.wrap(function() |
545 | + | hum.PlatformStand=true |
546 | - | for i=0,1,factor do |
546 | + | coroutine.resume(coroutine.create(function(HHumanoid) |
547 | swait(1) | |
548 | - | if inverse == true then |
548 | + | HHumanoid.PlatformStand=false |
549 | - | p.Transparency = 1-i |
549 | + | end),hum) |
550 | local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit | |
551 | - | p.Transparency = i |
551 | + | --hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0) |
552 | local bodvol=Instance.new("BodyVelocity") | |
553 | - | m.Scale = m.Scale + meshadd |
553 | + | bodvol.velocity=angle*knockback |
554 | bodvol.P=5000 | |
555 | - | p:Destroy() |
555 | + | bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) |
556 | - | end)() |
556 | + | bodvol.Parent=hit |
557 | - | return p |
557 | + | rl=Instance.new("BodyAngularVelocity") |
558 | - | end, |
558 | + | rl.P=3000 |
559 | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 | |
560 | - | Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor) |
560 | + | rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10)) |
561 | - | local p = Instance.new("Part",EffectModel) |
561 | + | rl.Parent=hit |
562 | - | p.BrickColor = BrickColor.new(colour) |
562 | + | game:GetService("Debris"):AddItem(bodvol,.5) |
563 | - | p.Size = Vector3.new() |
563 | + | game:GetService("Debris"):AddItem(rl,.5) |
564 | - | p.Anchored = true |
564 | + | elseif Type=="Normal" then |
565 | - | p.CanCollide = false |
565 | + | vp=Instance.new("BodyVelocity") |
566 | - | p.CFrame = cf |
566 | + | vp.P=500 |
567 | - | if inverse == true then |
567 | + | vp.maxForce=Vector3.new(math.huge,0,math.huge) |
568 | - | p.Transparency = 1 |
568 | + | -- vp.velocity=Character.Torso.CFrame.lookVector*Knockback |
569 | if KnockbackType==1 then | |
570 | - | p.Transparency = 0 |
570 | + | vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05 |
571 | elseif KnockbackType==2 then | |
572 | - | local m = Instance.new("SpecialMesh",p) |
572 | + | vp.velocity=Property.CFrame.lookVector*knockback |
573 | - | m.MeshId = meshid |
573 | + | end |
574 | - | m.TextureId = textid |
574 | + | if knockback>0 then |
575 | - | m.Scale = meshstart |
575 | + | vp.Parent=hit.Parent.Torso |
576 | - | coroutine.wrap(function() |
576 | + | end |
577 | - | for i=0,1,factor do |
577 | + | game:GetService("Debris"):AddItem(vp,.5) |
578 | elseif Type=="Up" then | |
579 | - | if inverse == true then |
579 | + | local bodyVelocity=Instance.new("BodyVelocity") |
580 | - | p.Transparency = 1-i |
580 | + | bodyVelocity.velocity=vt(0,60,0) |
581 | bodyVelocity.P=5000 | |
582 | - | p.Transparency = i |
582 | + | bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003) |
583 | bodyVelocity.Parent=hit | |
584 | - | m.Scale = m.Scale + meshadd |
584 | + | game:GetService("Debris"):AddItem(bodyVelocity,1) |
585 | - | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) |
585 | + | rl=Instance.new("BodyAngularVelocity") |
586 | rl.P=3000 | |
587 | - | p:Destroy() |
587 | + | rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000 |
588 | - | end)() |
588 | + | rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) |
589 | - | return p |
589 | + | rl.Parent=hit |
590 | - | end, |
590 | + | game:GetService("Debris"):AddItem(rl,.5) |
591 | elseif Type=="Snare" then | |
592 | - | Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor) |
592 | + | bp=Instance.new("BodyPosition") |
593 | - | local p = Instance.new("Part",EffectModel) |
593 | + | bp.P=2000 |
594 | - | p.BrickColor = BrickColor.new(colour) |
594 | + | bp.D=100 |
595 | - | p.Size = partsize |
595 | + | bp.maxForce=Vector3.new(math.huge,math.huge,math.huge) |
596 | - | p.Anchored = true |
596 | + | bp.position=hit.Parent.Torso.Position |
597 | - | p.CanCollide = false |
597 | + | bp.Parent=hit.Parent.Torso |
598 | - | p.Material = matr |
598 | + | game:GetService("Debris"):AddItem(bp,1) |
599 | - | p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) |
599 | + | elseif Type=="Target" then |
600 | - | if inverse == true then |
600 | + | if Targetting==false then |
601 | - | p.Transparency = 1 |
601 | + | ZTarget=hit.Parent.Torso |
602 | coroutine.resume(coroutine.create(function(Part) | |
603 | - | p.Transparency = 0 |
603 | + | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) |
604 | swait(5) | |
605 | - | local m = Instance.new("SpecialMesh",p) |
605 | + | so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) |
606 | - | m.MeshType = "Sphere" |
606 | + | end),ZTarget) |
607 | - | m.Scale = meshstart |
607 | + | TargHum=ZTarget.Parent:findFirstChild("Humanoid") |
608 | - | coroutine.wrap(function() |
608 | + | targetgui=Instance.new("BillboardGui") |
609 | - | for i=0,1,factor do |
609 | + | targetgui.Parent=ZTarget |
610 | targetgui.Size=UDim2.new(10,100,10,100) | |
611 | - | if inverse == true then |
611 | + | targ=Instance.new("ImageLabel") |
612 | - | p.Transparency = 1-i |
612 | + | targ.Parent=targetgui |
613 | targ.BackgroundTransparency=1 | |
614 | - | p.Transparency = i |
614 | + | targ.Image="rbxassetid://4834067" |
615 | targ.Size=UDim2.new(1,0,1,0) | |
616 | - | m.Scale = m.Scale + meshadd |
616 | + | cam.CameraType="Scriptable" |
617 | - | p.CFrame = p.CFrame * CFrame.new(0,move,0) |
617 | + | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) |
618 | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) | |
619 | - | p:Destroy() |
619 | + | workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) |
620 | - | end)() |
620 | + | Targetting=true |
621 | - | return p |
621 | + | RocketTarget=ZTarget |
622 | - | end, |
622 | + | for i=1,Property do |
623 | --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do | |
624 | if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then | |
625 | swait() | |
626 | - | function GetDudesTorso(c) |
626 | + | end |
627 | - | local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:findFirstChild("LowerTorso") or c:findFirstChild("Left Arm") or c:findFirstChild("Right Arm") or c:findFirstChild("Left Leg") or c:findFirstChild("Right Leg") or c:findFirstChild("Head")) |
627 | + | --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100) |
628 | - | if torsy ~= nil then |
628 | + | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position) |
629 | - | return torsy |
629 | + | dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z) |
630 | cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0) | |
631 | end | |
632 | Targetting=false | |
633 | - | function BodyVel(part,faws) |
633 | + | RocketTarget=nil |
634 | - | local bodyvel = Instance.new("BodyVelocity",part) |
634 | + | targetgui.Parent=nil |
635 | - | local pep = 10000000 |
635 | + | cam.CameraType="Custom" |
636 | - | bodyvel.P = pep |
636 | + | end |
637 | - | bodyvel.MaxForce = Vector3.new(pep,pep,pep) |
637 | + | end |
638 | - | bodyvel.Velocity = faws |
638 | + | debounce=Instance.new("BoolValue") |
639 | - | debby:AddItem(bodyvel,.2) |
639 | + | debounce.Name="DebounceHit" |
640 | debounce.Parent=hit.Parent | |
641 | debounce.Value=true | |
642 | - | function Dmg(dude) |
642 | + | game:GetService("Debris"):AddItem(debounce,Delay) |
643 | - | if dude and dude ~= chara and dude.Name ~= "plytalent" and damagemode =="heal" then |
643 | + | c=Instance.new("ObjectValue") |
644 | - | dude:FindFirstChildOfClass("Humanoid").MaxHealth = math.huge |
644 | + | c.Name="creator" |
645 | - | dude:FindFirstChildOfClass("Humanoid").Health = math.huge |
645 | + | c.Value=Player |
646 | - | elseif dude and dude ~= chara and dude.Name ~= "plytalent" and damagemode == "damage" then |
646 | + | c.Parent=h |
647 | - | dude:FindFirstChildOfClass("Humanoid").MaxHealth = 100 |
647 | + | game:GetService("Debris"):AddItem(c,.5) |
648 | - | dude:FindFirstChildOfClass("Humanoid").Health = 50 |
648 | + | CRIT=false |
649 | - | elseif dude and dude ~= chara and dude.Name ~= "plytalent" and damagemode == "del char" then |
649 | + | hitDeb=true |
650 | - | dude.Parent = nil |
650 | + | AttackPos=6 |
651 | - | elseif dude and dude~= chara and dude.Name ~= "plytalent" and damagemode == "reload char" then |
651 | + | end |
652 | - | if game:GetService("Players")[dude.name]then |
652 | + | |
653 | - | game:GetService("Players")[dude.name]:LoadCharacter() |
653 | + | |
654 | showDamage=function(Char,Dealt,du,Color) | |
655 | - | elseif dude and dude~= chara and dude.Name ~= "plytalent" and damagemode == "none" then |
655 | + | m=Instance.new("Model") |
656 | - | --if dude:FindFirstChild("TURAPPU") then return end |
656 | + | m.Name=tostring(Dealt) |
657 | - | --local debounce = Instance.new("BoolValue",dude) |
657 | + | h=Instance.new("Humanoid") |
658 | - | --debounce.Name = "TURAPPU" |
658 | + | h.Health=0 |
659 | - | coroutine.wrap(function() |
659 | + | h.MaxHealth=0 |
660 | - | --local torsy = GetDudesTorso(dude) |
660 | + | h.Parent=m |
661 | - | --if torsy then |
661 | + | c=Instance.new("Part") |
662 | - | --local b = Instance.new("Part",dude) |
662 | + | c.Transparency=1 |
663 | - | --b.BrickColor = BrickColor.new("Pink") |
663 | + | c.BrickColor=Color |
664 | - | --b.Size = Vector3.new(.1,.1,.1) |
664 | + | c.Name="Head" |
665 | - | --b.CanCollide = false |
665 | + | c.TopSurface=0 |
666 | - | --b.Transparency = 1 |
666 | + | c.BottomSurface=0 |
667 | - | --b.Material = "Neon" |
667 | + | c.formFactor="Plate" |
668 | - | --b:BreakJoints() |
668 | + | c.Size=Vector3.new(1,.4,1) |
669 | - | --so(113952851,b,1,3) |
669 | + | ms=Instance.new("CylinderMesh") |
670 | - | --local bw = Instance.new("Weld",b) |
670 | + | ms.Scale=Vector3.new(.8,.8,.8) |
671 | - | --bw.Part0 = b |
671 | + | if CRIT==true then |
672 | - | --bw.Part1 = torsy |
672 | + | ms.Scale=Vector3.new(1,1.25,1) |
673 | - | --local bm = Instance.new("SpecialMesh",b) |
673 | + | end |
674 | - | --bm.MeshType = "Sphere" |
674 | + | ms.Parent=c |
675 | - | --bm.Scale = Vector3.new() |
675 | + | c.Reflectance=0 |
676 | - | --for i=0,1,.05 do |
676 | + | Instance.new("BodyGyro").Parent=c |
677 | - | --swait() |
677 | + | c.Parent=m |
678 | - | --b.Transparency = 1-i |
678 | + | if Char:findFirstChild("Head")~=nil then |
679 | - | --bm.Scale = Vector3.new(65*i,65*i,65*i) |
679 | + | c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0)) |
680 | - | --end |
680 | + | elseif Char.Parent:findFirstChild("Head")~=nil then |
681 | - | --coroutine.wrap(function() |
681 | + | c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0)) |
682 | - | --swait(20) |
682 | + | end |
683 | - | --for i=0,1,.05 do |
683 | + | f=Instance.new("BodyPosition") |
684 | - | --swait() |
684 | + | f.P=2000 |
685 | - | --b.Transparency = i |
685 | + | f.D=100 |
686 | - | --bm.Scale = Vector3.new(65+100*i,65+100*i,65+100*i) |
686 | + | f.maxForce=Vector3.new(math.huge,math.huge,math.huge) |
687 | - | --end |
687 | + | f.position=c.Position+Vector3.new(0,3,0) |
688 | - | --b:Destroy() |
688 | + | f.Parent=c |
689 | - | --end)() |
689 | + | game:GetService("Debris"):AddItem(m,.5+du) |
690 | - | --end |
690 | + | c.CanCollide=false |
691 | - | --for i,v in pairs(dude:children()) do |
691 | + | m.Parent=workspace |
692 | - | --if v:IsA("Clothing") or v:IsA("BodyColors") or v:IsA("Accoutrement") then v:Destroy() end |
692 | + | c.CanCollide=false |
693 | - | --end |
693 | + | |
694 | - | --local hedcol = dude:FindFirstChild("Head").BrickColor |
694 | + | |
695 | - | --local bcols = Instance.new("BodyColors",dude) |
695 | + | handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Dark stone grey","Handle",Vector3.new(0.232000008, 0.812000036, 0.34799999)) |
696 | - | --bcols.Name = "NeoCols" |
696 | + | handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0146102905, -0.318485737, 0.839184284, 1.00000632, -4.93172472e-008, -0.000935511896, -0.000935515272, -6.51810888e-006, -1.00000536, 4.32263612e-008, 0.999999762, -6.51843266e-006)) |
697 | - | --bcols.HeadColor = hedcol |
697 | + | Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,1,"Dark stone grey","Hitbox",Vector3.new(5.11999989, 1.03200006, 0.800000012)) |
698 | - | --bcols.LeftArmColor = hedcol |
698 | + | Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.26914215, -2.28439808, -0.0138931274, 5.5279628e-008, 0.000357966754, -0.999999583, -0.000903482374, 1.00000536, 0.000357964687, 1.00000632, 0.000903477019, 3.78699411e-007)) |
699 | - | --bcols.RightArmColor = hedcol |
699 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.463999987, 0.200000003, 0.232000008)) |
700 | - | --bcols.TorsoColor = hedcol |
700 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0174179077, -4.69187212, -0.754995346, -1.0000025, 0.000546428899, -0.00286973943, -0.00286977179, -2.13581079e-005, 0.999995589, 0.000546361669, 1.00000572, 2.29263151e-005)) |
701 | - | --bcols.LeftLegColor = hedcol |
701 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
702 | - | --bcols.RightLegColor = hedcol |
702 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599992, 0.579999983, 0.927999973)) |
703 | - | --local Heiru = nil |
703 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00373840332, -2.08894491, 2.90544128, 1.00000536, 0.00170327828, -1.6089453e-007, -0.00170328422, 1.00000441, 1.36183207e-005, 1.84098781e-007, -1.36177896e-005, 0.999999642)) |
704 | - | --local hacho = math.random(1,6) |
704 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
705 | - | --if hacho == 1 then |
705 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.231999993)) |
706 | - | --Heiru = New("Part",dude,"Heiru",{Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4999847, 3.29998803, -42.2000351, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
706 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.79949474, -0.180219173, -0.227863312, -0.00172967673, 1.00001013, 2.24112646e-005, 6.46309104e-007, 2.24120486e-005, -0.999999523, -1.00001204, -0.00172966474, -6.85080067e-007)) |
707 | - | --local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.075000003, 0.0599999987, 0.0599999987),MeshId = "rbxassetid://506240548",MeshType = Enum.MeshType.FileMesh,}) |
707 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
708 | - | --local Werudo = New("ManualWeld",Heiru,"Weld",{Part0 = Heiru,Part1 = dude:FindFirstChild("Head"),C1 = CFrame.new(-7.62939453e-06, -1.19999862, 0.200000763, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
708 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.200000003, 0.696000099)) |
709 | - | --elseif hacho == 2 then |
709 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.74123478, -0.409946442, 4.40184164, -0.00107316044, 1.00000525, 1.4551938e-005, 1.0000062, 0.00107315509, 7.93131278e-007, 7.77512412e-007, 1.45525482e-005, -0.999999642)) |
710 | - | --Heiru = New("Part",dude,"Heiru",{Size = Vector3.new(0.5, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.5499878, 4.29998732, -42.1000366, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
710 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
711 | - | --local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995),MeshId = "rbxassetid://398987591",MeshType = Enum.MeshType.FileMesh,}) |
711 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.69599998, 0.579999983, 0.927999914)) |
712 | - | --local Werudo = New("ManualWeld",Heiru,"Weld",{Part0 = Heiru,Part1 = dude:FindFirstChild("Head"),C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0.0499954224, -0.199999332, 0.100002289, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
712 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000267028809, -0.582561016, -1.50176382, 1.00001347, -3.86033207e-007, -3.92623845e-009, 3.77418473e-007, 1.00001156, 2.45045476e-006, 3.94029254e-009, -2.44983767e-006, 0.999999285)) |
713 | - | --elseif hacho == 3 then |
713 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
714 | - | --Heiru = New("Part",dude,"Heiru",{Size = Vector3.new(0.5, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4499893, 3.89998746, -42.1000366, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
714 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00412750244, 1.45268583, -1.05011797, 1.00001216, 0.00172310648, 2.03311345e-007, 0.00172311824, -1.00001025, 6.49886579e-006, 2.14497248e-007, -6.49923504e-006, -0.999999285)) |
715 | - | --local HairMesh = New("SpecialMesh",Heiru,"Mesh",{MeshId = "rbxassetid://164382853",MeshType = Enum.MeshType.FileMesh,}) |
715 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
716 | - | --local Werudo = New("ManualWeld",Heiru,"Weld",{Part0 = Heiru,Part1 = dude:FindFirstChild("Head"),C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(-0.0500030518, -0.599999189, 0.100002289, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
716 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(3.13199997, 0.231999978, 0.69599998)) |
717 | - | --elseif hacho == 4 then |
717 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.80415058, -0.524322987, -0.00103759766, 9.72363068e-007, 2.15515029e-005, -0.999999285, -0.00172366935, 1.00001025, 2.15501732e-005, 1.00001216, 0.00172365736, 1.0095107e-006)) |
718 | - | --Heiru = New("Part",dude,"Heiru",{Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4999771, 2.79998851, -43.3000183, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
718 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.463999987, 0.231999993, 0.232000008)) |
719 | - | --local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.109999999, 0.0799999982, 0.0850000009),MeshId = "rbxassetid://561963999",MeshType = Enum.MeshType.FileMesh,}) |
719 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00213241577, 0.754931927, -3.58990145, -1.00000894, 0.00341619202, 7.19290369e-007, -0.00341618108, -1.00000799, -2.25470994e-005, 6.42287603e-007, -2.25490967e-005, 0.999999642)) |
720 | - | --local Werudo = New("ManualWeld",Heiru,"Weld",{Part0 = Heiru,Part1 = dude:FindFirstChild("Head"),C1 = CFrame.new(-1.52587891e-05, -1.69999814, 1.29998398, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
720 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
721 | - | --elseif hacho == 5 then |
721 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.231999993)) |
722 | - | --Heiru = New("Part",dude,"Heiru",{Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4999847, 3.69998765, -42.600029, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
722 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.79969883, -0.180217266, 0.23601532, -0.00172980642, 1.00001013, 2.24137202e-005, 6.46412275e-007, 2.24145024e-005, -0.999999285, -1.00001204, -0.00172979443, -6.85189946e-007)) |
723 | - | --local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.0450000018, 0.0450000018, 0.0450000018),MeshId = "rbxassetid://487000462",MeshType = Enum.MeshType.FileMesh,}) |
723 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
724 | - | --local Werudo = New("ManualWeld",Heiru,"Weld",{Part0 = Heiru,Part1 = dude:FindFirstChild("Head"),C1 = CFrame.new(-7.62939453e-06, -0.799998999, 0.599994659, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
724 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
725 | - | --elseif hacho == 6 then |
725 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00409317017, 1.45303392, 2.21011066, -1.00001216, -0.00168438489, -1.55491065e-007, 0.00168439688, -1.00001025, 6.03345643e-006, -1.6564087e-007, 6.03390299e-006, 0.999999285)) |
726 | - | --Heiru = New("Part",dude,"Heiru",{Size = Vector3.new(0.5, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.5499802, 3.29998803, -42.0000381, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
726 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
727 | - | --local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.0649999976, 0.0599999987, 0.0599999987),MeshId = "rbxassetid://437152207",MeshType = Enum.MeshType.FileMesh,}) |
727 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.928000152, 0.34799999)) |
728 | - | --local Werudo = New("ManualWeld",Heiru,"Weld",{Part0 = Heiru,Part1 = dude:FindFirstChild("Head"),C1 = CFrame.new(0.049987793, -1.19999862, 3.81469727e-06, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
728 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0164337158, 0.00995254517, 0.378734589, 1.00000417, -0.000275396451, 0.000659934303, -0.000271914061, 0.707111299, 0.70709461, -0.000661380531, -0.707101762, 0.707109511)) |
729 | - | --end |
729 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.463999957, 0.452400029)) |
730 | - | --local haircol = {"Pink","Baby blue","Magenta","Brown","Black","Really black","White","CGA brown","Cool yellow"} |
730 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0109825134, -0.0555400848, 0.707753658, 1.00001204, 0.00170851196, -1.88033137e-005, -0.0017085236, 1.00001013, 1.71195006e-005, 1.88328195e-005, -1.70869171e-005, 0.999999285)) |
731 | - | --Heiru.BrickColor = BrickColor.new(haircol[math.random(1,#haircol)]) |
731 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.812000036, 0.200000003, 0.200000003)) |
732 | - | --local ercho = math.random(1,8) |
732 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.96466255, -0.414768219, 0.721370459, -0.00134572294, 0.500003576, 0.866025984, 1.00001371, 0.000263436057, 0.00140178087, 0.000472741085, 0.866039276, -0.499996334)) |
733 | - | --if ercho == 1 then |
733 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
734 | - | --local EIRO = New("Part",dude,"EIRO",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4999924, 4.59999943, -42.0000229, -1, -1.50263801e-10, 0, 1.50264662e-10, 0.999993861, -1.78813892e-07, 0, 1.78812812e-07, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
734 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.60000002384186,"Pastel Blue","Part",Vector3.new(2.31999993, 0.34799999, 0.200000003)) |
735 | - | --local Mesh = New("SpecialMesh",EIRO,"Mesh",{Scale = Vector3.new(1.04999995, 1, 1.04999995),MeshId = "rbxassetid://10871984",TextureId = "rbxassetid://10871968",MeshType = Enum.MeshType.FileMesh,}) |
735 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.2697916, -1.39367867, 0.285621643, 9.60484385e-007, 2.34255967e-005, -0.999999404, -0.00169333746, 1.00001848, 2.34244617e-005, 1.00002027, 0.00169331662, 1.00015268e-006)) |
736 | - | --local Weld = New("ManualWeld",EIRO,"Weld",{Part0 = EIRO,Part1 = dude:FindFirstChild("Head"),C0 = CFrame.new(0, 0, 0, -1, 1.50264662e-10, 0, -1.50263801e-10, 0.999993861, 1.78812812e-07, 0, -1.78813892e-07, -1),C1 = CFrame.new(0, 0.100012779, -1.14440918e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
736 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
737 | - | --elseif ercho == 2 then |
737 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999904, 0.231999978, 0.69599998)) |
738 | - | --local EIRO = New("Part",dude,"EIRO",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4999924, 5.39999866, -42.0000229, -1, -1.50263801e-10, 0, 1.50264662e-10, 0.999993861, -1.78813892e-07, 0, 1.78812812e-07, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
738 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.02214336, -0.756259918, -0.00161361694, 9.72405815e-007, 2.15511936e-005, -0.999999046, -0.00172374037, 1.00001574, 2.15500022e-005, 1.00001884, 0.00172372279, 1.00955594e-006)) |
739 | - | --local Mesh = New("SpecialMesh",EIRO,"Mesh",{MeshId = "rbxassetid://1072759",TextureId = "rbxassetid://1072760",MeshType = Enum.MeshType.FileMesh,}) |
739 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.812000036, 0.34799999)) |
740 | - | --local Weld = New("ManualWeld",EIRO,"Weld",{Part0 = EIRO,Part1 = dude:FindFirstChild("Head"),C0 = CFrame.new(0, 0, 0, -1, 1.50264662e-10, 0, -1.50263801e-10, 0.999993861, 1.78812812e-07, 0, -1.78813892e-07, -1),C1 = CFrame.new(0, 0.900012016, -1.14440918e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
740 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0164260864, 0.299938202, -0.537542105, 1.00001764, -0.000275420141, 0.000659916259, -0.000271896773, 0.707119524, 0.707094133, -0.000661385478, -0.707109988, 0.707109034)) |
741 | - | --elseif ercho == 3 then |
741 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.579999983, 0.695999742, 0.463999987)) |
742 | - | --local EIRO = New("Part",dude,"EIRO",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.300000012, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.5499954, 5.29999876, -42.0000229, -1, -1.50263801e-10, 0, 1.50264662e-10, 0.999993861, -1.78813892e-07, 0, 1.78812812e-07, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
742 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39053106, -0.458235741, -0.011390686, -0.000440491422, 1.00001991, 1.48311792e-005, -5.82179155e-007, -1.48307363e-005, 0.999999404, 1.00002158, 0.000440472504, 5.88722855e-007)) |
743 | - | --local Mesh = New("SpecialMesh",EIRO,"Mesh",{Scale = Vector3.new(1.20000005, 1.20000005, 1.20000005),MeshId = "rbxassetid://1374148",TextureId = "rbxassetid://413143035",MeshType = Enum.MeshType.FileMesh,}) |
743 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
744 | - | --local Weld = New("ManualWeld",EIRO,"Weld",{Part0 = EIRO,Part1 = dude:FindFirstChild("Head"),C0 = CFrame.new(0, 0, 0, -1, 1.50264662e-10, 0, -1.50263801e-10, 0.999993861, 1.78812812e-07, 0, -1.78813892e-07, -1),C1 = CFrame.new(0.0500030518, 0.800012112, -1.14440918e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
744 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
745 | - | --elseif ercho == 4 then |
745 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0137062073, 0.00253915787, -1.46745825, -1.00000048, 0.00355784409, 1.83245029e-005, 0.00355784269, 0.999999583, 2.01142084e-005, -1.82529657e-005, 2.0179079e-005, -0.999999642)) |
746 | - | --local EIRO = New("Part",dude,"EIRO",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4999924, 5.29999876, -42.0000229, -1, -1.50263801e-10, 0, 1.50264662e-10, 0.999993861, -1.78813892e-07, 0, 1.78812812e-07, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
746 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
747 | - | --local Mesh = New("SpecialMesh",EIRO,"Mesh",{Scale = Vector3.new(0.699999988, 0.5, 0.600000024),MeshId = "rbxassetid://361948302",TextureId = "rbxassetid://361948503",MeshType = Enum.MeshType.FileMesh,}) |
747 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
748 | - | --local Weld = New("ManualWeld",EIRO,"Weld",{Part0 = EIRO,Part1 = dude:FindFirstChild("Head"),C0 = CFrame.new(0, 0, 0, -1, 1.50264662e-10, 0, -1.50263801e-10, 0.999993861, 1.78812812e-07, 0, -1.78813892e-07, -1),C1 = CFrame.new(0, 0.800012112, -1.14440918e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
748 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0136070251, 0.113649845, 0.986213684, -1.00001204, -0.00167019933, -1.89533148e-005, 0.0016702119, -1.00001013, -2.11289407e-005, -1.89182501e-005, -2.11601837e-005, 0.999999285)) |
749 | - | --elseif ercho == 5 then |
749 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
750 | - | --local EIRO = New("Part",dude,"EIRO",{FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.400000006, 0.400000006, 0.400000006),CFrame = CFrame.new(-78.4999924, 5.09999895, -42.0000229, -1, -1.50263801e-10, 0, 1.50264662e-10, 0.999993861, -1.78813892e-07, 0, 1.78812812e-07, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) |
750 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.812000036, 0.200000003, 0.200000003)) |
751 | - | --local Mesh = New("SpecialMesh",EIRO,"Mesh",{MeshId = "rbxassetid://1095510",TextureId = "rbxassetid://1095511",MeshType = Enum.MeshType.FileMesh,}) |
751 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.96466923, 0.397167206, 0.721361637, -0.0013458092, 0.50001061, 0.86602205, 1.00001383, 0.00026367465, 0.00140174653, 0.000472528627, 0.866035402, -0.500003278)) |
752 | - | --local Weld = New("ManualWeld",EIRO,"Weld",{Part0 = EIRO,Part1 = dude:FindFirstChild("Head"),C0 = CFrame.new(0, 0, 0, -1, 1.50264662e-10, 0, -1.50263801e-10, 0.999993861, 1.78812812e-07, 0, -1.78813892e-07, -1),C1 = CFrame.new(0, 0.600012302, -1.14440918e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) |
752 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
753 | - | --end |
753 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.69599998, 0.200000003, 0.928000033)) |
754 | - | --local oucho = math.random(1,6) |
754 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56735134, -0.408821106, 3.24180651, -0.000670250331, 1.00001955, 1.51960503e-005, 1.00002134, 0.000670230889, 6.58439376e-007, 6.48245248e-007, 1.51957993e-005, -0.999999404)) |
755 | - | --local sh = Instance.new("Shirt",dude) |
755 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
756 | - | --local pn = Instance.new("Pants",dude) |
756 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0.60000002384186,"Pastel Blue","Part",Vector3.new(2.31999993, 0.34799999, 0.200000003)) |
757 | - | --if oucho == 1 then |
757 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.26982021, -1.39350224, -0.295120239, 1.08945255e-006, 2.34336403e-005, -0.999999404, -0.00210836693, 1.00001788, 2.34318177e-005, 1.00001955, 0.00210834551, 1.13885642e-006)) |
758 | - | --pn.PantsTemplate = "rbxassetid://56903591" |
758 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
759 | - | --sh:Destroy() |
759 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999904, 0.231999978, 0.69599998)) |
760 | - | --elseif oucho == 2 then |
760 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-3.02117348, 1.4526372, 0.0043182373, -8.55062524e-007, -7.5024268e-006, -0.999999642, 0.00172491686, -1.00000417, 7.50057416e-006, -1.00000513, -0.00172491092, 8.67988547e-007)) |
761 | - | --sh.ShirtTemplate = "rbxassetid://242933637" |
761 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
762 | - | --pn.PantsTemplate = "rbxassetid://745334066" |
762 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.170059204, -2.2058959, 4.45978069, -1.00001419, -0.00135475828, -4.16571709e-007, -0.00135477353, 1.00001323, 4.34294707e-005, 3.57724417e-007, 4.34299582e-005, -0.999999642)) |
763 | - | --elseif oucho == 3 then |
763 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983)) |
764 | - | --sh.ShirtTemplate = "rbxassetid://1238151974" |
764 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.200000003, 0.34800005)) |
765 | - | --pn.PantsTemplate = "rbxassetid://1340645290" |
765 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00218582153, -0.812090874, 2.42410946, 1.0000062, -0.000122337253, -0.000491121027, -0.000139618875, 0.866030037, -0.499999434, 0.000486493052, 0.500002682, 0.866024911)) |
766 | - | --elseif oucho == 4 then |
766 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
767 | - | --sh.ShirtTemplate = "rbxassetid://583471131" |
767 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.34799999, 0.200000003)) |
768 | - | --pn.PantsTemplate = "rbxassetid://460147365" |
768 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00135040283, 0.462905884, 3.42825031, -1.00001216, -0.00170107209, -3.2242329e-007, 0.00170108408, -1.00001025, -4.80908056e-007, -3.21594428e-007, -4.80819381e-007, 0.999999285)) |
769 | - | --elseif oucho == 5 then |
769 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
770 | - | --pn.PantsTemplate = "rbxassetid://45541243" |
770 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 1.27600002, 0.69599998)) |
771 | - | --sh:Destroy() |
771 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00625753403, -1.16150713, -0.00413131714, 9.68375389e-007, 2.27232595e-005, -0.999999404, -0.00171916001, 1.00001824, 2.27220989e-005, 1.00002003, 0.00171913893, 1.0074408e-006)) |
772 | - | --elseif oucho == 6 then |
772 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
773 | - | --pn.PantsTemplate = "rbxassetid://41162775" |
773 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.174598694, -2.20604086, 4.45978403, -1.0000217, 3.07324808e-006, 3.6950091e-008, 3.05491267e-006, 1.00001991, 4.44986144e-005, -3.68387809e-008, 4.44985162e-005, -0.999999404)) |
774 | - | --sh:Destroy() |
774 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983)) |
775 | - | --end |
775 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.231999993, 0.34800005)) |
776 | - | --Instance.new("Decal",dude:FindFirstChild("Head")).Texture = "rbxassetid://985062039" |
776 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.7220459e-005, -0.171551704, 2.84820986, 1.00001347, 1.32246059e-005, -1.8708166e-005, -1.32331043e-005, 1.00001156, 9.19823833e-007, 1.87084588e-005, -9.18944352e-007, 0.999999285)) |
777 | - | coroutine.wrap(function() |
777 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.812000155, 0.200000003, 0.231999993)) |
778 | - | --swait(40) |
778 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.90776682, -1.85868549, -0.00782012939, 1.8466252e-006, 2.3490722e-005, -0.999999404, -0.00454348512, 1.0000093, 2.34826093e-005, 1.00001109, 0.00454345904, 1.95331836e-006)) |
779 | - | --local naeeym2 = Instance.new("BillboardGui",dude) |
779 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
780 | - | --naeeym2.Size = UDim2.new(0,100,0,40) |
780 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.232000038, 0.463999987)) |
781 | - | --naeeym2.StudsOffset = Vector3.new(0,3,0) |
781 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.69186592, -0.987005711, -0.00565719604, 1.16656577e-006, 2.24069317e-005, -0.999999642, -0.0023512831, 1.00000334, 2.24043106e-005, 1.00000429, 0.00235127681, 1.21924631e-006)) |
782 | - | --naeeym2.Adornee = dude:FindFirstChild("Head") |
782 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) |
783 | - | --naeeym2.Name = "TalkingBillBoard" |
783 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599992, 0.463999987, 0.34799999)) |
784 | - | --local tecks2 = Instance.new("TextLabel",naeeym2) |
784 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.008228302, -2.14741659, -0.0642538071, -1.00000715, 0.00357599347, 3.75979994e-007, 0.00357599184, 1.00000525, 2.70939381e-007, -3.75028975e-007, 2.71639692e-007, -0.999999285)) |
785 | - | --tecks2.BackgroundTransparency = 1 |
785 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
786 | - | --tecks2.BorderSizePixel = 0 |
786 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.200000003, 0.200000003)) |
787 | - | --tecks2.Text = "Trapped! In another sense.." |
787 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000347137451, -1.8586607, -0.167779922, 1.00002146, -7.44219869e-006, -3.64530095e-008, 7.4239797e-006, 1.00001967, 2.38242046e-006, 3.6459241e-008, -2.38146504e-006, 0.999999404)) |
788 | - | --tecks2.Font = "Cartoon" |
788 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
789 | - | --tecks2.TextSize = 24 |
789 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
790 | - | --tecks2.TextStrokeTransparency = 0 |
790 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0133476257, 0.114125729, -1.46745729, 1.00000048, -0.00355736027, 1.89384191e-005, -0.00355735887, -0.999999583, 2.02438559e-006, 1.8931225e-005, -2.09207792e-006, -0.999999642)) |
791 | - | --tecks2.TextColor3 = Color3.new(1,.6,.7) |
791 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
792 | - | --tecks2.TextStrokeColor3 = Color3.new(1,1,1) |
792 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.74000013, 0.232000083, 0.69599998)) |
793 | - | --tecks2.Size = UDim2.new(1,0,0.5,0) |
793 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.64782763, -2.03162193, -0.00580215454, 1.18259686e-006, 2.35495809e-005, -0.999999404, -0.00240779901, 1.00001693, 2.35471889e-005, 1.00001872, 0.00240777642, 1.23929362e-006)) |
794 | - | --swait(10) |
794 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.31999993, 0.232000008, 0.463999987)) |
795 | - | --for i = 0,1,.05 do |
795 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.26977873, -1.68380308, -0.00464248657, 1.04666037e-006, 2.36031628e-005, -0.999999285, -0.00197039847, 1.00000978, 2.36014093e-005, 1.00001168, 0.00197038613, 1.09316613e-006)) |
796 | - | --swait() |
796 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.463999987, 0.579999983, 1.15999985)) |
797 | - | --tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) |
797 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000141143799, -0.00238656998, -1.38578653, 1.00001347, -2.6228372e-007, -3.18987103e-009, 2.53668986e-007, 1.00001156, 2.2798049e-006, 3.2041374e-009, -2.27918736e-006, 0.999999285)) |
798 | - | --tecks2.TextStrokeTransparency = i |
798 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34800005, 0.200000003, 0.200000003)) |
799 | - | --tecks2.TextTransparency = i |
799 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.12457228, 0.377754211, -2.04072428, -0.00161815656, 2.28647568e-005, 0.999998331, 1.00000501, -0.000935775577, 0.00161816564, 0.000935807999, 1.00000536, -2.13500443e-005)) |
800 | - | --end |
800 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
801 | - | --naeeym2:Destroy() |
801 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.69599998, 0.34800005)) |
802 | - | end)() |
802 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00218963623, -1.21802139, 2.42397022, 1.00000656, -0.000122337195, -0.000491121318, -0.000139618875, 0.866030455, -0.499999672, 0.000486493111, 0.500002742, 0.866025031)) |
803 | - | end)() |
803 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.200000003, 0.59740001)) |
804 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.012588501, -0.230174541, 1.22678614, 1.00001204, 0.00170156895, -1.85436711e-005, -0.00170158059, 1.00001013, 1.60903783e-005, 1.85713052e-005, -1.60583568e-005, 0.999999285)) | |
805 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
806 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000187, 0.200000003, 0.200000003)) | |
807 | - | Player.Chatted:connect(function(message) |
807 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.28582335, -2.20614576, 0.16740036, 1.29392276e-006, 2.35486077e-005, -0.999999285, -0.00276590372, 1.00000787, 2.35452953e-005, 1.00000978, 0.00276589021, 1.3590477e-006)) |
808 | - | if message then |
808 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
809 | - | if string.sub(message,1,11) == "damagemode/" then |
809 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(0.579999983, 0.927999735, 0.463999987)) |
810 | - | print(message) |
810 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39041233, -1.27023077, -0.011089325, -0.000441556913, 1.00001168, 1.47172686e-005, -5.82458881e-007, -1.47170649e-005, 0.999999285, 1.00001359, 0.0004415476, 5.88964099e-007)) |
811 | - | damagemode = string.sub(message,12) |
811 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
812 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.463999987, 0.200000003, 0.928000033)) | |
813 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56732988, 0.403812408, 3.24179888, -0.000671263493, 1.00000596, 1.39352715e-005, 1.00000691, 0.000671258371, 6.59181296e-007, 6.49824415e-007, 1.39354743e-005, -0.999999642)) | |
814 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) | |
815 | - | function MagnitudeDmg(par,magni) |
815 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 1.27600002, 0.69599998)) |
816 | - | for _, c in pairs(workspace:GetDescendants()) do |
816 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.180254936, -1.16150093, -0.0041885376, 9.68362087e-007, 2.2722732e-005, -0.999999285, -0.00171916536, 1.00001013, 2.27213986e-005, 1.00001204, 0.00171915337, 1.00742602e-006)) |
817 | - | local hum = c:FindFirstChildOfClass("Humanoid") |
817 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 1)) |
818 | - | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then |
818 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.231999993, 0.916400015)) |
819 | - | local head = GetDudesTorso(c) |
819 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0164260864, 0.589895248, 0.094648838, 1.00001764, -0.000275413156, 0.000659923593, -0.000271906902, 0.707119524, 0.707094133, -0.000661385711, -0.707109988, 0.707109034)) |
820 | - | if head ~= nil then |
820 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.34799999, 0.200000003)) |
821 | - | local targ = head.Position - par.Position |
821 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00074005127, -0.113721371, 2.02377272, 1.00001466, -2.03231466e-005, 3.07392952e-007, -2.03155214e-005, -1.00001335, -1.85632734e-006, 3.07421914e-007, 1.85568797e-006, -0.999999404)) |
822 | - | local mag = targ.magnitude |
822 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
823 | - | if magni >= mag and c ~= chara then |
823 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599992, 0.232000008, 0.200000003)) |
824 | - | Dmg(c) |
824 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000648498535, 0.523108482, 3.42824936, -1.00001204, -0.00170232763, -3.22026239e-007, 0.00170233962, -1.00001013, -4.4727858e-007, -3.21253964e-007, -4.47188995e-007, 0.999999285)) |
825 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) | |
826 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599992, 0.232000008, 0.231999993)) | |
827 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00292205811, -2.03163147, 4.63377762, -1.00001311, -0.000978587777, -2.91069369e-007, -0.000978597905, 1.00001121, 4.45006881e-005, 2.4750986e-007, 4.45008554e-005, -0.999999285)) | |
828 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
829 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.62399995, 0.927999794, 0.928000033)) | |
830 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1038084, 0.702246666, -0.00408935547, -0.00171928364, 1.00001013, 1.46179427e-005, -5.92813478e-007, -1.46185203e-005, 0.999999285, 1.00001204, 0.00171927165, 6.17952878e-007)) | |
831 | - | local mus = Instance.new("Sound",Head) |
831 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
832 | - | mus.Name = "mus" |
832 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.463999987)) |
833 | - | mus.SoundId = "rbxassetid://1131624146" |
833 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.180233479, -1.85741377, -0.00400161743, 9.68401537e-007, 2.21498412e-005, -0.999999285, -0.00171989296, 1.00001013, 2.2148517e-005, 1.00001204, 0.00171988097, 1.00649675e-006)) |
834 | - | mus.Looped = true |
834 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.580000103, 1)) |
835 | - | mus.Volume = 1 |
835 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.463999987, 0.34799999, 0.200000003)) |
836 | - | mus:Play() |
836 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00061416626, 0.113962173, -0.515907764, 1.00000679, 8.48609488e-007, -1.58665658e-009, -8.52916855e-007, 1.00000584, 8.92841399e-007, 1.59491531e-009, -8.9252535e-007, 0.999999642)) |
837 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) | |
838 | - | zhold = false |
838 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.69599998, 0.200000003, 0.200000003)) |
839 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000152587891, 0.350605965, -0.979739666, -1.00001347, 3.24973371e-007, -3.23643548e-007, -3.16358637e-007, -1.00001156, -4.67361169e-005, -3.23648152e-007, -4.67360405e-005, 0.999999285)) | |
840 | - | attack = true |
840 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
841 | - | for i=0,1,.3 do |
841 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.200000003, 0.231999978)) |
842 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0134773254, -2.03588963, 0.0627288818, 1.0000118, 0.00168008753, -0.000919409504, -0.000919448154, 1.43879734e-005, -0.999998927, -0.00168008532, 1.00001025, 1.59331266e-005)) | |
843 | - | PlayAnimationFromTable({ |
843 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
844 | - | CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), |
844 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.34799999, 0.34799999)) |
845 | - | CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698), |
845 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00144577026, 0.465278625, 2.25577259, 1.00000525, -0.00357661862, 2.83521615e-007, -0.00357662095, -1.00000381, -2.32054535e-005, 3.66508516e-007, 2.32040093e-005, -0.999999404)) |
846 | - | CFrame.new(1.02804303, 0.5, -0.52656126, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0), |
846 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
847 | - | CFrame.new(-1.28728318, 0.203263342, -0.756378591, 0.875030518, -0.0895627737, 0.475710154, 0.480547935, 0.0424276218, -0.875941575, 0.0582684875, 0.995077074, 0.0801646709), |
847 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.231999993, 0.69599998)) |
848 | - | CFrame.new(0.499997735, -1.99999893, -1.11758709e-06, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209), |
848 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.4577775, -0.755722523, -0.00420379639, 9.68686891e-007, 2.31499107e-005, -0.999999285, -0.00171863148, 1.00001037, 2.31485628e-005, 1.00001228, 0.00171861949, 1.00847365e-006)) |
849 | - | CFrame.new(-0.500001431, -1.99999893, -9.983778e-07, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782), |
849 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.927999914, 0.231999978, 0.69599998)) |
850 | - | }, .4, false) |
850 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.63014698, -0.756272316, -0.00161361694, 9.72395696e-007, 2.15512227e-005, -0.999999285, -0.00172371534, 1.00001013, 2.15498931e-005, 1.00001204, 0.00172370335, 1.00954367e-006)) |
851 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) | |
852 | - | Humanoid.WalkSpeed = 200 |
852 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000984191895, -0.756361485, 0.354147911, 1.00001216, 0.00168376672, -1.40138248e-008, -0.00168377871, 1.00001025, 2.1083024e-005, 4.95281753e-008, -2.10825874e-005, 0.999999285)) |
853 | - | local ref = Instance.new("Part",chara) |
853 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
854 | - | ref.Size = Vector3.new(0,0,0) |
854 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.463999987, 0.200000003, 0.231999844)) |
855 | - | ref.Anchored = true |
855 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-4.19616699e-005, -0.350408554, -0.921793938, 1.00001347, 8.28295015e-008, -2.89782998e-009, -9.14442353e-008, 1.00001156, 2.05126844e-006, 2.91285485e-009, -2.05064771e-006, 0.999999285)) |
856 | - | ref.CanCollide = false |
856 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
857 | - | ref.Transparency = 1 |
857 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.463999987)) |
858 | - | repeat |
858 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00622749329, -1.85754061, -0.00392532349, 9.6856877e-007, 2.22277413e-005, -0.999999285, -0.00171961775, 1.00001037, 2.2226408e-005, 1.00001228, 0.00171960576, 1.00679244e-006)) |
859 | - | --so(1145251796,ShotPt,math.random(95,105)/100,3) |
859 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.580000103, 1)) |
860 | - | ref.CFrame = Mouse.Hit |
860 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(3.13199997, 0.231999978, 0.69599998)) |
861 | - | MagnitudeDmg(ref,2) |
861 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.804111, 1.68473339, 0.00412750244, -8.36535833e-007, -6.4935798e-006, -0.999999285, 0.00172392465, -1.00001013, 6.49140156e-006, -1.00001204, -0.00172391266, 8.47700733e-007)) |
862 | - | Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Neon","Pink",true,false,.1) |
862 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
863 | - | Effects.Block(CFrame.new((ShotPt.Position + Mouse.Hit.p)/2,Mouse.Hit.p),Vector3.new(1,1,(ShotPt.Position - Mouse.Hit.p).magnitude),Vector3.new(.2,.2,1),Vector3.new(.1,.1,0),"Neon","Pink",false,false,.1) |
863 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00101089478, -0.756358147, 3.25414419, 1.00001884, 0.00168378535, -1.40127501e-008, -0.00168380293, 1.00001574, 2.10829876e-005, 4.953597e-008, -2.1082411e-005, 0.999999046)) |
864 | - | Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Neon","Pink",true,false,.1) |
864 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
865 | - | for i=0,1,.5 do |
865 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
866 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00154876709, -0.345762253, -0.747890472, -1.00000513, 0.00184790534, -9.90573952e-008, -0.00184790278, -1.00000417, -3.50944756e-005, -1.63901603e-007, -3.50941227e-005, 0.999999642)) | |
867 | - | PlayAnimationFromTable({ |
867 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
868 | - | CFrame.new(2.25380063e-06, 0, 0.100001052, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), |
868 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.231999993)) |
869 | - | CFrame.new(0.0823859125, 1.55974913, -0.0981838703, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698), |
869 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00116729736, 0.582655907, 0.921771049, 1.0000118, -0.0018872465, 3.00768534e-007, -0.00188724138, -1.00000989, -2.33032779e-006, 3.05155339e-007, 2.32914181e-006, -0.999999285)) |
870 | - | CFrame.new(1.25785875, 0.5, -0.333723217, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0), |
870 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
871 | - | CFrame.new(-1.05747044, 0.203263938, -0.563540041, 0.875030518, -0.0895627737, 0.475710154, 0.480547935, 0.0424276218, -0.875941575, 0.0582684875, 0.995077074, 0.0801646709), |
871 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.31999993, 0.34799999, 0.69599998)) |
872 | - | CFrame.new(0.423390329, -1.99999893, -0.0642812699, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209), |
872 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.26979065, -1.04566193, -0.00424575806, 9.68193035e-007, 2.35501375e-005, -0.999999285, -0.00171805895, 1.00001037, 2.35487987e-005, 1.00001228, 0.00171804742, 1.00865361e-006)) |
873 | - | CFrame.new(-0.57660532, -1.99999893, -0.0642794371, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782), |
873 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000187, 0.200000003, 0.200000003)) |
874 | - | }, .4, false) |
874 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.28582954, -2.20552588, -0.181804657, 1.45761271e-006, 2.37911408e-005, -0.999999285, -0.00329261925, 1.00000644, 2.37865734e-005, 1.00000834, 0.00329260482, 1.53593442e-006)) |
875 | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) | |
876 | - | for i=0,1,.5 do |
876 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.69599998, 0.200000003, 0.928000033)) |
877 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56748581, 0.403205872, 3.24181366, -0.000669696892, 1.00001156, 1.54301233e-005, 1.00001347, 0.000669687288, 6.58446311e-007, 6.48107061e-007, 1.54301015e-005, -0.999999285)) | |
878 | - | PlayAnimationFromTable({ |
878 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
879 | - | CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), |
879 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599992, 0.232000008, 0.34799999)) |
880 | - | CFrame.new(0.0823832005, 1.55974865, -0.0981806219, 0.604022264, 0.219845936, 0.766044974, -0.342019916, 0.939692736, 0, -0.719846904, -0.262002617, 0.64278698), |
880 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00191497803, -2.03143692, -2.60386896, 1.00001359, 0.000368760899, 2.53006078e-007, -0.000368769979, 1.00001168, 2.77856907e-006, -2.51969908e-007, -2.77804475e-006, 0.999999285)) |
881 | - | CFrame.new(1.02804303, 0.5, -0.52656126, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0), |
881 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
882 | - | CFrame.new(-1.28728318, 0.203263342, -0.756378591, 0.875030518, -0.0895627737, 0.475710154, 0.480547935, 0.0424276218, -0.875941575, 0.0582684875, 0.995077074, 0.0801646709), |
882 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.231999993, 0.231999993)) |
883 | - | CFrame.new(0.499997735, -1.99999893, -1.11758709e-06, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209), |
883 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.79963732, -0.0062046051, -0.227901459, -0.00172873132, 1.00001025, 2.30093628e-005, 6.45988621e-007, 2.30101468e-005, -0.999999285, -1.00001216, -0.00172871957, -6.85771909e-007)) |
884 | - | CFrame.new(-0.500001431, -1.99999893, -9.983778e-07, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782), |
884 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
885 | - | }, .4, false) |
885 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
886 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000247955322, -1.85837555, 0.515717983, -1.00001347, 0.00037799112, 1.62256811e-007, 0.000377983262, 1.00001156, 4.46234044e-005, -1.45407441e-007, 4.4623368e-005, -0.999999285)) | |
887 | - | until zhold == false |
887 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
888 | - | ref:Destroy() |
888 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599992, 0.231999993, 0.200000003)) |
889 | - | Humanoid.WalkSpeed = 200 |
889 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00257110596, -1.6831336, 3.42826033, 1.00001204, 0.00170258048, -1.60158933e-007, -0.00170259248, 1.00001013, 1.46196398e-005, 1.8506725e-007, -1.46188831e-005, 0.999999285)) |
890 | - | attack = false |
890 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
891 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.200000003, 0.200000003)) | |
892 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000370025635, -1.8587203, -1.44380522, 1.00001359, -8.11205246e-006, -3.67194701e-008, 8.10361234e-006, 1.00001168, 2.74641434e-006, 3.67127662e-008, -2.74579975e-006, 0.999999285)) | |
893 | - | function doge() |
893 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
894 | - | attack = true |
894 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.31999993, 0.231999993, 0.200000003)) |
895 | - | Humanoid.WalkSpeed = 0 |
895 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.27035666, -1.68360662, 0.293216705, -6.99449004e-007, 0.000311892974, 0.999999285, -0.00104407989, 1.00001121, -0.000311888987, -1.00001323, -0.00104407, -3.73821621e-007)) |
896 | - | --so(536642316,Torso,1,1) |
896 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
897 | - | local bodyvel = Instance.new("BodyVelocity",RootPart) |
897 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.928000152, 0.464000016, 0.463999987)) |
898 | - | local pep = 10000000 |
898 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.16985369, -0.871246338, -0.0051651001, 1.16509625e-006, 2.38373486e-005, -0.999998808, -0.00235050265, 1.00001895, 2.38351458e-005, 1.00002158, 0.00235049031, 1.22111521e-006)) |
899 | - | bodyvel.P = pep |
899 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.200000003, 1.04399979)) |
900 | - | bodyvel.MaxForce = Vector3.new(pep,pep,pep) |
900 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000732421875, 0.345625401, -1.32782841, 1.00001347, 1.57987233e-006, -3.28700223e-009, -1.58848707e-006, 1.00001156, 1.30031594e-006, 3.30395888e-009, -1.29968794e-006, 0.999999285)) |
901 | - | bodyvel.Velocity = RootPart.CFrame.lookVector*200 |
901 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
902 | - | for i=0,1,.2 do |
902 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000172, 0.200000003, 0.231999993)) |
903 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.341750622, -1.85878611, -0.00778961182, 1.84655323e-006, 2.3751556e-005, -0.999999285, -0.00454270514, 1.00000131, 2.3743276e-005, 1.00000322, 0.00454268791, 1.9544193e-006)) | |
904 | - | PlayAnimationFromTable({ |
904 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
905 | - | CFrame.new(0, -0.413182259, -0.492409885, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001), |
905 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.69599998, 0.200000003, 1.2759999)) |
906 | - | CFrame.new(0, 1.39017391, 0.409808099, 1, 0, 0, 0, 0.499998748, -0.866026163, 0, 0.866026163, 0.499998748), |
906 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.28881836e-005, -0.466629028, -0.399776936, 1.00001347, -3.22703272e-007, -3.16622373e-009, 3.14088538e-007, 1.00001156, 2.64065238e-006, 3.18028226e-009, -2.6400412e-006, 0.999999285)) |
907 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
907 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
908 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
908 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
909 | - | CFrame.new(0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
909 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0040397644, 1.45275879, 0.354114056, -1.00001884, -0.00168373343, -1.7531282e-007, 0.00168375147, -1.00001597, 6.02276077e-006, -1.85434587e-007, 6.02347882e-006, 0.999999166)) |
910 | - | CFrame.new(-0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
910 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
911 | - | }, .4, false) |
911 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.231999993, 0.231999993)) |
912 | - | bodyvel.Velocity = RootPart.CFrame.lookVector*200 |
912 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.79963207, -0.00620794296, 0.236164093, -0.00172861468, 1.00001025, 2.30448168e-005, 6.46028013e-007, 2.30456026e-005, -0.999999285, -1.00001216, -0.00172860292, -6.85869907e-007)) |
913 | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
914 | - | for i=0,1,.2 do |
914 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.62399995, 1.27599967, 0.928000033)) |
915 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.10384512, 2.7322464, -0.00403213501, -0.00171939307, 1.00001013, 1.46226739e-005, -5.92917615e-007, -1.46232505e-005, 0.999999285, 1.00001204, 0.00171938131, 6.18066792e-007)) | |
916 | - | PlayAnimationFromTable({ |
916 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
917 | - | CFrame.new(0, -1.30470812, -0.622091293, 1, 0, 0, 0, -0.866025984, 0.499998987, 0, -0.499998987, -0.866025984), |
917 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
918 | - | CFrame.new(0, 1.47984993, -0.230206192, 1, 0, 0, 0, 0.939693034, 0.34201926, 0, -0.34201926, 0.939693034), |
918 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000701904297, -0.345462322, 1.90779448, 1.00001347, -2.00413051e-005, 3.0602007e-007, -2.00327486e-005, -1.00001156, -2.15015098e-006, 3.06052669e-007, 2.14952706e-006, -0.999999285)) |
919 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
919 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
920 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
920 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.04400015, 0.811999977, 0.69599998)) |
921 | - | CFrame.new(0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
921 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(4.2278223, -1.50939083, -0.00476455688, 1.06762559e-006, 2.37910026e-005, -0.999999285, -0.00203778502, 1.00000966, 2.37891327e-005, 1.00001156, 0.00203777291, 1.11610427e-006)) |
922 | - | CFrame.new(-0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
922 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.463999987, 0.200000003, 0.928000033)) |
923 | - | }, .4, false) |
923 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.56723642, -0.411323547, 3.2417984, -0.000671109243, 1.0000056, 1.40209831e-005, 1.00000656, 0.000671104353, 6.59014859e-007, 6.49602271e-007, 1.40211887e-005, -0.999999642)) |
924 | - | bodyvel.Velocity = RootPart.CFrame.lookVector*200 |
924 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
925 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) | |
926 | - | for i=0,1,.2 do |
926 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00456619263, 1.45251989, 3.25319099, -1.00000548, -0.00168398093, -1.74997453e-007, 0.0016839871, -1.00000453, 7.01806357e-006, -1.86809473e-007, 7.01812223e-006, 0.999999642)) |
927 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
928 | - | PlayAnimationFromTable({ |
928 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
929 | - | CFrame.new(0, -2.22375727, 0.305265486, 1, 0, 0, 0, 0.500000238, -0.866025388, 0, 0.866025388, 0.500000238), |
929 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.0012512207, 0.756712437, 0.921786785, 1.00001192, -0.00188787864, 2.99965563e-007, -0.00188787398, -1.00001001, -2.71932527e-006, 3.05087923e-007, 2.71814042e-006, -0.999999285)) |
930 | - | CFrame.new(0, 1.35128808, -0.383415997, 1, 0, 0, 0, 0.766043901, 0.642788529, 0, -0.64278847, 0.766043901), |
930 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
931 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
931 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
932 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
932 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00101852417, -0.756660938, -1.05014706, -1.00001204, -0.00172244979, 6.12758271e-008, -0.00172246178, 1.00001013, 2.15474902e-005, -9.84062183e-008, 2.15469754e-005, -0.999999285)) |
933 | - | CFrame.new(0.5, -1.19999337, -0.599998593, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024), |
933 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
934 | - | CFrame.new(-0.500003815, -1.35979521, -0.923200667, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388), |
934 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.580000103, 2.204)) |
935 | - | }, .4, false) |
935 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.00379943848, -2.08976412, 1.34025192, 1.00001204, 0.00171907921, 2.17523793e-005, -0.00171909155, 1.00001013, 1.06986054e-005, -2.17342458e-005, -1.07354717e-005, 0.999999285)) |
936 | - | bodyvel.Velocity = RootPart.CFrame.lookVector*200 |
936 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(1.27600014, 1.04400003, 0.69599998)) |
937 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(3.06781864, -1.39336252, -0.00276947021, 6.42567954e-007, 2.37156328e-005, -0.999999285, -0.000670476642, 1.00001156, 2.37155527e-005, 1.00001347, 0.000670467038, 6.58474448e-007)) | |
938 | - | bodyvel:Destroy() |
938 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.696000159, 0.200000003, 0.232000008)) |
939 | - | Humanoid.WalkSpeed = 200 |
939 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.457955837, -0.580825329, -0.0055770874, 1.16664842e-006, 2.21116316e-005, -0.999999642, -0.00235209521, 1.00000632, 2.21090704e-005, 1.00000727, 0.0023520845, 1.21865253e-006)) |
940 | - | attack = false |
940 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
941 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) | |
942 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00102996826, -0.756342888, -2.7901454, -1.00001884, -0.00172247365, 6.13245135e-008, -0.001722491, 1.00001574, 2.15474611e-005, -9.84643691e-008, 2.15468062e-005, -0.999999046)) | |
943 | - | function bdoge() |
943 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
944 | - | attack = true |
944 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.927999973, 0.200000003)) |
945 | - | Humanoid.WalkSpeed = 0 |
945 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.35656452, -0.0282249451, -2.04077148, -0.00161817856, 2.2865348e-005, 0.999997616, 1.00001848, -0.000935790653, 0.00161816448, 0.000935816381, 1.00001693, -2.13497078e-005)) |
946 | - | --so(536642316,Torso,1,1) |
946 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 1, 0.579999983)) |
947 | - | local bodyvel = Instance.new("BodyVelocity",RootPart) |
947 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34799999, 0.200000003, 0.696000099)) |
948 | - | local pep = 10000000 |
948 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.7414937, 0.402587891, 4.40184164, -0.00107212085, 1.00001121, 1.57967261e-005, 1.00001311, 0.00107211061, 7.93275149e-007, 7.76334844e-007, 1.57971135e-005, -0.999999285)) |
949 | - | bodyvel.P = pep |
949 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
950 | - | bodyvel.MaxForce = Vector3.new(pep,pep,pep) |
950 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
951 | - | bodyvel.Velocity = RootPart.CFrame.lookVector*-200 |
951 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0135307312, 0.00276422501, 0.986213207, 1.00001204, 0.00167110038, -1.825656e-005, -0.00167111226, 1.00001013, -1.0784629e-006, 1.82550084e-005, 1.10962583e-006, 0.999999285)) |
952 | - | for i=0,1,.2 do |
952 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
953 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.231999964, 0.200000003)) | |
954 | - | PlayAnimationFromTable({ |
954 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0116043091, -0.169836521, 2.03595734, 1.00001204, 0.00170413801, -1.86736106e-005, -0.00170414965, 1.00001013, 1.63084733e-005, 1.87016558e-005, -1.62761844e-005, 0.999999285)) |
955 | - | CFrame.new(0, -2.22375727, 0.305265486, 1, 0, 0, 0, 0.500000238, -0.866025388, 0, 0.866025388, 0.500000238), |
955 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
956 | - | CFrame.new(0, 1.35128808, -0.383415997, 1, 0, 0, 0, 0.766043901, 0.642788529, 0, -0.64278847, 0.766043901), |
956 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.927999914, 0.231999978, 0.69599998)) |
957 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
957 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.62992048, 1.45317078, 0.00423812866, -8.35475475e-007, -7.49478841e-006, -0.999999642, 0.00172465458, -1.00001037, 7.49267065e-006, -1.00001204, -0.00172464119, 8.48372508e-007)) |
958 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
958 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
959 | - | CFrame.new(0.5, -1.19999337, -0.599998593, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024), |
959 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0048866272, 1.45256662, -2.78931189, 1.00000513, 0.00172351021, 2.02878823e-007, 0.00172351615, -1.00000417, 7.49809578e-006, 2.15795779e-007, -7.49809897e-006, -0.999999642)) |
960 | - | CFrame.new(-0.500003815, -1.35979521, -0.923200667, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388), |
960 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
961 | - | }, .4, false) |
961 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
962 | - | bodyvel.Velocity = RootPart.CFrame.lookVector*-200 |
962 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.175273895, -2.2061739, -4.11187935, 1.00001371, 0.00036665576, 8.8621448e-008, -0.000366665074, 1.0000118, 2.83818667e-006, -8.7566761e-008, -2.8376005e-006, 0.999999285)) |
963 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983)) | |
964 | - | for i=0,1,.2 do |
964 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000008, 0.579999983, 0.200000003)) |
965 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000499725342, -0.350563049, -2.02378225, 1.00001347, -5.64614311e-007, -3.58900643e-009, 5.56057785e-007, 1.00001156, 2.58954788e-006, 3.60246588e-009, -2.58893624e-006, 0.999999285)) | |
966 | - | PlayAnimationFromTable({ |
966 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
967 | - | CFrame.new(0, -1.30470812, -0.622091293, 1, 0, 0, 0, -0.866025984, 0.499998987, 0, -0.499998987, -0.866025984), |
967 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.463999957, 0.452400029)) |
968 | - | CFrame.new(0, 1.47984993, -0.230206192, 1, 0, 0, 0, 0.939693034, 0.34201926, 0, -0.34201926, 0.939693034), |
968 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0107460022, -0.0555205345, 1.75172997, 1.00001204, 0.00170685095, -1.87402256e-005, -0.00170686259, 1.00001013, 1.71129595e-005, 1.87696915e-005, -1.7080516e-005, 0.999999285)) |
969 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
969 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.463999987, 0.200000003, 0.200000003)) |
970 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
970 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000179290771, -0.11830616, -0.515934467, 1.00000679, 1.18016033e-006, -1.49793378e-009, -1.18446769e-006, 1.00000584, 4.800022e-007, 1.50599488e-009, -4.79683422e-007, 0.999999642)) |
971 | - | CFrame.new(0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
971 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
972 | - | CFrame.new(-0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), |
972 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.579999983, 0.695999742, 0.463999987)) |
973 | - | }, .4, false) |
973 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.39072371, -2.08222008, -0.0108184814, -0.000440219301, 1.00001168, 1.49555108e-005, -5.82121402e-007, -1.49553034e-005, 0.999999285, 1.00001359, 0.000440209988, 5.88711941e-007)) |
974 | - | bodyvel.Velocity = RootPart.CFrame.lookVector*-200 |
974 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
975 | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.232000038, 0.200000003, 3.59599972)) | |
976 | - | bodyvel:Destroy() |
976 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000350952148, -0.34586668, 1.57220888, 1.00001347, -8.66054324e-006, -1.0555099e-009, 8.65192851e-006, 1.00001156, 6.67146651e-007, 1.06459686e-009, -6.66510914e-007, 0.999999285)) |
977 | - | Humanoid.WalkSpeed = 200 |
977 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
978 | - | attack = false |
978 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.69599998, 0.232000008, 0.231999993)) |
979 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000980377197, -0.756362438, 2.21014261, 1.00001216, 0.00168377184, -1.39758196e-008, -0.00168378383, 1.00001025, 2.10831458e-005, 4.94904349e-008, -2.10827075e-005, 0.999999285)) | |
980 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) | |
981 | - | function adoge() |
981 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.231999993, 0.200000003, 0.200000003)) |
982 | - | attack = true |
982 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000228881836, -1.85836792, 2.37173796, -1.00001347, 0.000378501718, 1.62424982e-007, 0.000378494151, 1.00001156, 4.46612976e-005, -1.45538479e-007, 4.46612685e-005, -0.999999285)) |
983 | - | Humanoid.WalkSpeed = 200 |
983 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
984 | - | --so(536642316,Torso,1,1) |
984 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Cyan","Part",Vector3.new(1.62399995, 0.927999794, 0.928000033)) |
985 | - | Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(),Vector3.new(1,.1,1),"White",math.random(-10,10),false,.1) |
985 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.1039381, 1.63024521, -0.0039024353, -0.00172031764, 1.00001013, 1.46122475e-005, -5.72987631e-007, -1.46127904e-005, 0.999999285, 1.00001204, 0.00172030565, 5.98132715e-007)) |
986 | - | BodyVel(RootPart,RootPart.CFrame.lookVector*200) |
986 | + | mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
987 | - | for i=0,1,.1 do |
987 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(2.9000001, 0.232000038, 0.232000008)) |
988 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(2.2558732, -0.755105019, -0.005027771, 1.16550927e-006, 2.32517414e-005, -0.999999046, -0.00235130615, 1.00001335, 2.32494094e-005, 1.00001562, 0.00235129381, 1.22017377e-006)) | |
989 | - | PlayAnimationFromTable({ |
989 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.812000036, 0.34799999)) |
990 | - | CFrame.new(0, -0.095761165, -0.251516223, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), |
990 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.000499725342, -0.000572681427, -0.399878502, 1.00001347, -3.89991328e-009, -1.60411329e-009, -4.71482053e-009, 1.00001156, 9.86925897e-007, 1.61898139e-009, -9.86294253e-007, 0.999999285)) |
991 | - | CFrame.new(0, 1.43075883, 0.149916381, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), |
991 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.463999987, 0.69599998, 0.231999993)) |
992 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
992 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000854492188, -0.060251236, -0.689863205, 1.00000679, 9.31904651e-008, -2.52386245e-009, -9.7497832e-008, 1.00000584, 1.58413877e-006, 2.53151944e-009, -1.58382682e-006, 0.999999642)) |
993 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
993 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.69599998, 0.34799999, 0.34799996)) |
994 | - | CFrame.new(0.5, -1.96527231, 0.196966231, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789), |
994 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.000202178955, -0.698717594, -0.863790989, 1.00001359, -9.37085133e-007, -4.30265912e-009, 9.28586815e-007, 1.00001168, 2.73720707e-006, 4.31539515e-009, -2.73659361e-006, 0.999999285)) |
995 | - | CFrame.new(-0.5, -1.43618584, -0.205210268, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438), |
995 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1)) |
996 | - | }, .4, false) |
996 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(0.232000008, 0.200000003, 0.59740001)) |
997 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.0118713379, 0.117973328, 1.22682953, 1.00001204, 0.00170348049, -1.86220968e-005, -0.00170349213, 1.00001013, 1.60979762e-005, 1.86497764e-005, -1.60657855e-005, 0.999999285)) | |
998 | - | Humanoid.WalkSpeed = 200 |
998 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
999 | - | attack = false |
999 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003)) |
1000 | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.170646667, -2.20620346, -4.11187887, 1.00001299, 0.00135321938, 4.18644504e-007, -0.00135323033, 1.00001109, 2.83407667e-006, -4.147997e-007, -2.83402255e-006, 0.999999285)) | |
1001 | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(0.579999983, 0.579999983, 0.579999983)) | |
1002 | - | function badoge() |
1002 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.34800005, 0.200000003, 0.200000003)) |
1003 | - | attack = true |
1003 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-5.12456751, -0.434249878, -2.04071569, -0.00161815656, 2.28647568e-005, 0.999998331, 1.00000501, -0.000935775577, 0.00161816564, 0.000935807999, 1.00000536, -2.13500443e-005)) |
1004 | - | Humanoid.WalkSpeed = 2000 |
1004 | + | mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 0.579999983)) |
1005 | - | --so(536642316,Torso,1,1) |
1005 | + | Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Part",Vector3.new(2.31999993, 0.231999993, 0.200000003)) |
1006 | - | Effects.Wave(RootPart.CFrame*CFrame.Angles(math.rad(-90),0,0),Vector3.new(),Vector3.new(1,.1,1),"White",math.random(-10,10),false,.1) |
1006 | + | Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(1.27036333, -1.68534136, 0.286766052, 4.37200288e-006, -0.00031248352, -0.999999225, -0.00104415184, 1.00001121, -0.000312483375, 1.00001323, 0.00104414311, 4.04568164e-006)) |
1007 | - | BodyVel(RootPart,RootPart.CFrame.lookVector*-200) |
1007 | + | mesh("SpecialMesh",Part,Enum.MeshType.Wedge,"",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.579999983)) |
1008 | - | for i=0,1,.1 do |
1008 | + | Barrel=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Dark stone grey","Barrel",Vector3.new(0.695999742, 0.200000003, 0.928000033)) |
1009 | Barrelweld=weld(m,handle,Barrel,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-1.09376717, 3.31707621, -0.00493240356, -0.00171980122, 1.00000441, 1.36221133e-005, -5.93967741e-007, -1.36229164e-005, 0.999999642, 1.00000536, 0.00171979528, 6.1739911e-007)) | |
1010 | - | PlayAnimationFromTable({ |
1010 | + | mesh("CylinderMesh",Barrel,"","",Vector3.new(0, 0, 0),Vector3.new(1, 0.579999983, 1)) |
1011 | - | CFrame.new(0, -0.210508779, 0.312937856, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388), |
1011 | + | |
1012 | - | CFrame.new(0, 1.4075644, -0.288293391, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388), |
1012 | + | LASER_WIDTH = 5 |
1013 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
1013 | + | LASER_MAGIC_CIRCLE_DISTANCE = 6.5 |
1014 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
1014 | + | laser_data = {} |
1015 | - | CFrame.new(0.5, -1.9652698, 0.196958005, 1, 0, 0, 0, 0.984807789, 0.173648715, 0, -0.173648685, 0.984807789), |
1015 | + | |
1016 | - | CFrame.new(-0.5, -1.43618536, -0.205215126, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
1016 | + | player=owner |
1017 | - | }, .4, false) |
1017 | + | char=player.Character |
1018 | active=false | |
1019 | - | Humanoid.WalkSpeed = 200 |
1019 | + | |
1020 | - | attack = false |
1020 | + | math = { |
1021 | abs = math.abs, | |
1022 | acos = math.acos, | |
1023 | - | Mouse.Button1Down:connect(function() |
1023 | + | asin = math.asin, |
1024 | - | if attack == false then |
1024 | + | atan = math.atan, |
1025 | - | zhold = true |
1025 | + | atan2 = math.atan2, |
1026 | - | shoot() |
1026 | + | ceil = math.ceil, |
1027 | cos = math.cos, | |
1028 | cosh = math.cosh, | |
1029 | deg = math.deg, | |
1030 | - | Mouse.Button1Up:connect(function() |
1030 | + | exp = math.exp, |
1031 | - | zhold = false |
1031 | + | floor = math.floor, |
1032 | fmod = math.fmod, | |
1033 | frexp = math.frexp, | |
1034 | - | local sprintt = 0 |
1034 | + | huge = math.huge, |
1035 | - | Mouse.KeyDown:connect(function(k) |
1035 | + | ldexp = math.ldexp, |
1036 | - | k = k:lower() |
1036 | + | log = math.log, |
1037 | - | if k=='m' then |
1037 | + | log10 = math.log10, |
1038 | - | if mus.IsPlaying == true then |
1038 | + | max = math.max, |
1039 | - | mus:Stop() |
1039 | + | min = math.min, |
1040 | - | elseif mus.IsPaused == true then |
1040 | + | modf = math.modf, |
1041 | - | mus:Play() |
1041 | + | phi = 1.618033988749895, |
1042 | pi = math.pi, | |
1043 | pow = math.pow, | |
1044 | rad = math.rad, | |
1045 | - | if k == 'q' then |
1045 | + | random = math.random, |
1046 | - | if Anim == "Fall" or Anim == "Jump" then |
1046 | + | randomseed = math.randomseed, |
1047 | - | badoge() |
1047 | + | sin = math.sin, |
1048 | sinh = math.sinh, | |
1049 | - | bdoge() |
1049 | + | sqrt = math.sqrt, |
1050 | tan = math.tan, | |
1051 | - | elseif k == 'e' then |
1051 | + | tanh = math.tanh, |
1052 | - | if Anim == "Fall" or Anim == "Jump" then |
1052 | + | tau = 2 * math.pi |
1053 | - | adoge() |
1053 | + | |
1054 | magicCircleData = {} | |
1055 | - | doge() |
1055 | + | MAGIC_CIRCLE_DEFAULT_OFFSET = 6.25 |
1056 | function AnimateMagicCircle(data) | |
1057 | - | if k == "y" then |
1057 | + | local frame, direction, magic_circle_model, magic_circle_part, magic_circle_light, magic_circle_decal_back, magic_circle_decal_front, duration, |
1058 | - | VOLUME = 10 |
1058 | + | |
1059 | - | print(VOLUME) |
1059 | + | stay, magic_circle_adornee_func, magic_circle_offset = unpack(data) |
1060 | frame = frame + 1 | |
1061 | data[1] = frame | |
1062 | -- local transparency = (frame / duration) ^ stay | |
1063 | local transparency = 1 | |
1064 | - | Mouse.KeyUp:connect(function(k) |
1064 | + | local opacity = 1 |
1065 | - | k = k:lower() |
1065 | + | if frame == duration then |
1066 | - | if k == 'z' then |
1066 | + | pcall(game.Destroy, magic_circle_model) |
1067 | - | zhold = false |
1067 | + | magicCircleData[data] = nil |
1068 | else | |
1069 | if magic_circle_model.Parent ~= workspace then | |
1070 | - | Humanoid.WalkSpeed = 200 |
1070 | + | magic_circle_model.Parent=workspace |
1071 | - | coroutine.wrap(function() |
1071 | + | end |
1072 | - | while 1 do |
1072 | + | local magic_circle_adornee = magic_circle_adornee_func() |
1073 | magic_circle_position = magic_circle_adornee.Position + direction * magic_circle_offset | |
1074 | - | if doe <= 360 then |
1074 | + | local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0, math.tau * frame / |
1075 | - | doe = doe + 2 |
1075 | + | |
1076 | 25) | |
1077 | - | doe = 0 |
1077 | + | magic_circle_part.CFrame = magic_circle_cframe |
1078 | magic_circle_light.Brightness = opacity | |
1079 | magic_circle_decal_back.Transparency = 1 | |
1080 | - | end)() |
1080 | + | magic_circle_decal_front.Transparency = 1 |
1081 | end | |
1082 | end | |
1083 | function CreateMagicCircle(target, magic_circle_scale, magic_circle_image, light_color, duration, stay, magic_circle_adornee_func, | |
1084 | ||
1085 | - | if Head:FindFirstChild("mus")==nil then |
1085 | + | magic_circle_offset) |
1086 | - | mus = Instance.new("Sound",Head) |
1086 | + | local magic_circle_adornee = magic_circle_adornee_func() |
1087 | - | mus.Name = "mus" |
1087 | + | if magic_circle_adornee then |
1088 | - | mus.SoundId = "rbxassetid://1131624146" |
1088 | + | local origin = magic_circle_adornee.Position |
1089 | - | mus.Looped = true |
1089 | + | local direction = (target - origin).unit |
1090 | - | mus.Volume = VOLUME |
1090 | + | local magic_circle_position = origin + direction * magic_circle_offset |
1091 | - | mus:Play() |
1091 | + | local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) |
1092 | local magic_circle_model = Instance.new("Model") | |
1093 | - | if sprintt >= 1 then |
1093 | + | local magic_circle_part = Instance.new("Part", magic_circle_model) |
1094 | - | sprintt = sprintt - 1 |
1094 | + | local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part) |
1095 | local magic_circle_light = Instance.new("PointLight", magic_circle_part) | |
1096 | - | --Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude |
1096 | + | local magic_circle_decal_back = Instance.new("Decal", magic_circle_part) |
1097 | - | velocity = RootPart.Velocity.y |
1097 | + | local magic_circle_decal_front = Instance.new("Decal", magic_circle_part) |
1098 | magic_circle_model.Archivable = false | |
1099 | - | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara) |
1099 | + | magic_circle_part.Anchored = true |
1100 | - | if RootPart.Velocity.y > 1 and hit == nil then |
1100 | + | magic_circle_part.BottomSurface = "Smooth" |
1101 | - | Anim = "Jump" |
1101 | + | magic_circle_part.CanCollide = false |
1102 | - | if attack == false then |
1102 | + | magic_circle_part.CFrame = magic_circle_cframe |
1103 | - | PlayAnimationFromTable({ |
1103 | + | magic_circle_part.FormFactor = "Custom" |
1104 | - | CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
1104 | + | magic_circle_part.Locked = true |
1105 | - | CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855), |
1105 | + | magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2) |
1106 | - | CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012), |
1106 | + | magic_circle_part.TopSurface = "Smooth" |
1107 | - | CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012), |
1107 | + | magic_circle_part.Transparency = 1 |
1108 | - | CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), |
1108 | + | magic_circle_mesh.Scale = Vector3.new(60, 60, 0) * magic_circle_scale |
1109 | - | CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), |
1109 | + | magic_circle_light.Color = light_color |
1110 | - | }, .3, false) |
1110 | + | magic_circle_light.Range = 16 * magic_circle_scale |
1111 | magic_circle_light.Shadows = true | |
1112 | - | elseif RootPart.Velocity.y < -1 and hit == nil then |
1112 | + | magic_circle_decal_back.Face = "Back" |
1113 | - | Anim = "Fall" |
1113 | + | magic_circle_decal_back.Texture = magic_circle_image |
1114 | - | if attack == false then |
1114 | + | magic_circle_decal_front.Face = "Front" |
1115 | - | PlayAnimationFromTable({ |
1115 | + | magic_circle_decal_front.Texture = magic_circle_image |
1116 | - | CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), |
1116 | + | magic_circle_model.Parent = workspace |
1117 | - | CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), |
1117 | + | local data = {0, direction, magic_circle_model, magic_circle_part, magic_circle_light, magic_circle_decal_back, magic_circle_decal_front, |
1118 | - | CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012), |
1118 | + | |
1119 | - | CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012), |
1119 | + | duration, stay, magic_circle_adornee_func, magic_circle_offset} |
1120 | - | CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), |
1120 | + | magicCircleData[data] = true |
1121 | - | CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), |
1121 | + | return data |
1122 | - | }, .3, false) |
1122 | + | end |
1123 | end | |
1124 | - | elseif Torsovelocity < 1 and hit ~= nil then |
1124 | + | |
1125 | - | Anim = "Idle" |
1125 | + | --GraphicalEffects.fragmentation = {} |
1126 | - | if attack == false then |
1126 | + | function AnimateLaserOfDeath(data) |
1127 | - | change = 1 |
1127 | + | local frame, directionOrientation, direction, magic_circle_model, laser_part, laser_mesh, magic_circle_part, magic_circle_light, |
1128 | - | PlayAnimationFromTable({ |
1128 | + | |
1129 | - | CFrame.new(-0.0769465268, -7.7815578e-08, -0.031559173, 0.939695537, 1.01607293e-06, 0.342021346, 7.9855522e-07, 1.00000191, 5.12654879e-07, -0.342019558, 2.16066837e-07, 0.939692855) * CFrame.new(0,.05 * math.cos((sine)/10), 0), |
1129 | + | magic_circle_decal_back, magic_circle_decal_front, sound, laser_scale, fragmentation_size, duration, laser_lights, laser_effects, stay, light_effects = |
1130 | - | CFrame.new(0.0615186803, 1.4999913, 0.0559706129, 0.939695537, 7.9855522e-07, -0.342019558, 1.01607293e-06, 1.00000191, 2.16066837e-07, 0.342021346, 5.12654879e-07, 0.939692855), |
1130 | + | |
1131 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
1131 | + | unpack(data) |
1132 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
1132 | + | local laser_color = laser_part.Color |
1133 | - | CFrame.new(0.500003159, -2.00000715, -1.98185444e-06, 0.939692736, 0, -0.342019916, 0, 1, 0, 0.342019886, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), |
1133 | + | frame = frame + 1 |
1134 | - | CFrame.new(-0.500018835, -2.0000062, 2.08616257e-07, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), |
1134 | + | data[1] = frame |
1135 | - | }, .3, false) |
1135 | + | local transparency = 1 |
1136 | -- local transparency = (frame / duration) ^ stay | |
1137 | - | elseif Torsovelocity > 2 and hit ~= nil then |
1137 | + | local opacity = 1 |
1138 | - | Anim = "Walk" |
1138 | + | if frame == 2 then |
1139 | - | if attack == false then |
1139 | + | sound:Play() |
1140 | - | Humanoid.WalkSpeed = 200 |
1140 | + | end |
1141 | - | PlayAnimationFromTable({ |
1141 | + | if frame == duration then |
1142 | - | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 2.5), 0) * CFrame.Angles(0, 0, 0), |
1142 | + | pcall(game.Destroy, magic_circle_model) |
1143 | - | CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), |
1143 | + | laser_data[data] = nil |
1144 | - | CFrame.new(0.858022809, 0.339910388, -0.78796947, 0.296197057, 0.813798428, 0.499999553, 0.171009049, 0.469846249, -0.866025627, -0.939693213, 0.342018723, 1.7801861e-07), |
1144 | + | else |
1145 | - | CFrame.new(-1.12680423, -0.351213962, -0.287614167, 0.0669000372, 0.109107949, 0.991776109, 0.843825459, 0.52423954, -0.114593051, -0.532431304, 0.844552159, -0.05699642), |
1145 | + | if magic_circle_model.Parent ~= workspace then |
1146 | - | CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 5)), 0, 0), |
1146 | + | magic_circle_model.Parent=workspace |
1147 | - | CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 5)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 5)), 0, 0), |
1147 | + | end |
1148 | - | }, .3, false) |
1148 | + | local laser_distance = 0 |
1149 | local origin = Barrel.CFrame | |
1150 | if not light_effects then | |
1151 | direction = (origin * directionOrientation - origin.p).unit | |
1152 | end | |
1153 | local magic_circle_position = origin.p + direction * LASER_MAGIC_CIRCLE_DISTANCE | |
1154 | local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) * CFrame.Angles(0, 0, math.tau * frame / | |
1155 | ||
1156 | 25) | |
1157 | local loop_scale = (laser_scale - 1) / 10 | |
1158 | for x_offset = -loop_scale, loop_scale, 2 do | |
1159 | for y_offset = -loop_scale, loop_scale, 2 do | |
1160 | local origin_position = magic_circle_cframe * Vector3.new(x_offset, y_offset, 0) | |
1161 | for index = 1, 8 do | |
1162 | local part, position | |
1163 | for ray_index = 1, 10 do | |
1164 | local ray = Ray.new(origin_position + direction * (999 * (ray_index - 1)), direction * 999) | |
1165 | part, position = workspace:FindPartOnRay(ray, magic_circle_model) | |
1166 | if part then | |
1167 | break | |
1168 | end | |
1169 | end | |
1170 | if part then | |
1171 | laser_distance = (position - origin_position).magnitude | |
1172 | if frame % 8 == 1 and index == 1 then | |
1173 | Instance.new("Explosion", workspace).Position = position | |
1174 | end | |
1175 | if not part:IsA("Terrain") then | |
1176 | pcall(part.BreakJoints, part) | |
1177 | local is_block = part:IsA("Part") and part.Shape == Enum.PartType.Block | |
1178 | local mass = part:GetMass() | |
1179 | local size = part.Size | |
1180 | if (is_block and ((size.X < fragmentation_size and size.Y < fragmentation_size and size.Z < | |
1181 | ||
1182 | fragmentation_size) or (not part.Anchored and mass < 750))) or (not is_block and mass < 250000) then | |
1183 | local part_transparency = math.max(part.Transparency + 0.007 * fragmentation_size, 0.5) | |
1184 | if part_transparency >= 0.5 then -- temporarily to minimize debris | |
1185 | pcall(game.Destroy, part) | |
1186 | else | |
1187 | local cframe = part.CFrame | |
1188 | part.Anchored = false | |
1189 | part.BrickColor = BrickColor.new("Medium stone grey") | |
1190 | part.CanCollide = true | |
1191 | if part:IsA("FormFactorPart") then | |
1192 | part.FormFactor = "Custom" | |
1193 | end | |
1194 | part.Size = size - Vector3.new(0.135, 0.135, 0.135) * fragmentation_size | |
1195 | part.Transparency = part_transparency | |
1196 | part.CFrame = cframe + direction * 5 | |
1197 | part.Velocity = part.Velocity + direction * 40 | |
1198 | end | |
1199 | elseif is_block then | |
1200 | local parts = {part} | |
1201 | local model = Instance.new("Model", part.Parent) | |
1202 | model.Name = "Fragments" | |
1203 | if size.X >= fragmentation_size then | |
1204 | size = Vector3.new(0.5, 1, 1) * size | |
1205 | local archivable = part.Archivable | |
1206 | local cframe = part.CFrame | |
1207 | part.FormFactor = "Custom" | |
1208 | part.Size = size | |
1209 | part.Archivable = true | |
1210 | local part_clone = part:Clone() | |
1211 | part.Archivable = archivable | |
1212 | part_clone.Archivable = archivable | |
1213 | part.CFrame = cframe * CFrame.new(-0.5 * size.X, 0, 0) | |
1214 | part_clone.CFrame = cframe * CFrame.new(0.5 * size.X, 0, 0) | |
1215 | part_clone.Parent = model | |
1216 | parts[2] = part_clone | |
1217 | end | |
1218 | if size.Y >= fragmentation_size then | |
1219 | size = Vector3.new(1, 0.5, 1) * size | |
1220 | for part_index = 1, #parts do | |
1221 | local part = parts[part_index] | |
1222 | local archivable = part.Archivable | |
1223 | local cframe = part.CFrame | |
1224 | part.FormFactor = "Custom" | |
1225 | part.Size = size | |
1226 | part.Archivable = true | |
1227 | local part_clone = part:Clone() | |
1228 | part.Archivable = archivable | |
1229 | part_clone.Archivable = archivable | |
1230 | part.CFrame = cframe * CFrame.new(0, -0.5 * size.Y, 0) | |
1231 | part_clone.CFrame = cframe * CFrame.new(0, 0.5 * size.Y, 0) | |
1232 | part_clone.Parent = model | |
1233 | table.insert(parts, part_clone) | |
1234 | end | |
1235 | end | |
1236 | if size.Z >= fragmentation_size then | |
1237 | size = Vector3.new(1, 1, 0.5) * size | |
1238 | for part_index = 1, #parts do | |
1239 | local part = parts[part_index] | |
1240 | local archivable = part.Archivable | |
1241 | local cframe = part.CFrame | |
1242 | part.FormFactor = "Custom" | |
1243 | part.Size = size | |
1244 | part.Archivable = true | |
1245 | local part_clone = part:Clone() | |
1246 | part.Archivable = archivable | |
1247 | part_clone.Archivable = archivable | |
1248 | part.CFrame = cframe * CFrame.new(0, 0, -0.5 * size.Z) | |
1249 | part_clone.CFrame = cframe * CFrame.new(0, 0, 0.5 * size.Z) | |
1250 | part_clone.Parent = model | |
1251 | table.insert(parts, part_clone) | |
1252 | end | |
1253 | end | |
1254 | for _, part in ipairs(parts) do | |
1255 | part:MakeJoints() | |
1256 | end | |
1257 | else | |
1258 | break | |
1259 | end | |
1260 | end | |
1261 | else | |
1262 | laser_distance = 9990 | |
1263 | break | |
1264 | end | |
1265 | end | |
1266 | end | |
1267 | end | |
1268 | local laser_cframe = magic_circle_cframe * CFrame.Angles(-0.5 * math.pi, 0, 0) | |
1269 | local laser_width = LASER_WIDTH * opacity * laser_scale | |
1270 | local laser_mesh_offset = Vector3.new(0, 0.5 * laser_distance, 0) | |
1271 | laser_part.CFrame = laser_cframe | |
1272 | if laser_effects then | |
1273 | local laser_effect_data_1, laser_effect_data_2 = laser_effects[1], laser_effects[2] | |
1274 | local laser_effect_1, laser_effect_mesh_1 = laser_effect_data_1[1], laser_effect_data_1[2] | |
1275 | local laser_effect_2, laser_effect_mesh_2 = laser_effect_data_2[1], laser_effect_data_2[2] | |
1276 | laser_effect_1.CFrame = laser_cframe | |
1277 | laser_effect_2.CFrame = laser_cframe | |
1278 | laser_effect_mesh_1.Offset = laser_mesh_offset | |
1279 | laser_effect_mesh_2.Offset = laser_mesh_offset | |
1280 | local game_time = time() | |
1281 | local effect_scale_1 = 0.5 + 0.5 * math.sin(16 * math.pi * game_time) | |
1282 | local effect_scale_2 = 0.5 + 0.5 * math.cos(16 * math.pi * game_time) | |
1283 | laser_effect_mesh_1.Scale = 5 * Vector3.new(laser_width * effect_scale_1, laser_distance, laser_width * effect_scale_1) | |
1284 | laser_effect_mesh_2.Scale = 5 * Vector3.new(laser_width * effect_scale_2, laser_distance, laser_width * effect_scale_2) | |
1285 | laser_width = laser_width * 0.25 | |
1286 | end | |
1287 | laser_mesh.Offset = laser_mesh_offset | |
1288 | laser_mesh.Scale = 5 * Vector3.new(laser_width, laser_distance, laser_width) | |
1289 | magic_circle_part.CFrame = magic_circle_cframe | |
1290 | magic_circle_light.Brightness = opacity | |
1291 | magic_circle_decal_back.Transparency = 1 | |
1292 | magic_circle_decal_front.Transparency = 1 | |
1293 | if light_effects then | |
1294 | for index, data in ipairs(laser_lights) do | |
1295 | local laser_spotlight_part, laser_spotlight = data[1], data[2] | |
1296 | local laser_spotlight_offset = 30 * (index - 1) | |
1297 | if laser_spotlight_offset <= laser_distance then | |
1298 | laser_spotlight_part.CFrame = magic_circle_cframe * CFrame.new(0, 0, -laser_spotlight_offset) | |
1299 | laser_spotlight.Brightness = opacity | |
1300 | laser_spotlight.Enabled = true | |
1301 | else | |
1302 | laser_spotlight.Enabled = false | |
1303 | end | |
1304 | end | |
1305 | end | |
1306 | end | |
1307 | end | |
1308 | function ShootLaserOfDeath(target, data) | |
1309 | data = data or {} | |
1310 | local brickcolor = data.brickcolor or BrickColor.new("Really black") | |
1311 | local duration = data.duration or 40 | |
1312 | local fragmentation_size = data.fragmentation_size or 3 | |
1313 | local laser_scale = data.laser_scale or 1 | |
1314 | local light_color = data.light_color or Color3.new(1, 0.5, 1) | |
1315 | local magic_circle_image = data.magic_circle_image or "rbxassetid://122610943" | |
1316 | local magic_circle_scale = data.magic_circle_scale or 1 | |
1317 | local sound_volume = data.sound_volume or 1 / 3 | |
1318 | local special_effects = data.special_effects | |
1319 | local stay = data.stay or 4 | |
1320 | local origin = Barrel.CFrame | |
1321 | local directionOrientation = origin:pointToObjectSpace(target) | |
1322 | local direction = (target - origin.p).unit | |
1323 | local magic_circle_position = origin.p + direction * LASER_MAGIC_CIRCLE_DISTANCE | |
1324 | local magic_circle_cframe = CFrame.new(magic_circle_position, magic_circle_position + direction) | |
1325 | local magic_circle_model = Instance.new("Model") | |
1326 | local laser_part = Instance.new("Part", magic_circle_model) | |
1327 | local laser_mesh = Instance.new("CylinderMesh", laser_part) | |
1328 | local magic_circle_part = Instance.new("Part", magic_circle_model) | |
1329 | local magic_circle_mesh = Instance.new("BlockMesh", magic_circle_part) | |
1330 | local magic_circle_light = Instance.new("PointLight", magic_circle_part) | |
1331 | local magic_circle_decal_back = Instance.new("Decal", magic_circle_part) | |
1332 | local magic_circle_decal_front = Instance.new("Decal", magic_circle_part) | |
1333 | local sound = Instance.new("Sound", magic_circle_part) | |
1334 | sound.Pitch = 0.9 | |
1335 | sound.SoundId = "rbxassetid://222371404" | |
1336 | sound.Volume = 1 | |
1337 | magic_circle_model.Archivable = false | |
1338 | laser_part.Anchored = true | |
1339 | laser_part.BottomSurface = "Smooth" | |
1340 | laser_part.BrickColor = brickcolor | |
1341 | laser_part.Transparency = 1 | |
1342 | laser_part.CanCollide = false | |
1343 | laser_part.CFrame = magic_circle_cframe * CFrame.Angles(-0.5 * math.pi, 0, 0) | |
1344 | laser_part.FormFactor = "Custom" | |
1345 | laser_part.Locked = true | |
1346 | laser_part.Size = Vector3.new(0.2, 0.2, 0.2) | |
1347 | laser_part.TopSurface = "Smooth" | |
1348 | laser_mesh.Offset = Vector3.new(0, 0, 0) | |
1349 | laser_mesh.Name = "Mesh" | |
1350 | laser_mesh.Scale = 5 * laser_scale * Vector3.new(LASER_WIDTH, 0, LASER_WIDTH) | |
1351 | magic_circle_part.Anchored = true | |
1352 | magic_circle_part.BottomSurface = "Smooth" | |
1353 | magic_circle_part.CanCollide = false | |
1354 | magic_circle_part.CFrame = magic_circle_cframe | |
1355 | magic_circle_part.FormFactor = "Custom" | |
1356 | magic_circle_part.Locked = true | |
1357 | magic_circle_part.Size = Vector3.new(0.2, 0.2, 0.2) | |
1358 | magic_circle_part.TopSurface = "Smooth" | |
1359 | magic_circle_part.Transparency = 1 | |
1360 | magic_circle_mesh.Scale = Vector3.new(60, 60, 0) * magic_circle_scale | |
1361 | magic_circle_light.Color = light_color | |
1362 | magic_circle_light.Range = 16 * magic_circle_scale | |
1363 | magic_circle_light.Shadows = true | |
1364 | magic_circle_decal_back.Face = "Back" | |
1365 | magic_circle_decal_back.Texture = magic_circle_image | |
1366 | magic_circle_decal_front.Face = "Front" | |
1367 | magic_circle_decal_front.Texture = magic_circle_image | |
1368 | magic_circle_model.Parent = workspace | |
1369 | local laser_color = brickcolor.Color | |
1370 | local laser_lights = {} | |
1371 | local light_effects = laser_color.r + laser_color.g + laser_color.b > 0.25 | |
1372 | if light_effects then | |
1373 | local laser_spotlight_part_template = Instance.new("Part") | |
1374 | local laser_spotlight_light_template = Instance.new("SpotLight", laser_spotlight_part_template) | |
1375 | laser_spotlight_part_template.Anchored = true | |
1376 | laser_spotlight_part_template.Anchored = true | |
1377 | laser_spotlight_part_template.BottomSurface = "Smooth" | |
1378 | laser_spotlight_part_template.CanCollide = false | |
1379 | laser_spotlight_part_template.FormFactor = "Custom" | |
1380 | laser_spotlight_part_template.Locked = true | |
1381 | laser_spotlight_part_template.Size = Vector3.new(0.2, 0.2, 0.2) | |
1382 | laser_spotlight_part_template.TopSurface = "Smooth" | |
1383 | laser_spotlight_part_template.Transparency = 1 | |
1384 | laser_spotlight_light_template.Angle = 45 | |
1385 | laser_spotlight_light_template.Color = laser_color | |
1386 | laser_spotlight_light_template.Enabled = true | |
1387 | laser_spotlight_light_template.Name = "Light" | |
1388 | laser_spotlight_light_template.Range = 60 | |
1389 | for index = 1, 40 do | |
1390 | local laser_spotlight_part = laser_spotlight_part_template:Clone() | |
1391 | laser_spotlight_part.CFrame = magic_circle_cframe * CFrame.new(0, 0, -30 * (index - 1)) | |
1392 | laser_spotlight_part.Parent = magic_circle_model | |
1393 | laser_lights[index] = {laser_spotlight_part, laser_spotlight_part.Light} | |
1394 | end | |
1395 | end | |
1396 | local laser_effects | |
1397 | if special_effects then | |
1398 | laser_effects = {} | |
1399 | local laser_effect_1 = laser_part:Clone() | |
1400 | laser_effect_1.BrickColor = special_effects | |
1401 | laser_effect_1.Transparency = 1 | |
1402 | local laser_effect_2 = laser_effect_1:Clone() | |
1403 | laser_effects[1], laser_effects[2] = {laser_effect_1, laser_effect_1.Mesh}, {laser_effect_2, laser_effect_2.Mesh} | |
1404 | laser_effect_1.Parent = magic_circle_model | |
1405 | laser_effect_2.Parent = magic_circle_model | |
1406 | end | |
1407 | laser_data={0, directionOrientation, direction, magic_circle_model, laser_part, laser_mesh, magic_circle_part, | |
1408 | ||
1409 | magic_circle_light, magic_circle_decal_back, magic_circle_decal_front, sound, laser_scale, fragmentation_size, duration, laser_lights, laser_effects, stay, | |
1410 | ||
1411 | light_effects} | |
1412 | end | |
1413 | ||
1414 | function laser(target) | |
1415 | ShootLaserOfDeath(target, {brickcolor = BrickColor.new("New Yeller"), duration = 20, fragmentation_size = 10, | |
1416 | ||
1417 | laser_scale = 3, light_color = Color3.new(1, 0.5, 0), magic_circle_image = "rbxassetid://1", magic_circle_scale = 1.5, sound_volume = 1, | |
1418 | ||
1419 | special_effects = BrickColor.new("Deep orange"), stay = 2}) | |
1420 | end | |
1421 | ||
1422 | function LaserAtMouse() | |
1423 | laser(mouse.Hit.p) | |
1424 | end | |
1425 | ||
1426 | mouse.Button1Down:connect(function() | |
1427 | pcall(function() | |
1428 | shoot() | |
1429 | end) | |
1430 | end) | |
1431 | ||
1432 | ready=false | |
1433 | ||
1434 | mouse.KeyDown:connect(function(k) | |
1435 | k=k:lower() | |
1436 | if k=='f' then | |
1437 | if ready==false then | |
1438 | ready=true | |
1439 | attack=true | |
1440 | elseif ready==true then | |
1441 | ready=false | |
1442 | attack=false | |
1443 | end | |
1444 | elseif k=='q' and attack==false then | |
1445 | Melee() | |
1446 | end | |
1447 | end) | |
1448 | ||
1449 | function Melee() | |
1450 | attack = true | |
1451 | con1=Hitbox.Touched:connect(function(hit) Damagefunc(hit,50,100,math.random(10,15),"Normal",RootPart,.2,1) end) | |
1452 | for i=0,3,0.3 do | |
1453 | swait() | |
1454 | LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(5),math.rad(25),math.rad(-20)),.3) | |
1455 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(160),math.rad(0),math.rad(0)),.3) | |
1456 | ||
1457 | end | |
1458 | so("http://www.roblox.com/asset/?id=200632136",Hitbox,1,0.8) | |
1459 | for i=0,3,0.3 do | |
1460 | swait() | |
1461 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1462 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(-150),math.rad(0),math.rad(0)),.3) | |
1463 | end | |
1464 | attack=false | |
1465 | con1:disconnect() | |
1466 | end | |
1467 | ||
1468 | function shoot() | |
1469 | if attack==false and ready==false then | |
1470 | ready=false | |
1471 | attack=false | |
1472 | LaserAtMouse() | |
1473 | for i=0,3,0.3 do | |
1474 | swait() | |
1475 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1476 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-30),math.rad(0),math.rad(0)),.3) | |
1477 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(120),math.rad(0),math.rad(0)),.3) | |
1478 | LW.C0=clerp(LW.C0,cf(-0,0.5,-.7)*angles(math.rad(180),math.rad(0),math.rad(40)),.3) | |
1479 | Torso.Velocity=Head.CFrame.lookVector*-100 | |
1480 | end | |
1481 | attack=false | |
1482 | end | |
1483 | end | |
1484 | ||
1485 | local sine = 0 | |
1486 | local change = 1 | |
1487 | local val = 0 | |
1488 | ||
1489 | while true do | |
1490 | swait() | |
1491 | sine = sine + change | |
1492 | local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude | |
1493 | local velderp=RootPart.Velocity.y | |
1494 | hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character) | |
1495 | if equipped==true or equipped==false then | |
1496 | if attack==false then | |
1497 | idle=idle+1 | |
1498 | else | |
1499 | idle=0 | |
1500 | end | |
1501 | if idle>=500 then | |
1502 | if attack==false then | |
1503 | --Sheath() | |
1504 | end | |
1505 | end | |
1506 | if RootPart.Velocity.y > 1 and hitfloor==nil then | |
1507 | Anim="Jump" | |
1508 | if attack==false then | |
1509 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1510 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(-20),math.rad(0),math.rad(0)),.3) | |
1511 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1512 | end | |
1513 | elseif RootPart.Velocity.y < -1 and hitfloor==nil then | |
1514 | Anim="Fall" | |
1515 | if attack==false then | |
1516 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1517 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(10),math.rad(0),math.rad(0)),.3) | |
1518 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3) | |
1519 | end | |
1520 | elseif torvel<1 and hitfloor~=nil then | |
1521 | Anim="Idle" | |
1522 | if attack==false then | |
1523 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1524 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1525 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1526 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(0)),.3) | |
1527 | LW.C0=clerp(LW.C0,cf(-0,0.5,-.7)*angles(math.rad(120),math.rad(0),math.rad(40)),.3) | |
1528 | end | |
1529 | elseif torvel>2 and torvel<22 and hitfloor~=nil then | |
1530 | Anim="Walk" | |
1531 | if attack==false then | |
1532 | change=3 | |
1533 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1534 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1535 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1536 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(0)),.3) | |
1537 | LW.C0=clerp(LW.C0,cf(-0,0.5,-.7)*angles(math.rad(120),math.rad(0),math.rad(40)),.3) | |
1538 | end | |
1539 | elseif torvel>=22 and hitfloor~=nil then | |
1540 | Anim="Run" | |
1541 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1542 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(20),math.rad(0),math.rad(0)),.3) | |
1543 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10),math.rad(0),math.rad(0)),.3) | |
1544 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(60),math.rad(0),math.rad(0)),.3) | |
1545 | LW.C0=clerp(LW.C0,cf(-0,0.5,-.7)*angles(math.rad(120),math.rad(0),math.rad(40)),.3) | |
1546 | if attack==false then | |
1547 | end | |
1548 | end | |
1549 | end | |
1550 | if ready==true then | |
1551 | handleweld.C0=clerp(handleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1552 | RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1553 | Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3) | |
1554 | RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(90),math.rad(0),math.rad(0)),.3) | |
1555 | LW.C0=clerp(LW.C0,cf(-0,0.5,-.7)*angles(math.rad(160),math.rad(0),math.rad(40)),.3) | |
1556 | end | |
1557 | pcall(function() | |
1558 | AnimateLaserOfDeath(laser_data) | |
1559 | end) | |
1560 | end |