SHOW:
|
|
- or go back to the newest paste.
1 | ------------------------ | |
2 | --Aiju Love Trap Rifle-- | |
3 | ---------------------------------------------------------------- | |
4 | --By CKbackup (Sugarie Saffron) -- | |
5 | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- | |
6 | --Discord: Sugarie Saffron#4705 -- | |
7 | ---------------------------------------------------------------- | |
8 | -- This script has been converted to FE by iPxter | |
9 | ||
10 | ||
11 | - | local Player = game:service'Players'.localPlayer |
11 | + | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end |
12 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
13 | do | |
14 | - | local Mouse = Player:GetMouse() |
14 | + | print("FE Compatibility code by Mokiros | Translated to FE by iPxter") |
15 | script.Parent = Player.Character | |
16 | ||
17 | --RemoteEvent for communicating | |
18 | local Event = Instance.new("RemoteEvent") | |
19 | Event.Name = "UserInput_Event" | |
20 | ||
21 | --Fake event to make stuff like Mouse.KeyDown work | |
22 | local function fakeEvent() | |
23 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
24 | t.connect = t.Connect | |
25 | return t | |
26 | end | |
27 | ||
28 | --Creating fake input objects with fake variables | |
29 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
30 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
31 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
32 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
33 | end} | |
34 | --Merged 2 functions into one by checking amount of arguments | |
35 | CAS.UnbindAction = CAS.BindAction | |
36 | ||
37 | --This function will trigger the events that have been :Connect()'ed | |
38 | local function te(self,ev,...) | |
39 | local t = m[ev] | |
40 | if t and t._fakeEvent and t.Function then | |
41 | t.Function(...) | |
42 | end | |
43 | end | |
44 | m.TrigEvent = te | |
45 | UIS.TrigEvent = te | |
46 | ||
47 | Event.OnServerEvent:Connect(function(plr,io) | |
48 | if plr~=Player then return end | |
49 | if io.isMouse then | |
50 | m.Target = io.Target | |
51 | m.Hit = io.Hit | |
52 | else | |
53 | local b = io.UserInputState == Enum.UserInputState.Begin | |
54 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
55 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
56 | end | |
57 | for _,t in pairs(CAS.Actions) do | |
58 | for _,k in pairs(t.Keys) do | |
59 | if k==io.KeyCode then | |
60 | t.Function(t.Name,io.UserInputState,io) | |
61 | end | |
62 | end | |
63 | end | |
64 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
65 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
66 | end | |
67 | end) | |
68 | Event.Parent = NLS([==[ | |
69 | local Player = game:GetService("Players").LocalPlayer | |
70 | local Event = script:WaitForChild("UserInput_Event") | |
71 | ||
72 | local UIS = game:GetService("UserInputService") | |
73 | local input = function(io,a) | |
74 | if a then return end | |
75 | --Since InputObject is a client-side instance, we create and pass table instead | |
76 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
77 | end | |
78 | UIS.InputBegan:Connect(input) | |
79 | UIS.InputEnded:Connect(input) | |
80 | ||
81 | local Mouse = Player:GetMouse() | |
82 | local h,t | |
83 | --Give the server mouse data 30 times every second, but only if the values changed | |
84 | --If player is not moving their mouse, client won't fire events | |
85 | while wait(1/30) do | |
86 | if h~=Mouse.Hit or t~=Mouse.Target then | |
87 | h,t=Mouse.Hit,Mouse.Target | |
88 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
89 | end | |
90 | end]==],Player.Character) | |
91 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
92 | end | |
93 | ||
94 | wait(1/60) | |
95 | Effects = { } | |
96 | local Player = owner | |
97 | local chara = Player.Character | |
98 | local Humanoid = chara:FindFirstChildOfClass("Humanoid") | |
99 | local LeftArm = chara["Left Arm"] | |
100 | local RightArm = chara["Right Arm"] | |
101 | local LeftLeg = chara["Left Leg"] | |
102 | local RightLeg = chara["Right Leg"] | |
103 | local Head = chara.Head | |
104 | local Torso = chara.Torso | |
105 | local Camera = workspace.CurrentCamera | |
106 | local RootPart = chara.HumanoidRootPart | |
107 | local RootJoint = RootPart.RootJoint | |
108 | local attack = false | |
109 | local Anim = 'Idle' | |
110 | local attacktype = 1 | |
111 | local delays = false | |
112 | local play = true | |
113 | local targetted = nil | |
114 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
115 | local velocity = RootPart.Velocity.y | |
116 | local sine = 0 | |
117 | local change = 1 | |
118 | local doe = 0 | |
119 | local Create = LoadLibrary("RbxUtility").Create | |
120 | local debby = game:GetService("Debris") | |
121 | Humanoid.WalkSpeed = 16 | |
122 | ||
123 | Humanoid.Animator.Parent = nil | |
124 | chara.Animate.Parent = nil | |
125 | ||
126 | local newMotor = function(part0, part1, c0, c1) | |
127 | local w = Create('Motor'){ | |
128 | Parent = part0, | |
129 | Part0 = part0, | |
130 | Part1 = part1, | |
131 | C0 = c0, | |
132 | C1 = c1, | |
133 | } | |
134 | return w | |
135 | end | |
136 | ||
137 | function clerp(a, b, t) | |
138 | return a:lerp(b, t) | |
139 | end | |
140 | ||
141 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
142 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
143 | ||
144 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
145 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
146 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
147 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
148 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
149 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
150 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
151 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
152 | ||
153 | local rarmc1 = RW.C1 | |
154 | local larmc1 = LW.C1 | |
155 | local rlegc1 = RH.C1 | |
156 | local llegc1 = LH.C1 | |
157 | ||
158 | local resetc1 = false | |
159 | ||
160 | function PlayAnimationFromTable(table, speed, bool) | |
161 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
162 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
163 | RW.C0 = clerp(RW.C0, table[3], speed) | |
164 | LW.C0 = clerp(LW.C0, table[4], speed) | |
165 | RH.C0 = clerp(RH.C0, table[5], speed) | |
166 | LH.C0 = clerp(LH.C0, table[6], speed) | |
167 | if bool == true then | |
168 | if resetc1 == false then | |
169 | resetc1 = true | |
170 | RootJoint.C1 = RootJoint.C1 | |
171 | Torso.Neck.C1 = Torso.Neck.C1 | |
172 | RW.C1 = rarmc1 | |
173 | LW.C1 = larmc1 | |
174 | RH.C1 = rlegc1 | |
175 | LH.C1 = llegc1 | |
176 | end | |
177 | end | |
178 | end | |
179 | ||
180 | ArtificialHB = Instance.new("BindableEvent", script) | |
181 | ArtificialHB.Name = "Heartbeat" | |
182 | script:WaitForChild("Heartbeat") | |
183 | frame = 0.03333333333333 | |
184 | tf = 0 | |
185 | allowframeloss = false | |
186 | tossremainder = false | |
187 | lastframe = tick() | |
188 | script.Heartbeat:Fire() | |
189 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
190 | tf = tf + s | |
191 | if tf >= frame then | |
192 | if allowframeloss then | |
193 | script.Heartbeat:Fire() | |
194 | lastframe = tick() | |
195 | else | |
196 | for i = 1, math.floor(tf / frame) do | |
197 | script.Heartbeat:Fire() | |
198 | end | |
199 | lastframe = tick() | |
200 | end | |
201 | if tossremainder then | |
202 | tf = 0 | |
203 | else | |
204 | tf = tf - frame * math.floor(tf / frame) | |
205 | end | |
206 | end | |
207 | end) | |
208 | function swait(num) | |
209 | if num == 0 or num == nil then | |
210 | ArtificialHB.Event:wait() | |
211 | else | |
212 | for i = 0, num do | |
213 | ArtificialHB.Event:wait() | |
214 | end | |
215 | end | |
216 | end | |
217 | ||
218 | function RemoveOutlines(part) | |
219 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
220 | end | |
221 | ||
222 | function so(id,par,pit,vol) | |
223 | local sou = Instance.new("Sound", par or workspace) | |
224 | if par == chara then | |
225 | sou.Parent = chara.Torso | |
226 | end | |
227 | sou.Volume = vol | |
228 | sou.Pitch = pit or 1 | |
229 | sou.SoundId = "rbxassetid://" .. id | |
230 | sou.PlayOnRemove = true | |
231 | sou:Destroy() | |
232 | end | |
233 | ||
234 | --This is just for builds-- | |
235 | New = function(Object, Parent, Name, Data) | |
236 | local Object = Instance.new(Object) | |
237 | for Index, Value in pairs(Data or {}) do | |
238 | Object[Index] = Value | |
239 | end | |
240 | Object.Parent = Parent | |
241 | Object.Name = Name | |
242 | return Object | |
243 | end | |
244 | LuvGun = New("Model",chara,"LuvGun",{}) | |
245 | 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),}) | |
246 | 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),}) | |
247 | 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),}) | |
248 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) | |
249 | 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),}) | |
250 | 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),}) | |
251 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) | |
252 | 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),}) | |
253 | 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),}) | |
254 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) | |
255 | 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),}) | |
256 | 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),}) | |
257 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
258 | 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),}) | |
259 | 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),}) | |
260 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
261 | 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),}) | |
262 | 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),}) | |
263 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.200000003, 1, 1),MeshType = Enum.MeshType.Wedge,}) | |
264 | 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),}) | |
265 | 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,}) | |
266 | 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),}) | |
267 | 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),}) | |
268 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.20000005, 1, 1.20000005),MeshType = Enum.MeshType.Cylinder,}) | |
269 | 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),}) | |
270 | 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),}) | |
271 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
272 | 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),}) | |
273 | 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,}) | |
274 | Mesh = New("CylinderMesh",Part,"Mesh",{}) | |
275 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Left,Texture = "rbxassetid://52650427",}) | |
276 | Decal = New("Decal",Part,"Decal",{Face = Enum.NormalId.Right,Texture = "rbxassetid://52650427",}) | |
277 | 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),}) | |
278 | 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),}) | |
279 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
280 | 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),}) | |
281 | 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),}) | |
282 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
283 | 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),}) | |
284 | 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),}) | |
285 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) | |
286 | 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),}) | |
287 | 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),}) | |
288 | 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),}) | |
289 | 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),}) | |
290 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) | |
291 | 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),}) | |
292 | 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),}) | |
293 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
294 | 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),}) | |
295 | 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),}) | |
296 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
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.149993896, 0.318296194, -2.16284752, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) | |
298 | 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),}) | |
299 | 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),}) | |
300 | 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),}) | |
301 | 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),}) | |
302 | 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),}) | |
303 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) | |
304 | 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),}) | |
305 | 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),}) | |
306 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
307 | 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),}) | |
308 | 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),}) | |
309 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
310 | 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),}) | |
311 | 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),}) | |
312 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1, 1.20000005, 1),MeshType = Enum.MeshType.Cylinder,}) | |
313 | 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),}) | |
314 | 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),}) | |
315 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) | |
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(3.81469727e-06, 1.3254528, 3.5490303, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) | |
317 | 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),}) | |
318 | 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),}) | |
319 | 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),}) | |
320 | 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),}) | |
321 | 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),}) | |
322 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.10000002, 1, 1),MeshType = Enum.MeshType.Cylinder,}) | |
323 | 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),}) | |
324 | 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),}) | |
325 | 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),}) | |
326 | 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),}) | |
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(3.81469727e-06, 0.81307435, 1.50698853, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) | |
328 | 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),}) | |
329 | 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),}) | |
330 | 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),}) | |
331 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
332 | 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),}) | |
333 | 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),}) | |
334 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Cylinder,}) | |
335 | 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),}) | |
336 | 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),}) | |
337 | 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),}) | |
338 | 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),}) | |
339 | 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),}) | |
340 | 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),}) | |
341 | 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),}) | |
342 | 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),}) | |
343 | 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),}) | |
344 | 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),}) | |
345 | 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),}) | |
346 | 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),}) | |
347 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) | |
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, 1.67037416, 1.76199532, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) | |
349 | 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),}) | |
350 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) | |
351 | 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),}) | |
352 | 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),}) | |
353 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) | |
354 | 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),}) | |
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.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),}) | |
356 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) | |
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.49672723, 0.777194977, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) | |
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, -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),}) | |
359 | Mesh = New("BlockMesh",Part,"Mesh",{Scale = Vector3.new(0.800000012, 0.5, 0.800000012),}) | |
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.46199775, 0.58023262, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),}) | |
361 | 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),}) | |
362 | Mesh = New("SpecialMesh",Part,"Mesh",{MeshType = Enum.MeshType.Wedge,}) | |
363 | 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),}) | |
364 | --------------------------- | |
365 | ||
366 | function rayCast(Position, Direction, Range, Ignore) | |
367 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
368 | end | |
369 | ||
370 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
371 | if SinglePlayer then | |
372 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
373 | end | |
374 | local List = {} | |
375 | for i, v in pairs(workspace:GetDescendants()) do | |
376 | if v:IsA("Model") then | |
377 | if v:findFirstChild("Head") then | |
378 | if v ~= chara then | |
379 | if (v.Head.Position - Position).magnitude <= Distance then | |
380 | table.insert(List, v) | |
381 | end | |
382 | end | |
383 | end | |
384 | end | |
385 | end | |
386 | return List | |
387 | end | |
388 | ||
389 | EffectModel = Create("Model"){ | |
390 | Parent = chara, | |
391 | Name = "Effects", | |
392 | } | |
393 | ||
394 | --Effect Functions-- | |
395 | Effects = { | |
396 | ||
397 | Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor) | |
398 | local p = Instance.new("Part",EffectModel) | |
399 | p.BrickColor = BrickColor.new(colour) | |
400 | p.Size = partsize | |
401 | p.Anchored = true | |
402 | p.CanCollide = false | |
403 | p.Material = matr | |
404 | p.CFrame = cf | |
405 | if inverse == true then | |
406 | p.Transparency = 1 | |
407 | else | |
408 | p.Transparency = 0 | |
409 | end | |
410 | local m = Instance.new("BlockMesh",p) | |
411 | m.Scale = meshstart | |
412 | coroutine.wrap(function() | |
413 | for i=0,1,factor do | |
414 | swait() | |
415 | if inverse == true then | |
416 | p.Transparency = 1-i | |
417 | else | |
418 | p.Transparency = i | |
419 | end | |
420 | m.Scale = m.Scale + meshadd | |
421 | if spin == true then | |
422 | p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
423 | end | |
424 | end | |
425 | p:Destroy() | |
426 | end)() | |
427 | return p | |
428 | end, | |
429 | ||
430 | Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
431 | local p = Instance.new("Part",EffectModel) | |
432 | p.BrickColor = BrickColor.new(colour) | |
433 | p.Size = partsize | |
434 | p.Anchored = true | |
435 | p.CanCollide = false | |
436 | p.Material = matr | |
437 | p.CFrame = cf | |
438 | if inverse == true then | |
439 | p.Transparency = 1 | |
440 | else | |
441 | p.Transparency = 0 | |
442 | end | |
443 | local m = Instance.new("SpecialMesh",p) | |
444 | m.MeshType = "Sphere" | |
445 | m.Scale = meshstart | |
446 | coroutine.wrap(function() | |
447 | for i=0,1,factor do | |
448 | swait() | |
449 | if inverse == true then | |
450 | p.Transparency = 1-i | |
451 | else | |
452 | p.Transparency = i | |
453 | end | |
454 | m.Scale = m.Scale + meshadd | |
455 | end | |
456 | p:Destroy() | |
457 | end)() | |
458 | return p | |
459 | end, | |
460 | ||
461 | Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
462 | local p = Instance.new("Part",EffectModel) | |
463 | p.BrickColor = BrickColor.new(colour) | |
464 | p.Size = partsize | |
465 | p.Anchored = true | |
466 | p.CanCollide = false | |
467 | p.Material = matr | |
468 | p.CFrame = cf | |
469 | if inverse == true then | |
470 | p.Transparency = 1 | |
471 | else | |
472 | p.Transparency = 0 | |
473 | end | |
474 | local m = Instance.new("CylinderMesh",p) | |
475 | m.Scale = meshstart | |
476 | coroutine.wrap(function() | |
477 | for i=0,1,factor do | |
478 | swait() | |
479 | if inverse == true then | |
480 | p.Transparency = 1-i | |
481 | else | |
482 | p.Transparency = i | |
483 | end | |
484 | m.Scale = m.Scale + meshadd | |
485 | end | |
486 | p:Destroy() | |
487 | end)() | |
488 | return p | |
489 | end, | |
490 | ||
491 | Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor) | |
492 | local p = Instance.new("Part",EffectModel) | |
493 | p.BrickColor = BrickColor.new(colour) | |
494 | p.Size = Vector3.new() | |
495 | p.Anchored = true | |
496 | p.CanCollide = false | |
497 | p.CFrame = cf | |
498 | if inverse == true then | |
499 | p.Transparency = 1 | |
500 | else | |
501 | p.Transparency = 0 | |
502 | end | |
503 | local m = Instance.new("SpecialMesh",p) | |
504 | m.MeshId = "rbxassetid://20329976" | |
505 | m.Scale = meshstart | |
506 | coroutine.wrap(function() | |
507 | for i=0,1,factor do | |
508 | swait() | |
509 | if inverse == true then | |
510 | p.Transparency = 1-i | |
511 | else | |
512 | p.Transparency = i | |
513 | end | |
514 | m.Scale = m.Scale + meshadd | |
515 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
516 | end | |
517 | p:Destroy() | |
518 | end)() | |
519 | return p | |
520 | end, | |
521 | ||
522 | Ring = function(cf,meshstart,meshadd,colour,inverse,factor) | |
523 | local p = Instance.new("Part",EffectModel) | |
524 | p.BrickColor = BrickColor.new(colour) | |
525 | p.Size = Vector3.new() | |
526 | p.Anchored = true | |
527 | p.CanCollide = false | |
528 | p.CFrame = cf | |
529 | if inverse == true then | |
530 | p.Transparency = 1 | |
531 | else | |
532 | p.Transparency = 0 | |
533 | end | |
534 | local m = Instance.new("SpecialMesh",p) | |
535 | m.MeshId = "rbxassetid://3270017" | |
536 | m.Scale = meshstart | |
537 | coroutine.wrap(function() | |
538 | for i=0,1,factor do | |
539 | swait() | |
540 | if inverse == true then | |
541 | p.Transparency = 1-i | |
542 | else | |
543 | p.Transparency = i | |
544 | end | |
545 | m.Scale = m.Scale + meshadd | |
546 | end | |
547 | p:Destroy() | |
548 | end)() | |
549 | return p | |
550 | end, | |
551 | ||
552 | Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor) | |
553 | local p = Instance.new("Part",EffectModel) | |
554 | p.BrickColor = BrickColor.new(colour) | |
555 | p.Size = Vector3.new() | |
556 | p.Anchored = true | |
557 | p.CanCollide = false | |
558 | p.CFrame = cf | |
559 | if inverse == true then | |
560 | p.Transparency = 1 | |
561 | else | |
562 | p.Transparency = 0 | |
563 | end | |
564 | local m = Instance.new("SpecialMesh",p) | |
565 | m.MeshId = meshid | |
566 | m.TextureId = textid | |
567 | m.Scale = meshstart | |
568 | coroutine.wrap(function() | |
569 | for i=0,1,factor do | |
570 | swait() | |
571 | if inverse == true then | |
572 | p.Transparency = 1-i | |
573 | else | |
574 | p.Transparency = i | |
575 | end | |
576 | m.Scale = m.Scale + meshadd | |
577 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
578 | end | |
579 | p:Destroy() | |
580 | end)() | |
581 | return p | |
582 | end, | |
583 | ||
584 | Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor) | |
585 | local p = Instance.new("Part",EffectModel) | |
586 | p.BrickColor = BrickColor.new(colour) | |
587 | p.Size = partsize | |
588 | p.Anchored = true | |
589 | p.CanCollide = false | |
590 | p.Material = matr | |
591 | p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
592 | if inverse == true then | |
593 | p.Transparency = 1 | |
594 | else | |
595 | p.Transparency = 0 | |
596 | end | |
597 | local m = Instance.new("SpecialMesh",p) | |
598 | m.MeshType = "Sphere" | |
599 | m.Scale = meshstart | |
600 | coroutine.wrap(function() | |
601 | for i=0,1,factor do | |
602 | swait() | |
603 | if inverse == true then | |
604 | p.Transparency = 1-i | |
605 | else | |
606 | p.Transparency = i | |
607 | end | |
608 | m.Scale = m.Scale + meshadd | |
609 | p.CFrame = p.CFrame * CFrame.new(0,move,0) | |
610 | end | |
611 | p:Destroy() | |
612 | end)() | |
613 | return p | |
614 | end, | |
615 | ||
616 | } | |
617 | ||
618 | function GetDudesTorso(c) | |
619 | local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso")) | |
620 | if torsy ~= nil then | |
621 | return torsy | |
622 | end | |
623 | end | |
624 | ||
625 | function BodyVel(part,faws) | |
626 | local bodyvel = Instance.new("BodyVelocity",part) | |
627 | local pep = 10000000 | |
628 | bodyvel.P = pep | |
629 | bodyvel.MaxForce = Vector3.new(pep,pep,pep) | |
630 | bodyvel.Velocity = faws | |
631 | debby:AddItem(bodyvel,.2) | |
632 | end | |
633 | ||
634 | function Dmg(dude) | |
635 | if dude and dude ~= chara and dude.Name ~= "CKbackup" then | |
636 | if dude:FindFirstChild("TURAPPU") then return end | |
637 | local debounce = Instance.new("BoolValue",dude) | |
638 | debounce.Name = "TURAPPU" | |
639 | coroutine.wrap(function() | |
640 | local torsy = GetDudesTorso(dude) | |
641 | if torsy then | |
642 | local b = Instance.new("Part",dude) | |
643 | b.BrickColor = BrickColor.new("Pink") | |
644 | b.Size = Vector3.new(.1,.1,.1) | |
645 | b.CanCollide = false | |
646 | b.Transparency = 1 | |
647 | b.Material = "Neon" | |
648 | b:BreakJoints() | |
649 | so(113952851,b,1,3) | |
650 | local bw = Instance.new("Weld",b) | |
651 | bw.Part0 = b | |
652 | bw.Part1 = torsy | |
653 | local bm = Instance.new("SpecialMesh",b) | |
654 | bm.MeshType = "Sphere" | |
655 | bm.Scale = Vector3.new() | |
656 | for i=0,1,.05 do | |
657 | swait() | |
658 | b.Transparency = 1-i | |
659 | bm.Scale = Vector3.new(65*i,65*i,65*i) | |
660 | end | |
661 | coroutine.wrap(function() | |
662 | swait(20) | |
663 | for i=0,1,.05 do | |
664 | swait() | |
665 | b.Transparency = i | |
666 | bm.Scale = Vector3.new(65+100*i,65+100*i,65+100*i) | |
667 | end | |
668 | b:Destroy() | |
669 | end)() | |
670 | end | |
671 | for i,v in pairs(dude:children()) do | |
672 | if v:IsA("Clothing") or v:IsA("BodyColors") or v:IsA("Accoutrement") then v:Destroy() end | |
673 | end | |
674 | local hedcol = dude:FindFirstChild("Head").BrickColor | |
675 | local bcols = Instance.new("BodyColors",dude) | |
676 | bcols.Name = "NeoCols" | |
677 | bcols.HeadColor = hedcol | |
678 | bcols.LeftArmColor = hedcol | |
679 | bcols.RightArmColor = hedcol | |
680 | bcols.TorsoColor = hedcol | |
681 | bcols.LeftLegColor = hedcol | |
682 | bcols.RightLegColor = hedcol | |
683 | local Heiru = nil | |
684 | local hacho = math.random(1,6) | |
685 | if hacho == 1 then | |
686 | 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,}) | |
687 | local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.075000003, 0.0599999987, 0.0599999987),MeshId = "rbxassetid://506240548",MeshType = Enum.MeshType.FileMesh,}) | |
688 | 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),}) | |
689 | elseif hacho == 2 then | |
690 | 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,}) | |
691 | local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(1.04999995, 1.04999995, 1.04999995),MeshId = "rbxassetid://398987591",MeshType = Enum.MeshType.FileMesh,}) | |
692 | 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),}) | |
693 | elseif hacho == 3 then | |
694 | 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,}) | |
695 | local HairMesh = New("SpecialMesh",Heiru,"Mesh",{MeshId = "rbxassetid://164382853",MeshType = Enum.MeshType.FileMesh,}) | |
696 | 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),}) | |
697 | elseif hacho == 4 then | |
698 | 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,}) | |
699 | local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.109999999, 0.0799999982, 0.0850000009),MeshId = "rbxassetid://561963999",MeshType = Enum.MeshType.FileMesh,}) | |
700 | 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),}) | |
701 | elseif hacho == 5 then | |
702 | 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,}) | |
703 | local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.0450000018, 0.0450000018, 0.0450000018),MeshId = "rbxassetid://487000462",MeshType = Enum.MeshType.FileMesh,}) | |
704 | 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),}) | |
705 | elseif hacho == 6 then | |
706 | 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,}) | |
707 | local HairMesh = New("SpecialMesh",Heiru,"Mesh",{Scale = Vector3.new(0.0649999976, 0.0599999987, 0.0599999987),MeshId = "rbxassetid://437152207",MeshType = Enum.MeshType.FileMesh,}) | |
708 | 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),}) | |
709 | end | |
710 | local haircol = {"Pink","Baby blue","Magenta","Brown","Black","Really black","White","CGA brown","Cool yellow"} | |
711 | Heiru.BrickColor = BrickColor.new(haircol[math.random(1,#haircol)]) | |
712 | local ercho = math.random(1,8) | |
713 | if ercho == 1 then | |
714 | 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,}) | |
715 | local Mesh = New("SpecialMesh",EIRO,"Mesh",{Scale = Vector3.new(1.04999995, 1, 1.04999995),MeshId = "rbxassetid://10871984",TextureId = "rbxassetid://10871968",MeshType = Enum.MeshType.FileMesh,}) | |
716 | 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),}) | |
717 | elseif ercho == 2 then | |
718 | 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,}) | |
719 | local Mesh = New("SpecialMesh",EIRO,"Mesh",{MeshId = "rbxassetid://1072759",TextureId = "rbxassetid://1072760",MeshType = Enum.MeshType.FileMesh,}) | |
720 | 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),}) | |
721 | elseif ercho == 3 then | |
722 | 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,}) | |
723 | 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,}) | |
724 | 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),}) | |
725 | elseif ercho == 4 then | |
726 | 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,}) | |
727 | 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,}) | |
728 | 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),}) | |
729 | elseif ercho == 5 then | |
730 | 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,}) | |
731 | local Mesh = New("SpecialMesh",EIRO,"Mesh",{MeshId = "rbxassetid://1095510",TextureId = "rbxassetid://1095511",MeshType = Enum.MeshType.FileMesh,}) | |
732 | 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),}) | |
733 | end | |
734 | local oucho = math.random(1,6) | |
735 | local sh = Instance.new("Shirt",dude) | |
736 | local pn = Instance.new("Pants",dude) | |
737 | if oucho == 1 then | |
738 | pn.PantsTemplate = "rbxassetid://56903591" | |
739 | sh:Destroy() | |
740 | elseif oucho == 2 then | |
741 | sh.ShirtTemplate = "rbxassetid://242933637" | |
742 | pn.PantsTemplate = "rbxassetid://745334066" | |
743 | elseif oucho == 3 then | |
744 | sh.ShirtTemplate = "rbxassetid://1238151974" | |
745 | pn.PantsTemplate = "rbxassetid://1340645290" | |
746 | elseif oucho == 4 then | |
747 | sh.ShirtTemplate = "rbxassetid://583471131" | |
748 | pn.PantsTemplate = "rbxassetid://460147365" | |
749 | elseif oucho == 5 then | |
750 | pn.PantsTemplate = "rbxassetid://45541243" | |
751 | sh:Destroy() | |
752 | elseif oucho == 6 then | |
753 | pn.PantsTemplate = "rbxassetid://41162775" | |
754 | sh:Destroy() | |
755 | end | |
756 | Instance.new("Decal",dude:FindFirstChild("Head")).Texture = "rbxassetid://985062039" | |
757 | coroutine.wrap(function() | |
758 | swait(40) | |
759 | local naeeym2 = Instance.new("BillboardGui",dude) | |
760 | naeeym2.Size = UDim2.new(0,100,0,40) | |
761 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
762 | naeeym2.Adornee = dude:FindFirstChild("Head") | |
763 | naeeym2.Name = "TalkingBillBoard" | |
764 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
765 | tecks2.BackgroundTransparency = 1 | |
766 | tecks2.BorderSizePixel = 0 | |
767 | tecks2.Text = "Trapped! In another sense.." | |
768 | tecks2.Font = "Cartoon" | |
769 | tecks2.TextSize = 24 | |
770 | tecks2.TextStrokeTransparency = 0 | |
771 | tecks2.TextColor3 = Color3.new(1,.6,.7) | |
772 | tecks2.TextStrokeColor3 = Color3.new(1,1,1) | |
773 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
774 | swait(10) | |
775 | for i = 0,1,.05 do | |
776 | swait() | |
777 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0) | |
778 | tecks2.TextStrokeTransparency = i | |
779 | tecks2.TextTransparency = i | |
780 | end | |
781 | naeeym2:Destroy() | |
782 | end)() | |
783 | end)() | |
784 | end | |
785 | end | |
786 | ||
787 | function MagnitudeDmg(par,magni) | |
788 | for _, c in pairs(workspace:GetDescendants()) do | |
789 | local hum = c:FindFirstChildOfClass("Humanoid") | |
790 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then | |
791 | local head = GetDudesTorso(c) | |
792 | if head ~= nil then | |
793 | local targ = head.Position - par.Position | |
794 | local mag = targ.magnitude | |
795 | if magni >= mag and c ~= chara then | |
796 | Dmg(c) | |
797 | end | |
798 | end | |
799 | end | |
800 | end | |
801 | end | |
802 | ||
803 | local mus = Instance.new("Sound",Head) | |
804 | mus.Name = "mus" | |
805 | mus.SoundId = "rbxassetid://1131624146" | |
806 | mus.Looped = true | |
807 | mus.Volume = 1 | |
808 | mus:Play() | |
809 | ||
810 | zhold = false | |
811 | function shoot() | |
812 | attack = true | |
813 | for i=0,1,.3 do | |
814 | swait() | |
815 | PlayAnimationFromTable({ | |
816 | CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
817 | 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), | |
818 | CFrame.new(1.02804303, 0.5, -0.52656126, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0), | |
819 | 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), | |
820 | CFrame.new(0.499997735, -1.99999893, -1.11758709e-06, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209), | |
821 | CFrame.new(-0.500001431, -1.99999893, -9.983778e-07, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782), | |
822 | }, .4, false) | |
823 | end | |
824 | Humanoid.WalkSpeed = 2 | |
825 | local ref = Instance.new("Part",chara) | |
826 | ref.Size = Vector3.new(0,0,0) | |
827 | ref.Anchored = true | |
828 | ref.CanCollide = false | |
829 | ref.Transparency = 1 | |
830 | repeat | |
831 | so(1145251796,ShotPt,math.random(95,105)/100,3) | |
832 | ref.CFrame = Mouse.Hit | |
833 | MagnitudeDmg(ref,2) | |
834 | Effects.Block(ShotPt.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Neon","Pink",true,false,.1) | |
835 | 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) | |
836 | Effects.Block(Mouse.Hit,Vector3.new(1,1,1),Vector3.new(),Vector3.new(.2,.2,.2),"Neon","Pink",true,false,.1) | |
837 | for i=0,1,.5 do | |
838 | swait() | |
839 | PlayAnimationFromTable({ | |
840 | CFrame.new(2.25380063e-06, 0, 0.100001052, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
841 | 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), | |
842 | CFrame.new(1.25785875, 0.5, -0.333723217, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0), | |
843 | 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), | |
844 | CFrame.new(0.423390329, -1.99999893, -0.0642812699, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209), | |
845 | CFrame.new(-0.57660532, -1.99999893, -0.0642794371, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782), | |
846 | }, .4, false) | |
847 | end | |
848 | for i=0,1,.5 do | |
849 | swait() | |
850 | PlayAnimationFromTable({ | |
851 | CFrame.new(0, 0, 0, 0.64278698, 0, -0.766044974, 0, 1, 0, 0.766044974, 0, 0.64278698), | |
852 | 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), | |
853 | CFrame.new(1.02804303, 0.5, -0.52656126, 0.64278698, 0.766044974, 0, 0, 0, -1, -0.766044974, 0.64278698, 0), | |
854 | 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), | |
855 | CFrame.new(0.499997735, -1.99999893, -1.11758709e-06, 0.866025209, 0, -0.500000298, 0, 1, 0, 0.500000298, 0, 0.866025209), | |
856 | CFrame.new(-0.500001431, -1.99999893, -9.983778e-07, 0.766043782, 0, 0.64278847, 0, 1, 0, -0.64278847, 0, 0.766043782), | |
857 | }, .4, false) | |
858 | end | |
859 | until zhold == false | |
860 | ref:Destroy() | |
861 | Humanoid.WalkSpeed = 16 | |
862 | attack = false | |
863 | end | |
864 | ||
865 | function doge() | |
866 | attack = true | |
867 | Humanoid.WalkSpeed = 0 | |
868 | so(536642316,Torso,1,1) | |
869 | local bodyvel = Instance.new("BodyVelocity",RootPart) | |
870 | local pep = 10000000 | |
871 | bodyvel.P = pep | |
872 | bodyvel.MaxForce = Vector3.new(pep,pep,pep) | |
873 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
874 | for i=0,1,.2 do | |
875 | swait() | |
876 | PlayAnimationFromTable({ | |
877 | CFrame.new(0, -0.413182259, -0.492409885, 1, 0, 0, 0, 0.173647001, 0.984807968, 0, -0.984807968, 0.173647001), | |
878 | CFrame.new(0, 1.39017391, 0.409808099, 1, 0, 0, 0, 0.499998748, -0.866026163, 0, 0.866026163, 0.499998748), | |
879 | 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), | |
880 | 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), | |
881 | CFrame.new(0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
882 | CFrame.new(-0.5, -2, -2.86102295e-06, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
883 | }, .4, false) | |
884 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
885 | end | |
886 | for i=0,1,.2 do | |
887 | swait() | |
888 | PlayAnimationFromTable({ | |
889 | CFrame.new(0, -1.30470812, -0.622091293, 1, 0, 0, 0, -0.866025984, 0.499998987, 0, -0.499998987, -0.866025984), | |
890 | CFrame.new(0, 1.47984993, -0.230206192, 1, 0, 0, 0, 0.939693034, 0.34201926, 0, -0.34201926, 0.939693034), | |
891 | 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), | |
892 | 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), | |
893 | CFrame.new(0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
894 | CFrame.new(-0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
895 | }, .4, false) | |
896 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
897 | end | |
898 | for i=0,1,.2 do | |
899 | swait() | |
900 | PlayAnimationFromTable({ | |
901 | CFrame.new(0, -2.22375727, 0.305265486, 1, 0, 0, 0, 0.500000238, -0.866025388, 0, 0.866025388, 0.500000238), | |
902 | CFrame.new(0, 1.35128808, -0.383415997, 1, 0, 0, 0, 0.766043901, 0.642788529, 0, -0.64278847, 0.766043901), | |
903 | 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), | |
904 | 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), | |
905 | CFrame.new(0.5, -1.19999337, -0.599998593, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024), | |
906 | CFrame.new(-0.500003815, -1.35979521, -0.923200667, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388), | |
907 | }, .4, false) | |
908 | bodyvel.Velocity = RootPart.CFrame.lookVector*50 | |
909 | end | |
910 | bodyvel:Destroy() | |
911 | Humanoid.WalkSpeed = 16 | |
912 | attack = false | |
913 | end | |
914 | ||
915 | function bdoge() | |
916 | attack = true | |
917 | Humanoid.WalkSpeed = 0 | |
918 | so(536642316,Torso,1,1) | |
919 | local bodyvel = Instance.new("BodyVelocity",RootPart) | |
920 | local pep = 10000000 | |
921 | bodyvel.P = pep | |
922 | bodyvel.MaxForce = Vector3.new(pep,pep,pep) | |
923 | bodyvel.Velocity = RootPart.CFrame.lookVector*-50 | |
924 | for i=0,1,.2 do | |
925 | swait() | |
926 | PlayAnimationFromTable({ | |
927 | CFrame.new(0, -2.22375727, 0.305265486, 1, 0, 0, 0, 0.500000238, -0.866025388, 0, 0.866025388, 0.500000238), | |
928 | CFrame.new(0, 1.35128808, -0.383415997, 1, 0, 0, 0, 0.766043901, 0.642788529, 0, -0.64278847, 0.766043901), | |
929 | 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), | |
930 | 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), | |
931 | CFrame.new(0.5, -1.19999337, -0.599998593, 1, 0, 0, 0, 1.00000024, 0, 0, 0, 1.00000024), | |
932 | CFrame.new(-0.500003815, -1.35979521, -0.923200667, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388), | |
933 | }, .4, false) | |
934 | bodyvel.Velocity = RootPart.CFrame.lookVector*-50 | |
935 | end | |
936 | for i=0,1,.2 do | |
937 | swait() | |
938 | PlayAnimationFromTable({ | |
939 | CFrame.new(0, -1.30470812, -0.622091293, 1, 0, 0, 0, -0.866025984, 0.499998987, 0, -0.499998987, -0.866025984), | |
940 | CFrame.new(0, 1.47984993, -0.230206192, 1, 0, 0, 0, 0.939693034, 0.34201926, 0, -0.34201926, 0.939693034), | |
941 | 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), | |
942 | 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), | |
943 | CFrame.new(0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
944 | CFrame.new(-0.5, -1.19999313, -0.600002289, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
945 | }, .4, false) | |
946 | bodyvel.Velocity = RootPart.CFrame.lookVector*-50 | |
947 | end | |
948 | bodyvel:Destroy() | |
949 | Humanoid.WalkSpeed = 16 | |
950 | attack = false | |
951 | end | |
952 | ||
953 | function adoge() | |
954 | attack = true | |
955 | Humanoid.WalkSpeed = 0 | |
956 | so(536642316,Torso,1,1) | |
957 | 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) | |
958 | BodyVel(RootPart,RootPart.CFrame.lookVector*50) | |
959 | for i=0,1,.1 do | |
960 | swait() | |
961 | PlayAnimationFromTable({ | |
962 | CFrame.new(0, -0.095761165, -0.251516223, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
963 | CFrame.new(0, 1.43075883, 0.149916381, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
964 | 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), | |
965 | 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), | |
966 | CFrame.new(0.5, -1.96527231, 0.196966231, 1, 0, 0, 0, 0.984807789, 0.173648685, 0, -0.173648715, 0.984807789), | |
967 | CFrame.new(-0.5, -1.43618584, -0.205210268, 1, 0, 0, 0, 0.939692438, 0.342020929, 0, -0.342020959, 0.939692438), | |
968 | }, .4, false) | |
969 | end | |
970 | Humanoid.WalkSpeed = 16 | |
971 | attack = false | |
972 | end | |
973 | ||
974 | function badoge() | |
975 | attack = true | |
976 | Humanoid.WalkSpeed = 0 | |
977 | so(536642316,Torso,1,1) | |
978 | 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) | |
979 | BodyVel(RootPart,RootPart.CFrame.lookVector*-50) | |
980 | for i=0,1,.1 do | |
981 | swait() | |
982 | PlayAnimationFromTable({ | |
983 | CFrame.new(0, -0.210508779, 0.312937856, 1, 0, 0, 0, 0.866025388, -0.500000238, 0, 0.500000238, 0.866025388), | |
984 | CFrame.new(0, 1.4075644, -0.288293391, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388), | |
985 | 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), | |
986 | 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), | |
987 | CFrame.new(0.5, -1.9652698, 0.196958005, 1, 0, 0, 0, 0.984807789, 0.173648715, 0, -0.173648685, 0.984807789), | |
988 | CFrame.new(-0.5, -1.43618536, -0.205215126, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), | |
989 | }, .4, false) | |
990 | end | |
991 | Humanoid.WalkSpeed = 16 | |
992 | attack = false | |
993 | end | |
994 | ||
995 | Mouse.Button1Down:connect(function() | |
996 | if attack == false then | |
997 | zhold = true | |
998 | shoot() | |
999 | end | |
1000 | end) | |
1001 | ||
1002 | Mouse.Button1Up:connect(function() | |
1003 | zhold = false | |
1004 | end) | |
1005 | ||
1006 | local sprintt = 0 | |
1007 | Mouse.KeyDown:connect(function(k) | |
1008 | k = k:lower() | |
1009 | if k=='m' then | |
1010 | if mus.IsPlaying == true then | |
1011 | mus:Stop() | |
1012 | elseif mus.IsPaused == true then | |
1013 | mus:Play() | |
1014 | end | |
1015 | end | |
1016 | if attack == false then | |
1017 | if k == 'q' then | |
1018 | if Anim == "Fall" or Anim == "Jump" then | |
1019 | badoge() | |
1020 | else | |
1021 | bdoge() | |
1022 | end | |
1023 | elseif k == 'e' then | |
1024 | if Anim == "Fall" or Anim == "Jump" then | |
1025 | adoge() | |
1026 | else | |
1027 | doge() | |
1028 | end | |
1029 | end | |
1030 | end | |
1031 | end) | |
1032 | ||
1033 | Mouse.KeyUp:connect(function(k) | |
1034 | k = k:lower() | |
1035 | if k == 'z' then | |
1036 | zhold = false | |
1037 | end | |
1038 | end) | |
1039 | ||
1040 | coroutine.wrap(function() | |
1041 | while 1 do | |
1042 | swait() | |
1043 | if doe <= 360 then | |
1044 | doe = doe + 2 | |
1045 | else | |
1046 | doe = 0 | |
1047 | end | |
1048 | end | |
1049 | end)() | |
1050 | while true do | |
1051 | swait() | |
1052 | while true do | |
1053 | swait() | |
1054 | if Head:FindFirstChild("mus")==nil then | |
1055 | mus = Instance.new("Sound",Head) | |
1056 | mus.Name = "mus" | |
1057 | mus.SoundId = "rbxassetid://1131624146" | |
1058 | mus.Looped = true | |
1059 | mus.Volume = 1 | |
1060 | mus:Play() | |
1061 | end | |
1062 | if sprintt >= 1 then | |
1063 | sprintt = sprintt - 1 | |
1064 | end | |
1065 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1066 | velocity = RootPart.Velocity.y | |
1067 | sine = sine + change | |
1068 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara) | |
1069 | if RootPart.Velocity.y > 1 and hit == nil then | |
1070 | Anim = "Jump" | |
1071 | if attack == false then | |
1072 | PlayAnimationFromTable({ | |
1073 | CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1074 | CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855), | |
1075 | 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), | |
1076 | 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), | |
1077 | CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
1078 | CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), | |
1079 | }, .3, false) | |
1080 | end | |
1081 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1082 | Anim = "Fall" | |
1083 | if attack == false then | |
1084 | PlayAnimationFromTable({ | |
1085 | CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
1086 | CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
1087 | 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), | |
1088 | 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), | |
1089 | CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
1090 | CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
1091 | }, .3, false) | |
1092 | end | |
1093 | elseif Torsovelocity < 1 and hit ~= nil then | |
1094 | Anim = "Idle" | |
1095 | if attack == false then | |
1096 | change = 1 | |
1097 | PlayAnimationFromTable({ | |
1098 | 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), | |
1099 | 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), | |
1100 | 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), | |
1101 | 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), | |
1102 | 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), | |
1103 | 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), | |
1104 | }, .3, false) | |
1105 | end | |
1106 | elseif Torsovelocity > 2 and hit ~= nil then | |
1107 | Anim = "Walk" | |
1108 | if attack == false then | |
1109 | Humanoid.WalkSpeed = 16 | |
1110 | PlayAnimationFromTable({ | |
1111 | 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), | |
1112 | CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1113 | 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), | |
1114 | 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), | |
1115 | 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), | |
1116 | 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), | |
1117 | }, .3, false) | |
1118 | end | |
1119 | end | |
1120 | end | |
1121 | end |