SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
2 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
3 | do | |
4 | print("FE Compatibility code by Mokiros") | |
5 | script.Parent = Player.Character | |
6 | ||
7 | --RemoteEvent for communicating | |
8 | local Event = Instance.new("RemoteEvent") | |
9 | Event.Name = "UserInput_Event" | |
10 | ||
11 | --Fake event to make stuff like Mouse.KeyDown work | |
12 | local function fakeEvent() | |
13 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end} | |
14 | t.connect = t.Connect | |
15 | return t | |
16 | end | |
17 | ||
18 | --Creating fake input objects with fake variables | |
19 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()} | |
20 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()} | |
21 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...) | |
22 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil | |
23 | end} | |
24 | --Merged 2 functions into one by checking amount of arguments | |
25 | CAS.UnbindAction = CAS.BindAction | |
26 | ||
27 | --This function will trigger the events that have been :Connect()'ed | |
28 | local function te(self,ev,...) | |
29 | local t = m[ev] | |
30 | if t and t._fakeEvent and t.Function then | |
31 | t.Function(...) | |
32 | end | |
33 | end | |
34 | m.TrigEvent = te | |
35 | UIS.TrigEvent = te | |
36 | ||
37 | Event.OnServerEvent:Connect(function(plr,io) | |
38 | - | local Player = game:service'Players'.localPlayer |
38 | + | if plr~=Player then return end |
39 | if io.isMouse then | |
40 | m.Target = io.Target | |
41 | - | local Mouse = Player:GetMouse() |
41 | + | m.Hit = io.Hit |
42 | else | |
43 | local b = io.UserInputState == Enum.UserInputState.Begin | |
44 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
45 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
46 | end | |
47 | for _,t in pairs(CAS.Actions) do | |
48 | for _,k in pairs(t.Keys) do | |
49 | if k==io.KeyCode then | |
50 | t.Function(t.Name,io.UserInputState,io) | |
51 | end | |
52 | end | |
53 | end | |
54 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
55 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
56 | end | |
57 | end) | |
58 | Event.Parent = NLS([==[ | |
59 | local Player = game:GetService("Players").LocalPlayer | |
60 | local Event = script:WaitForChild("UserInput_Event") | |
61 | ||
62 | local UIS = game:GetService("UserInputService") | |
63 | local input = function(io,a) | |
64 | if a then return end | |
65 | --Since InputObject is a client-side instance, we create and pass table instead | |
66 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState}) | |
67 | end | |
68 | UIS.InputBegan:Connect(input) | |
69 | UIS.InputEnded:Connect(input) | |
70 | ||
71 | local Mouse = Player:GetMouse() | |
72 | local h,t | |
73 | --Give the server mouse data 30 times every second, but only if the values changed | |
74 | --If player is not moving their mouse, client won't fire events | |
75 | while wait(1/30) do | |
76 | if h~=Mouse.Hit or t~=Mouse.Target then | |
77 | h,t=Mouse.Hit,Mouse.Target | |
78 | Event:FireServer({isMouse=true,Target=t,Hit=h}) | |
79 | end | |
80 | end]==],Player.Character) | |
81 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
82 | end | |
83 | ------------------------------------------------------------------------------------------------------------------------ | |
84 | --I SCREAM, YOU SCREAM, WE ALL SCREAM, RUNNING AWAY IN A FUTILE ATTEMPT TO ESCAPE FROM THE INEVITABLE ARRIVAL OF DEATH-- | |
85 | ------------------------------------------------------------------------------------------------------------------------ | |
86 | --By CKbackup (Sugarie Saffron) -- | |
87 | --YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw-- | |
88 | --Discord: Sugarie Saffron#4705 -- | |
89 | ---------------------------------------------------------------- | |
90 | ||
91 | print([[ | |
92 | --Ice Cream-- | |
93 | By CKbackup (Sugarie Saffron) | |
94 | YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw | |
95 | Discord: Sugarie Saffron#4705 | |
96 | -------------------------------- | |
97 | As I've been demoted from my SB | |
98 | Mod rank in VSB, I don't see the | |
99 | need to hold this back any longer. | |
100 | ||
101 | Also, if the anims look weird or | |
102 | the weapon looks out of place, | |
103 | it's because it's actually modeled | |
104 | off a scaled rig with a package. | |
105 | It looks better with the Boy | |
106 | package. | |
107 | -------------------------------- | |
108 | (Keys) | |
109 | M - Mute/Play Music | |
110 | ||
111 | Click - Slash | |
112 | (Aerial Slash when jumping) | |
113 | Z - Freezing Bullet | |
114 | X - Thy Winter Shall Come Forth | |
115 | C - Blizzard o' Death | |
116 | ]]) | |
117 | ||
118 | wait(1/60) | |
119 | Effects = { } | |
120 | local owner | |
121 | local chara = Player.Character | |
122 | local Humanoid = chara:FindFirstChildOfClass("Humanoid") | |
123 | local LeftArm = chara["Left Arm"] | |
124 | local RightArm = chara["Right Arm"] | |
125 | local LeftLeg = chara["Left Leg"] | |
126 | local RightLeg = chara["Right Leg"] | |
127 | local Head = chara.Head | |
128 | local Torso = chara.Torso | |
129 | local Camera = workspace.CurrentCamera | |
130 | local RootPart = chara.HumanoidRootPart | |
131 | local RootJoint = RootPart.RootJoint | |
132 | local attack = false | |
133 | local Anim = 'Idle' | |
134 | local attacktype = 1 | |
135 | local delays = false | |
136 | local play = true | |
137 | local targetted = nil | |
138 | local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
139 | local velocity = RootPart.Velocity.y | |
140 | local sine = 0 | |
141 | local change = 1 | |
142 | local doe = 0 | |
143 | local Create = LoadLibrary("RbxUtility").Create | |
144 | local debby = game:GetService("Debris") | |
145 | Humanoid.WalkSpeed = 16 | |
146 | ||
147 | Humanoid.Animator.Parent = nil | |
148 | chara.Animate.Parent = nil | |
149 | ||
150 | local newMotor = function(part0, part1, c0, c1) | |
151 | local w = Create('Motor'){ | |
152 | Parent = part0, | |
153 | Part0 = part0, | |
154 | Part1 = part1, | |
155 | C0 = c0, | |
156 | C1 = c1, | |
157 | } | |
158 | return w | |
159 | end | |
160 | ||
161 | function clerp(a, b, t) | |
162 | return a:lerp(b, t) | |
163 | end | |
164 | ||
165 | RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14) | |
166 | NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0) | |
167 | ||
168 | local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) | |
169 | local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0)) | |
170 | local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0)) | |
171 | local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0)) | |
172 | RootJoint.C1 = CFrame.new(0, 0, 0) | |
173 | RootJoint.C0 = CFrame.new(0, 0, 0) | |
174 | Torso.Neck.C1 = CFrame.new(0, 0, 0) | |
175 | Torso.Neck.C0 = CFrame.new(0, 1.5, 0) | |
176 | ||
177 | local rarmc1 = RW.C1 | |
178 | local larmc1 = LW.C1 | |
179 | local rlegc1 = RH.C1 | |
180 | local llegc1 = LH.C1 | |
181 | ||
182 | local resetc1 = false | |
183 | ||
184 | function PlayAnimationFromTable(table, speed, bool) | |
185 | RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) | |
186 | Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) | |
187 | RW.C0 = clerp(RW.C0, table[3], speed) | |
188 | LW.C0 = clerp(LW.C0, table[4], speed) | |
189 | RH.C0 = clerp(RH.C0, table[5], speed) | |
190 | LH.C0 = clerp(LH.C0, table[6], speed) | |
191 | if bool == true then | |
192 | if resetc1 == false then | |
193 | resetc1 = true | |
194 | RootJoint.C1 = RootJoint.C1 | |
195 | Torso.Neck.C1 = Torso.Neck.C1 | |
196 | LW.C1 = larmc1 | |
197 | RW.C1 = rarmc1 | |
198 | RH.C1 = rlegc1 | |
199 | LH.C1 = llegc1 | |
200 | end | |
201 | end | |
202 | end | |
203 | ||
204 | ArtificialHB = Instance.new("BindableEvent", script) | |
205 | ArtificialHB.Name = "Heartbeat" | |
206 | script:WaitForChild("Heartbeat") | |
207 | frame = 0.03333333333333 | |
208 | tf = 0 | |
209 | allowframeloss = false | |
210 | tossremainder = false | |
211 | lastframe = tick() | |
212 | script.Heartbeat:Fire() | |
213 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
214 | tf = tf + s | |
215 | if tf >= frame then | |
216 | if allowframeloss then | |
217 | script.Heartbeat:Fire() | |
218 | lastframe = tick() | |
219 | else | |
220 | for i = 1, math.floor(tf / frame) do | |
221 | script.Heartbeat:Fire() | |
222 | end | |
223 | lastframe = tick() | |
224 | end | |
225 | if tossremainder then | |
226 | tf = 0 | |
227 | else | |
228 | tf = tf - frame * math.floor(tf / frame) | |
229 | end | |
230 | end | |
231 | end) | |
232 | function swait(num) | |
233 | if num == 0 or num == nil then | |
234 | ArtificialHB.Event:wait() | |
235 | else | |
236 | for i = 0, num do | |
237 | ArtificialHB.Event:wait() | |
238 | end | |
239 | end | |
240 | end | |
241 | ||
242 | function RemoveOutlines(part) | |
243 | part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10 | |
244 | end | |
245 | ||
246 | function so(id,par,pit,vol) | |
247 | local sou = Instance.new("Sound", par or workspace) | |
248 | if par == chara then | |
249 | sou.Parent = chara.Torso | |
250 | end | |
251 | sou.Volume = vol | |
252 | sou.Pitch = pit or 1 | |
253 | sou.SoundId = "rbxassetid://" .. id | |
254 | sou.PlayOnRemove = true | |
255 | sou:Destroy() | |
256 | end | |
257 | ||
258 | New = function(Object, Parent, Name, Data) | |
259 | local Object = Instance.new(Object) | |
260 | for Index, Value in pairs(Data or {}) do | |
261 | Object[Index] = Value | |
262 | end | |
263 | Object.Parent = Parent | |
264 | Object.Name = Name | |
265 | return Object | |
266 | end | |
267 | ||
268 | ISCREAM = New("Model",chara,"ISCREAM",{}) | |
269 | KonuHandaru = New("Part",ISCREAM,"KonuHandaru",{FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(0.600000024, 1, 0.600000024),CFrame = CFrame.new(-47.8000031, 6.70001078, -63.9999924, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
270 | Mesh = New("SpecialMesh",KonuHandaru,"Mesh",{Scale = Vector3.new(0.5, 0.699999988, 0.5),MeshId = "http://www.roblox.com/asset/?id=1778999",TextureId = "http://www.roblox.com/asset/?id=20403465",MeshType = Enum.MeshType.FileMesh,}) | |
271 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 8.70004463, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.596078, 0.862745),}) | |
272 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
273 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -2.00003409, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
274 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 8.50004387, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.596078, 0.862745),}) | |
275 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
276 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -1.80003309, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
277 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Buttermilk"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 9.30004692, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.996078, 0.952941, 0.733333),}) | |
278 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
279 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -2.60003614, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
280 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Brown"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 9.10004234, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.486275, 0.360784, 0.27451),}) | |
281 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
282 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -2.40003109, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
283 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Buttermilk"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 9.50004387, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.996078, 0.952941, 0.733333),}) | |
284 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
285 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -2.80003309, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
286 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Brown"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 8.90004539, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.486275, 0.360784, 0.27451),}) | |
287 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
288 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -2.20003414, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
289 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Brown"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 7.7000103, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.486275, 0.360784, 0.27451),}) | |
290 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
291 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -0.999999762, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
292 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Brown"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 7.9000082, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.486275, 0.360784, 0.27451),}) | |
293 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
294 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -1.19999766, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
295 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Buttermilk"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 8.10001087, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.996078, 0.952941, 0.733333),}) | |
296 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
297 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -1.39999986, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
298 | Part = New("Part",ISCREAM,"Part",{Size = Vector3.new(0.100000001, 0.100000001, 0.100000001),CFrame = CFrame.new(-47.8000031, 11.2658768, -64.0939636, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
299 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(0.400000006, 0.400000006, 0.400000006),MeshId = "http://www.roblox.com/asset/?id=104783233 ",TextureId = "http://www.roblox.com/asset/?id=104783391 ",MeshType = Enum.MeshType.FileMesh,}) | |
300 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736),C1 = CFrame.new(0, -4.56586552, 0.0939674377, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
301 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Brown"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 10.1000443, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.486275, 0.360784, 0.27451),}) | |
302 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
303 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -3.400033, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
304 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Buttermilk"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 10.7000446, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.996078, 0.952941, 0.733333),}) | |
305 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
306 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -4.00003433, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
307 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Buttermilk"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 10.5000448, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.996078, 0.952941, 0.733333),}) | |
308 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
309 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -3.80003405, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
310 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 9.90004349, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.596078, 0.862745),}) | |
311 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
312 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -3.20003319, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
313 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 9.70004654, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.596078, 0.862745),}) | |
314 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
315 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -3.00003624, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
316 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Brown"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 10.3000431, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.486275, 0.360784, 0.27451),}) | |
317 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
318 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -3.60003233, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
319 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Buttermilk"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 8.30001068, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.996078, 0.952941, 0.733333),}) | |
320 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
321 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -1.59999967, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
322 | Hitoboksu = New("Part",ISCREAM,"Hitoboksu",{FormFactor = Enum.FormFactor.Plate,Size = Vector3.new(0.600000024, 4.29999876, 0.600000024),CFrame = CFrame.new(-47.8000031, 9.4500103, -63.9999924, 1, 0, 0, 0, -1, 0, 0, 0, -1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,}) | |
323 | Weld = New("ManualWeld",Hitoboksu,"Weld",{Part0 = Hitoboksu,Part1 = KonuHandaru,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),C1 = CFrame.new(0, -2.74999952, 0, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
324 | Mesh = New("BlockMesh",Hitoboksu,"Mesh",{Scale = Vector3.new(0, 0, 0),}) | |
325 | att2 = New("Attachment",Hitoboksu,"att2",{CFrame = CFrame.new(0, -2.0999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
326 | att1 = New("Attachment",Hitoboksu,"att1",{CFrame = CFrame.new(0, 2.0999999, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),}) | |
327 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.600000024, 0.600000024),CFrame = CFrame.new(-47.8000031, 7.50000858, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.596078, 0.862745),}) | |
328 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
329 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -0.799998045, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
330 | Part = New("Part",ISCREAM,"Part",{BrickColor = BrickColor.new("Carnation pink"),Material = Enum.Material.Marble,Size = Vector3.new(0.600000024, 0.200000018, 0.600000024),CFrame = CFrame.new(-47.8000031, 7.30001068, -63.9999924, 1, 0, 0, 0, 1, 0, 0, 0, 1),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(1, 0.596078, 0.862745),}) | |
331 | Mesh = New("SpecialMesh",Part,"Mesh",{Scale = Vector3.new(1.29999995, 1.29999995, 1.29999995),MeshType = Enum.MeshType.Sphere,}) | |
332 | Weld = New("ManualWeld",Part,"Weld",{Part0 = Part,Part1 = KonuHandaru,C1 = CFrame.new(0, -0.599999666, -1.90734863e-06, 1, 0, 0, 0, -1, 0, 0, 0, -1),}) | |
333 | TUREIRU = New("Trail",Hitoboksu,"TUREIRU",{Enabled = false,LightEmission = 1,Attachment1 = att1,Attachment0 = att2}) | |
334 | TUREIRU.Color = ColorSequence.new({ | |
335 | ColorSequenceKeypoint.new(0,Color3.fromRGB(255, 253, 208)), | |
336 | ColorSequenceKeypoint.new(0.5,Color3.fromRGB(255, 192, 203)), | |
337 | ColorSequenceKeypoint.new(1,Color3.fromRGB(123, 63, 0)), | |
338 | }) | |
339 | TUREIRU.Transparency = NumberSequence.new(0,1) | |
340 | ||
341 | local wep = ISCREAM | |
342 | local handla = KonuHandaru | |
343 | local hito = Hitoboksu | |
344 | local tr1 = TUREIRU | |
345 | ||
346 | function CreateSwirl(part) | |
347 | local pemit = Instance.new("ParticleEmitter",part) | |
348 | pemit.Name = "SUWARU" | |
349 | pemit.Texture = "rbxassetid://253188763" | |
350 | pemit.LightInfluence = 1 | |
351 | pemit.Size = NumberSequence.new(0,2) | |
352 | pemit.Transparency = NumberSequence.new(0,1) | |
353 | pemit.ZOffset = .5 | |
354 | pemit.Lifetime = NumberRange.new(1) | |
355 | pemit.Rate = 200 | |
356 | pemit.Rotation = NumberRange.new(0,360) | |
357 | pemit.RotSpeed = NumberRange.new(-300,300) | |
358 | pemit.Speed = NumberRange.new(.2) | |
359 | pemit.SpreadAngle = Vector2.new(360,360) | |
360 | return pemit | |
361 | end | |
362 | ||
363 | --This is just for builds-- | |
364 | New = function(Object, Parent, Name, Data) | |
365 | local Object = Instance.new(Object) | |
366 | for Index, Value in pairs(Data or {}) do | |
367 | Object[Index] = Value | |
368 | end | |
369 | Object.Parent = Parent | |
370 | Object.Name = Name | |
371 | return Object | |
372 | end | |
373 | HandaruW = New("ManualWeld",handla,"HandaruW",{Part0 = handla,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 1, 0, 0, 0, 0, -1, 0, 1, 0),C1 = CFrame.new(-0.199996948, -1.10000002, -1.14440918e-05, -1, 0, 0, 0, 1, 0, 0, 0, -1),}) | |
374 | --------------------------- | |
375 | ||
376 | function rayCast(Position, Direction, Range, Ignore) | |
377 | return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) | |
378 | end | |
379 | ||
380 | function FindNearestTorso(Position, Distance, SinglePlayer) | |
381 | if SinglePlayer then | |
382 | return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance | |
383 | end | |
384 | local List = {} | |
385 | for i, v in pairs(workspace:GetDescendants()) do | |
386 | if v:IsA("Model") then | |
387 | if v:findFirstChild("Head") then | |
388 | if v ~= chara then | |
389 | if (v.Head.Position - Position).magnitude <= Distance then | |
390 | table.insert(List, v) | |
391 | end | |
392 | end | |
393 | end | |
394 | end | |
395 | end | |
396 | return List | |
397 | end | |
398 | ||
399 | EffectModel = Create("Model"){ | |
400 | Parent = chara, | |
401 | Name = "Effects", | |
402 | } | |
403 | ||
404 | --Effect Functions-- | |
405 | Effects = { | |
406 | ||
407 | Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor) | |
408 | local p = Instance.new("Part",EffectModel) | |
409 | p.BrickColor = BrickColor.new(colour) | |
410 | p.Size = partsize | |
411 | p.Anchored = true | |
412 | p.CanCollide = false | |
413 | p.Material = matr | |
414 | p.CFrame = cf | |
415 | if inverse == true then | |
416 | p.Transparency = 1 | |
417 | else | |
418 | p.Transparency = 0 | |
419 | end | |
420 | local m = Instance.new("BlockMesh",p) | |
421 | m.Scale = meshstart | |
422 | coroutine.wrap(function() | |
423 | for i=0,1,factor do | |
424 | swait() | |
425 | if inverse == true then | |
426 | p.Transparency = 1-i | |
427 | else | |
428 | p.Transparency = i | |
429 | end | |
430 | m.Scale = m.Scale + meshadd | |
431 | if spin == true then | |
432 | p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)) | |
433 | end | |
434 | end | |
435 | p:Destroy() | |
436 | end)() | |
437 | return p | |
438 | end, | |
439 | ||
440 | Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
441 | local p = Instance.new("Part",EffectModel) | |
442 | p.BrickColor = BrickColor.new(colour) | |
443 | p.Size = partsize | |
444 | p.Anchored = true | |
445 | p.CanCollide = false | |
446 | p.Material = matr | |
447 | p.CFrame = cf | |
448 | if inverse == true then | |
449 | p.Transparency = 1 | |
450 | else | |
451 | p.Transparency = 0 | |
452 | end | |
453 | local m = Instance.new("SpecialMesh",p) | |
454 | m.MeshType = "Sphere" | |
455 | m.Scale = meshstart | |
456 | coroutine.wrap(function() | |
457 | for i=0,1,factor do | |
458 | swait() | |
459 | if inverse == true then | |
460 | p.Transparency = 1-i | |
461 | else | |
462 | p.Transparency = i | |
463 | end | |
464 | m.Scale = m.Scale + meshadd | |
465 | end | |
466 | p:Destroy() | |
467 | end)() | |
468 | return p | |
469 | end, | |
470 | ||
471 | Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor) | |
472 | local p = Instance.new("Part",EffectModel) | |
473 | p.BrickColor = BrickColor.new(colour) | |
474 | p.Size = partsize | |
475 | p.Anchored = true | |
476 | p.CanCollide = false | |
477 | p.Material = matr | |
478 | p.CFrame = cf | |
479 | if inverse == true then | |
480 | p.Transparency = 1 | |
481 | else | |
482 | p.Transparency = 0 | |
483 | end | |
484 | local m = Instance.new("CylinderMesh",p) | |
485 | m.Scale = meshstart | |
486 | coroutine.wrap(function() | |
487 | for i=0,1,factor do | |
488 | swait() | |
489 | if inverse == true then | |
490 | p.Transparency = 1-i | |
491 | else | |
492 | p.Transparency = i | |
493 | end | |
494 | m.Scale = m.Scale + meshadd | |
495 | end | |
496 | p:Destroy() | |
497 | end)() | |
498 | return p | |
499 | end, | |
500 | ||
501 | Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor) | |
502 | local p = Instance.new("Part",EffectModel) | |
503 | p.BrickColor = BrickColor.new(colour) | |
504 | p.Size = Vector3.new() | |
505 | p.Anchored = true | |
506 | p.CanCollide = false | |
507 | p.CFrame = cf | |
508 | if inverse == true then | |
509 | p.Transparency = 1 | |
510 | else | |
511 | p.Transparency = 0 | |
512 | end | |
513 | local m = Instance.new("SpecialMesh",p) | |
514 | m.MeshId = "rbxassetid://20329976" | |
515 | m.Scale = meshstart | |
516 | coroutine.wrap(function() | |
517 | for i=0,1,factor do | |
518 | swait() | |
519 | if inverse == true then | |
520 | p.Transparency = 1-i | |
521 | else | |
522 | p.Transparency = i | |
523 | end | |
524 | m.Scale = m.Scale + meshadd | |
525 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
526 | end | |
527 | p:Destroy() | |
528 | end)() | |
529 | return p | |
530 | end, | |
531 | ||
532 | Ring = function(cf,meshstart,meshadd,colour,inverse,factor) | |
533 | local p = Instance.new("Part",EffectModel) | |
534 | p.BrickColor = BrickColor.new(colour) | |
535 | p.Size = Vector3.new() | |
536 | p.Anchored = true | |
537 | p.CanCollide = false | |
538 | p.CFrame = cf | |
539 | if inverse == true then | |
540 | p.Transparency = 1 | |
541 | else | |
542 | p.Transparency = 0 | |
543 | end | |
544 | local m = Instance.new("SpecialMesh",p) | |
545 | m.MeshId = "rbxassetid://3270017" | |
546 | m.Scale = meshstart | |
547 | coroutine.wrap(function() | |
548 | for i=0,1,factor do | |
549 | swait() | |
550 | if inverse == true then | |
551 | p.Transparency = 1-i | |
552 | else | |
553 | p.Transparency = i | |
554 | end | |
555 | m.Scale = m.Scale + meshadd | |
556 | end | |
557 | p:Destroy() | |
558 | end)() | |
559 | return p | |
560 | end, | |
561 | ||
562 | Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor) | |
563 | local p = Instance.new("Part",EffectModel) | |
564 | p.BrickColor = BrickColor.new(colour) | |
565 | p.Size = Vector3.new() | |
566 | p.Anchored = true | |
567 | p.CanCollide = false | |
568 | p.CFrame = cf | |
569 | if inverse == true then | |
570 | p.Transparency = 1 | |
571 | else | |
572 | p.Transparency = 0 | |
573 | end | |
574 | local m = Instance.new("SpecialMesh",p) | |
575 | m.MeshId = meshid | |
576 | m.TextureId = textid | |
577 | m.Scale = meshstart | |
578 | coroutine.wrap(function() | |
579 | for i=0,1,factor do | |
580 | swait() | |
581 | if inverse == true then | |
582 | p.Transparency = 1-i | |
583 | else | |
584 | p.Transparency = i | |
585 | end | |
586 | m.Scale = m.Scale + meshadd | |
587 | p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0) | |
588 | end | |
589 | p:Destroy() | |
590 | end)() | |
591 | return p | |
592 | end, | |
593 | ||
594 | Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor) | |
595 | local p = Instance.new("Part",EffectModel) | |
596 | p.BrickColor = BrickColor.new(colour) | |
597 | p.Size = partsize | |
598 | p.Anchored = true | |
599 | p.CanCollide = false | |
600 | p.Material = matr | |
601 | p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))) | |
602 | if inverse == true then | |
603 | p.Transparency = 1 | |
604 | else | |
605 | p.Transparency = 0 | |
606 | end | |
607 | local m = Instance.new("SpecialMesh",p) | |
608 | m.MeshType = "Sphere" | |
609 | m.Scale = meshstart | |
610 | coroutine.wrap(function() | |
611 | for i=0,1,factor do | |
612 | swait() | |
613 | if inverse == true then | |
614 | p.Transparency = 1-i | |
615 | else | |
616 | p.Transparency = i | |
617 | end | |
618 | m.Scale = m.Scale + meshadd | |
619 | p.CFrame = p.CFrame * CFrame.new(0,move,0) | |
620 | end | |
621 | p:Destroy() | |
622 | end)() | |
623 | return p | |
624 | end, | |
625 | ||
626 | } | |
627 | ||
628 | function chatfunc(text) | |
629 | coroutine.wrap(function() | |
630 | if chara:FindFirstChild("TalkingBillBoard")~= nil then | |
631 | chara:FindFirstChild("TalkingBillBoard"):destroy() | |
632 | end | |
633 | local naeeym2 = Instance.new("BillboardGui",chara) | |
634 | naeeym2.Size = UDim2.new(0,100,0,40) | |
635 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
636 | naeeym2.Adornee = chara.Head | |
637 | naeeym2.Name = "BLABLABLA" | |
638 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
639 | tecks2.BackgroundTransparency = 1 | |
640 | tecks2.BorderSizePixel = 0 | |
641 | tecks2.Text = "" | |
642 | tecks2.Font = "Fantasy" | |
643 | tecks2.FontSize = "Size24" | |
644 | tecks2.TextStrokeTransparency = 0 | |
645 | tecks2.TextColor3 = Color3.new(1,1,1) | |
646 | tecks2.TextStrokeColor3 = Color3.new(0,1,1) | |
647 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
648 | for i = 1,string.len(text),1 do | |
649 | tecks2.Text = string.sub(text,1,i) | |
650 | swait() | |
651 | end | |
652 | swait(30) | |
653 | for i = 1, 5 do | |
654 | swait() | |
655 | tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0) | |
656 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2 | |
657 | tecks2.TextTransparency = tecks2.TextTransparency + .2 | |
658 | end | |
659 | naeeym2:Destroy() | |
660 | end)() | |
661 | end | |
662 | ||
663 | function GetDudesTorso(c) | |
664 | local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso")) | |
665 | if torsy ~= nil then | |
666 | return torsy | |
667 | end | |
668 | end | |
669 | ||
670 | function BodyVel(part,faws) | |
671 | local bodyvel = Instance.new("BodyVelocity",part) | |
672 | local pep = 10000000 | |
673 | bodyvel.P = pep | |
674 | bodyvel.MaxForce = Vector3.new(pep,pep,pep) | |
675 | bodyvel.Velocity = faws | |
676 | debby:AddItem(bodyvel,.2) | |
677 | end | |
678 | ||
679 | function Dmg(guy) | |
680 | coroutine.wrap(function() | |
681 | local hum = guy:FindFirstChildOfClass("Humanoid") | |
682 | if hum and guy:FindFirstChild("HITO")==nil then | |
683 | Instance.new("BoolValue",guy).Name = "HITO" | |
684 | local torsy = GetDudesTorso(guy) | |
685 | if torsy then | |
686 | so(32656713,torsy,1,2) | |
687 | end | |
688 | local par = {} | |
689 | for i,v in pairs(guy:GetDescendants()) do | |
690 | if v:IsA("BasePart") then | |
691 | table.insert(par,v) | |
692 | if v.Name ~= "HumanoidRootPart" then | |
693 | v.Anchored = true | |
694 | end | |
695 | CreateSwirl(v) | |
696 | end | |
697 | end | |
698 | swait(20) | |
699 | if torsy then | |
700 | so(203936153,torsy,1,2) | |
701 | end | |
702 | for i,v in pairs(guy:GetDescendants()) do | |
703 | if v.Name == "SUWARU" then | |
704 | v.Enabled = false | |
705 | end | |
706 | if v:IsA("Shirt") or v:IsA("Pants") or v:IsA("ShirtGraphic") or v:IsA("Decal") and v.Name ~= "face" then | |
707 | v:Destroy() | |
708 | end | |
709 | for i,v in pairs(par) do | |
710 | if v then | |
711 | if v:FindFirstChild("SpecialMesh") then | |
712 | v:FindFirstChild("SpecialMesh").TextureId = "" | |
713 | end | |
714 | if v:IsA("MeshPart") then | |
715 | v.TextureID = "" | |
716 | end | |
717 | v.BrickColor = BrickColor.new("Baby blue") | |
718 | v.Material = "Ice" | |
719 | end | |
720 | end | |
721 | end | |
722 | swait(40) | |
723 | if torsy then | |
724 | so(87015121,torsy,1,2) | |
725 | end | |
726 | guy:BreakJoints() | |
727 | for ba=1,6 do | |
728 | Effects.Explode(torsy.CFrame,Vector3.new(1,1,1),Vector3.new(6,6,6),Vector3.new(.05,.05,.05),"SmoothPlastic","White",.05,false,.025)--+Vector3.new(math.random(-10,10)/10,math.random(-10,10)/10,math.random(-10,10)/10) | |
729 | end | |
730 | for ab = 1,math.random(6,10) do | |
731 | local sa = math.random(5,9)/10 | |
732 | local ice = Instance.new("Part",EffectModel) | |
733 | ice.CFrame = torsy.CFrame | |
734 | ice.BrickColor = BrickColor.new("Baby blue") | |
735 | ice.Material = "Ice" | |
736 | ice.Size = Vector3.new(sa,sa,sa) | |
737 | ice.Velocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
738 | ice.RotVelocity = Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30)) | |
739 | coroutine.wrap(function() | |
740 | swait(120) | |
741 | ice.Orientation = Vector3.new(0,ice.Orientation.y,0) | |
742 | for b = 0,1,.05 do | |
743 | swait() | |
744 | ice.Transparency = b | |
745 | ice.Size = ice.Size + Vector3.new(.05,-.05,.05) | |
746 | end | |
747 | ice:Destroy() | |
748 | end)() | |
749 | end | |
750 | for i,v in pairs(par) do | |
751 | v:Destroy() | |
752 | end | |
753 | end | |
754 | end)() | |
755 | end | |
756 | ||
757 | function MagnitudeDmg(par,magni) | |
758 | for _, c in pairs(workspace:GetDescendants()) do | |
759 | local hum = c:FindFirstChildOfClass("Humanoid") | |
760 | if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil then | |
761 | local head = GetDudesTorso(c) | |
762 | if head ~= nil then | |
763 | local targ = head.Position - par.Position | |
764 | local mag = targ.magnitude | |
765 | if magni >= mag and c ~= chara then | |
766 | Dmg(c) | |
767 | end | |
768 | end | |
769 | end | |
770 | end | |
771 | end | |
772 | ||
773 | combo = 1 | |
774 | ||
775 | local mus = Instance.new("Sound",chara) | |
776 | mus.Name = "mus" | |
777 | mus.SoundId = "rbxassetid://189224548" | |
778 | mus.Looped = true | |
779 | mus.Volume = 1 | |
780 | mus:Play() | |
781 | ||
782 | coroutine.wrap(function() | |
783 | Humanoid.Name = "asldlasldlasdl" | |
784 | Humanoid.Health = math.huge | |
785 | Humanoid.MaxHealth = math.huge | |
786 | end)() | |
787 | ||
788 | --Intro-- | |
789 | Humanoid.WalkSpeed = 0 | |
790 | for i,v in pairs(wep:children()) do | |
791 | if v~=handla then | |
792 | v.Transparency = 1 | |
793 | end | |
794 | end | |
795 | swait(20) | |
796 | chatfunc("Revenge is a dish best served cold!") | |
797 | for i=0,1,.1 do | |
798 | swait() | |
799 | PlayAnimationFromTable({ | |
800 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
801 | CFrame.new(0, 1.5255599, -0.222141743, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
802 | CFrame.new(1.50094986, 0.999999046, 0.0500035286, 0, -1, 0, 1, 0, 0, 0, 0, 1), | |
803 | CFrame.new(-1.52556324, 0.222139359, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
804 | CFrame.new(0.500001132, -2, -2.38418579e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
805 | CFrame.new(-0.500000715, -2, -8.34465027e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
806 | }, .3, false) | |
807 | end | |
808 | local para = {} | |
809 | for i=-2,2,.2 do | |
810 | local ice = Instance.new("Part",EffectModel) | |
811 | ice.Size = Vector3.new(1,1,1) | |
812 | ice.CanCollide = false | |
813 | ice.BrickColor = BrickColor.new("Baby blue") | |
814 | ice.Material = "Ice" | |
815 | local icew = Instance.new("Weld",ice) | |
816 | icew.Part0 = hito | |
817 | icew.Part1 = ice | |
818 | icew.C0 = CFrame.new(0,-i,0)*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)) | |
819 | table.insert(para,ice) | |
820 | so(32656754,ice,1,1) | |
821 | swait() | |
822 | end | |
823 | swait(30) | |
824 | so(87015121,hito,1,1) | |
825 | for i,v in pairs(wep:children()) do | |
826 | v.Transparency = 0 | |
827 | end | |
828 | for i,v in pairs(para) do | |
829 | v:BreakJoints() | |
830 | v.Anchored = true | |
831 | coroutine.wrap(function() | |
832 | for i=0,1,.05 do | |
833 | swait() | |
834 | v.CFrame = v.CFrame*CFrame.new(0,.5,0) | |
835 | v.Transparency = i | |
836 | end | |
837 | v:Destroy() | |
838 | end)() | |
839 | end | |
840 | swait(60) | |
841 | chatfunc([["Ice" to meet you today!]]) | |
842 | Humanoid.WalkSpeed = 40 | |
843 | -------------------------------------------------- | |
844 | ||
845 | function smek() | |
846 | attack = true | |
847 | for i=0,1,.2 do | |
848 | swait() | |
849 | PlayAnimationFromTable({ | |
850 | CFrame.new(-0.0116844922, 0, -0.381816059, 0.342019022, 0, 0.939693093, 0, 1, 0, -0.939693093, 0, 0.342018992), | |
851 | CFrame.new(-0.0728889629, 1.49999714, 0.038963601, 0.342019022, 0, -0.939693093, 0, 1, 0, 0.939693093, 0, 0.342018992), | |
852 | CFrame.new(1.06065702, 1.09677029, -0.161810428, 0.400286436, 0.242276207, 0.88378346, 0.734158754, -0.661962748, -0.151050553, 0.548435688, 0.709300876, -0.442843854), | |
853 | CFrame.new(-1.59605861, 0.10887894, 1.11486224e-06, 0.984807909, 0.173648059, -2.23517418e-06, -0.173648059, 0.984807849, 3.82394944e-07, 2.29477882e-06, 1.86264515e-08, 1), | |
854 | CFrame.new(0.685087919, -1.96527183, 0.0673596561, 0.92541647, -0.163175598, -0.342020869, 0.173647985, 0.984807849, 2.90093368e-07, 0.336824894, -0.0593915246, 0.939692438), | |
855 | CFrame.new(-0.499999702, -2.00000095, 8.68737698e-06, 0.766045451, 0, 0.642786503, 0, 1, 0, -0.642786503, 0, 0.766045511), | |
856 | }, .4, false) | |
857 | end | |
858 | Humanoid.WalkSpeed = 2 | |
859 | tr1.Enabled = true | |
860 | so(32656754,hito,math.random(9,11)/10,1) | |
861 | for i=0,1,.2 do | |
862 | swait() | |
863 | PlayAnimationFromTable({ | |
864 | CFrame.new(0, 0, 0, 0.499998987, 0, -0.866025984, 0, 1, 0, 0.866025984, 0, 0.499998987), | |
865 | CFrame.new(0, 1.49999714, 0, 0.499998987, 0, 0.866025984, 0, 1, 0, -0.866025984, 0, 0.499998987), | |
866 | CFrame.new(1.6195364, 0.256343663, -3.60019794e-06, 0.939692736, -0.342020124, -8.94069672e-08, 0.342020154, 0.939692676, -4.35416268e-07, 2.08616257e-07, 3.87430191e-07, 1), | |
867 | CFrame.new(-1.65980804, 0.323206544, 5.72385352e-06, 0.866025329, 0.500000238, -2.98023224e-07, -0.500000179, 0.866025388, -1.34623383e-06, -4.47034836e-07, 1.29640102e-06, 1.00000012), | |
868 | CFrame.new(0.500001073, -2.00000095, -1.57952309e-06, 0.939692616, 0, -0.342020184, 0, 1, 0, 0.342020184, 0, 0.939692616), | |
869 | CFrame.new(-0.499998212, -2.00000095, 1.49011612e-06, 0.766043544, 0, 0.642788708, 0, 1, 0, -0.642788708, 0, 0.766043544), | |
870 | }, .4, false) | |
871 | MagnitudeDmg(hito,3) | |
872 | end | |
873 | swait(5) | |
874 | Humanoid.WalkSpeed = 40 | |
875 | tr1.Enabled = false | |
876 | attack = false | |
877 | end | |
878 | ||
879 | function asmek() | |
880 | attack = true | |
881 | Humanoid.WalkSpeed = 50 | |
882 | RootPart.Velocity = Vector3.new(RootPart.Velocity.X,30,RootPart.Velocity.Z) | |
883 | tr1.Enabled = true | |
884 | so(32656754,hito,math.random(9,11)/10,1) | |
885 | for i = 0,1.5,.1 do | |
886 | swait() | |
887 | PlayAnimationFromTable({ | |
888 | CFrame.new(-2.14576721e-06, -1.66893005e-06, 0, 0, 1, 0, -1, 0, 0, 0, 0, 1)*CFrame.Angles(0,math.rad(360)*-i,0), | |
889 | CFrame.new(0, 1.50000107, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
890 | CFrame.new(1.4999969, 1.00000238, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1), | |
891 | CFrame.new(-1.49999905, 1.00000238, 0, 0, 1, 0, -1, 0, 0, 0, 0, 1), | |
892 | CFrame.new(0.499999046, -1.99999499, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
893 | CFrame.new(-0.500001907, -1.99999404, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
894 | }, .3, false) | |
895 | MagnitudeDmg(hito,3) | |
896 | end | |
897 | Humanoid.WalkSpeed = 40 | |
898 | tr1.Enabled = false | |
899 | attack = false | |
900 | end | |
901 | ||
902 | function burasuto() | |
903 | attack = true | |
904 | Humanoid.WalkSpeed = 5 | |
905 | for i=0,2,.1 do | |
906 | swait() | |
907 | PlayAnimationFromTable({ | |
908 | CFrame.new(0.0358428955, 0, 0.0325927734, 0, 0, 1, 0, 1, 0, -1, 0, 0), | |
909 | CFrame.new(0.0325870365, 1.49998832, -0.0358416028, 0.0301539954, 0.171010062, -0.984807789, 0.171009988, 0.969846368, 0.173648238, 0.984807849, -0.173648134, 3.13053391e-07), | |
910 | CFrame.new(1.5, 0.899998665, 0, 0, -1, 0, 1, 0, 0, 0, 0, 1), | |
911 | CFrame.new(-1.50195909, 0.627066612, -0.676912427, 0.984807849, -0.17364797, 1.12223177e-07, -0.030152997, -0.171006978, -0.984808326, 0.171009988, 0.969846904, -0.17364502), | |
912 | CFrame.new(0.5, -1.8499999, 0.459799707, 1, 0, 0, 0, 0.866025388, 0.500000238, 0, -0.500000238, 0.866025388), | |
913 | CFrame.new(-0.5, -1.57705688, -0.280751318, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
914 | }, .4, false) | |
915 | Effects.Ring(RightArm.CFrame*CFrame.new(0,-1,0)* CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(10,10,1),Vector3.new(-1,-1,0),"White",true,.1) | |
916 | Effects.Block(RightArm.CFrame*CFrame.new(0,-1,0),Vector3.new(2,2,2),Vector3.new(1,1,1),Vector3.new(-.1,-.1,-.1),"Ice","White",true,true,.1) | |
917 | end | |
918 | so(588736245,RightArm,.8,1) | |
919 | local dir = (RightArm.Position - Mouse.Hit.p).unit | |
920 | local blast = Instance.new("Part",EffectModel) | |
921 | blast.Name = "Burasuto" | |
922 | blast.BrickColor = BrickColor.new("Baby blue") | |
923 | blast.Size = Vector3.new(3,3,3) | |
924 | blast.Anchored = true | |
925 | blast.CanCollide = false | |
926 | blast.Material = "Neon" | |
927 | blast.Shape = "Ball" | |
928 | blast.CFrame = CFrame.new(RightArm.Position,RightArm.Position+dir) | |
929 | local pe = CreateSwirl(blast) | |
930 | pe.Size = NumberSequence.new(2,0) | |
931 | debby:AddItem(blast,10) | |
932 | coroutine.wrap(function() | |
933 | local par,pos | |
934 | local ta = 0 | |
935 | repeat | |
936 | swait() | |
937 | par,pos = rayCast(blast.Position,blast.CFrame.lookVector*2,5,chara) | |
938 | if par ~= nil then | |
939 | blast.CFrame = CFrame.new(pos) | |
940 | else | |
941 | blast.CFrame = blast.CFrame * CFrame.new(0,0,4) | |
942 | end | |
943 | until par ~= nil | |
944 | for b=1,2 do | |
945 | Effects.Block(blast.CFrame,Vector3.new(1,1,1),Vector3.new(),Vector3.new(1,1,1),"Ice","White",true,false,.1) | |
946 | end | |
947 | so(747238556,blast,1,1) | |
948 | MagnitudeDmg(blast,5) | |
949 | blast.Transparency = 1 | |
950 | debby:AddItem(blast,3) | |
951 | end)() | |
952 | Effects.Wave(RightArm.CFrame*CFrame.new(0,-1,0),Vector3.new(0,0,0),Vector3.new(.2,0,.2),"White",10,false,.05) | |
953 | Effects.Wave(RightArm.CFrame*CFrame.new(0,-1,0),Vector3.new(0,0,0),Vector3.new(1,0,1),"Baby blue",-10,false,.05) | |
954 | BodyVel(Torso,RootPart.CFrame.lookVector*-5) | |
955 | swait(20) | |
956 | Humanoid.WalkSpeed = 40 | |
957 | attack = false | |
958 | end | |
959 | ||
960 | function freeze() | |
961 | attack = true | |
962 | Humanoid.WalkSpeed = 4 | |
963 | chatfunc("That's it!") | |
964 | coroutine.wrap(function() | |
965 | for a=0,1,.1 do | |
966 | swait() | |
967 | for i,v in pairs(wep:children()) do | |
968 | v.Transparency = i | |
969 | end | |
970 | end | |
971 | end)() | |
972 | for i = 0,1,.1 do | |
973 | swait() | |
974 | PlayAnimationFromTable({ | |
975 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
976 | CFrame.new(0, 1.5255599, -0.222141743, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
977 | CFrame.new(1.50094986, 0.999999046, 0.0500035286, 0, -1, 0, 1, 0, 0, 0, 0, 1), | |
978 | CFrame.new(-1.52556324, 0.222139359, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
979 | CFrame.new(0.500001132, -2, -2.38418579e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
980 | CFrame.new(-0.500000715, -2, -8.34465027e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
981 | }, .3, false) | |
982 | end | |
983 | for i = 0,4,.05 do | |
984 | swait() | |
985 | PlayAnimationFromTable({ | |
986 | CFrame.new(0, 0.0349424481, 0.334686339, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
987 | CFrame.new(0, 1.43158746, 0.18793866, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438), | |
988 | CFrame.new(1.5, 0.499999046, 0.599990845, 0, -1, 0, 0, 0, -1, 1, 0, 0), | |
989 | CFrame.new(-1.5, 0.499999046, 0.599990845, 0, 1, 0, 0, 0, -1, -1, 0, 0), | |
990 | CFrame.new(0.50000006, -2.02669048, 0.381489158, 0.939692736, 0, -0.342019886, 0.116977625, 0.939692736, 0.321393639, 0.321393639, -0.342019886, 0.883022428), | |
991 | CFrame.new(-0.500001907, -2.02669072, 0.381488144, 0.866025388, 0, 0.500000238, -0.171010032, 0.939692736, 0.296197921, -0.469846606, -0.342019886, 0.813797772), | |
992 | }, .3, false) | |
993 | Effects.Block(RightArm.CFrame*CFrame.new(0,-1,0),Vector3.new(2,2,2),Vector3.new(1,1,1),Vector3.new(-.05,-.05,-.05),"Ice","White",true,true,.05) | |
994 | Effects.Block(LeftArm.CFrame*CFrame.new(0,-1,0),Vector3.new(2,2,2),Vector3.new(1,1,1),Vector3.new(-.05,-.05,-.05),"Ice","White",true,true,.05) | |
995 | end | |
996 | swait(20) | |
997 | for i = 0,1,.1 do | |
998 | swait() | |
999 | PlayAnimationFromTable({ | |
1000 | CFrame.new(0, -0.433955967, -0.642794847, 1, 0, 0, 0, 0.76604414, 0.642788053, 0, -0.642788053, 0.76604414), | |
1001 | CFrame.new(0, 1.50857329, 0.277411759, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), | |
1002 | CFrame.new(1.00000763, 1.37034774, -0.491282165, 0, 0, 1, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414, 0), | |
1003 | CFrame.new(-1.00000763, 1.37034774, -0.491282165, 0, 0, -1, -0.76604414, -0.642788053, 0, -0.642788053, 0.76604414, 0), | |
1004 | CFrame.new(0.5, -1.09861195, -1.12705588, 1, 0, 0, 0, 0.76604414, -0.642788053, 0, 0.642788053, 0.76604414), | |
1005 | CFrame.new(-0.5, -2.00000405, 5.72204681e-06, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
1006 | }, .3, false) | |
1007 | end | |
1008 | local pemit1 = CreateSwirl(RightArm) | |
1009 | pemit1.SpreadAngle = Vector2.new(20,20) | |
1010 | pemit1.EmissionDirection = "Bottom" | |
1011 | pemit1.Lifetime = NumberRange.new(.7) | |
1012 | pemit1.Speed = NumberRange.new(20) | |
1013 | pemit1.Size = NumberSequence.new(0,5) | |
1014 | local pemit2 = pemit1:Clone() | |
1015 | pemit2.Parent = LeftArm | |
1016 | local pa = Instance.new("Part",chara) | |
1017 | pa.Size = Vector3.new(0,0,0) | |
1018 | pa.CanCollide = false | |
1019 | pa.Anchored = true | |
1020 | pa.Transparency = 1 | |
1021 | so(87014838,Torso,1,1) | |
1022 | chatfunc("Freeze... to... death...") | |
1023 | for i=1,200 do | |
1024 | pa.CFrame = RootPart.CFrame * CFrame.new(0,0,-7) | |
1025 | MagnitudeDmg(pa,8) | |
1026 | swait() | |
1027 | end | |
1028 | pemit1.Enabled = false | |
1029 | pemit2.Enabled = false | |
1030 | pa:Destroy() | |
1031 | debby:AddItem(pemit1,4) | |
1032 | debby:AddItem(pemit2,4) | |
1033 | swait(30) | |
1034 | coroutine.wrap(function() | |
1035 | for a=0,1,.1 do | |
1036 | swait() | |
1037 | for i,v in pairs(wep:children()) do | |
1038 | v.Transparency = 1-i | |
1039 | end | |
1040 | end | |
1041 | for i,v in pairs(wep:children()) do | |
1042 | v.Transparency = 0 | |
1043 | end | |
1044 | end)() | |
1045 | Humanoid.WalkSpeed = 40 | |
1046 | tr1.Enabled = false | |
1047 | attack = false | |
1048 | end | |
1049 | ||
1050 | function areafreeze() | |
1051 | attack = true | |
1052 | Humanoid.WalkSpeed = 0 | |
1053 | chatfunc("The winter is coming..") | |
1054 | coroutine.wrap(function() | |
1055 | for a=0,1,.1 do | |
1056 | swait() | |
1057 | for i,v in pairs(wep:children()) do | |
1058 | v.Transparency = i | |
1059 | end | |
1060 | end | |
1061 | end)() | |
1062 | for i = 0,1,.1 do | |
1063 | swait() | |
1064 | PlayAnimationFromTable({ | |
1065 | CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1), | |
1066 | CFrame.new(0, 1.5255599, -0.222141743, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1067 | CFrame.new(1.50094986, 0.999999046, 0.0500035286, 0, -1, 0, 1, 0, 0, 0, 0, 1), | |
1068 | CFrame.new(-1.52556324, 0.222139359, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1), | |
1069 | CFrame.new(0.500001132, -2, -2.38418579e-07, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849), | |
1070 | CFrame.new(-0.500000715, -2, -8.34465027e-07, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736), | |
1071 | }, .3, false) | |
1072 | end | |
1073 | for i = 0,4,.05 do | |
1074 | swait() | |
1075 | PlayAnimationFromTable({ | |
1076 | CFrame.new(), | |
1077 | CFrame.new(0, 1.46578932, -0.0939713717, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1078 | CFrame.new(0.748245835, 0.499998569, -0.773616076, 0.342019022, 0.939693093, 0, 0, 0, -1, -0.939693093, 0.342018992, 0), | |
1079 | CFrame.new(-0.748251557, 0.499999017, -0.773617327, 0.342020124, -0.939692616, 4.10752676e-08, 0, -4.37113883e-08, -1, 0.939692616, 0.342020124, -1.49501744e-08), | |
1080 | CFrame.new(0.499996185, -1.28161228, -0.232838884, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1081 | CFrame.new(-0.5, -1.99999928, 0.299997658, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736), | |
1082 | }, .3, false) | |
1083 | Effects.Wave(Torso.CFrame*CFrame.new(0,-2,0),Vector3.new(10,0,10),Vector3.new(-.5,.05,-.5),"White",math.random(-10,10),true,.05) | |
1084 | Effects.Meshed(RootPart.CFrame*CFrame.new(math.random(-10,10),math.random(-1,5),math.random(-10,10))*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(2,2,2),Vector3.new(),"White","rbxassetid://187687161","",math.random(-2,2),false,.05) | |
1085 | end | |
1086 | swait(20) | |
1087 | chatfunc("COMETH, BLIZZARD O' DEATH!") | |
1088 | for i = 0,2,.1 do | |
1089 | swait() | |
1090 | PlayAnimationFromTable({ | |
1091 | CFrame.new(0, 0.0349424481, 0.334686339, 1, 0, 0, 0, 0.939692736, -0.342019886, 0, 0.342019916, 0.939692736), | |
1092 | CFrame.new(0, 1.43158746, 0.18793866, 1, 0, 0, 0, 0.939692438, -0.342020929, 0, 0.342020959, 0.939692438), | |
1093 | CFrame.new(1.5, 0.499999046, 0.599990845, 0, -1, 0, 0, 0, -1, 1, 0, 0), | |
1094 | CFrame.new(-1.5, 0.499999046, 0.599990845, 0, 1, 0, 0, 0, -1, -1, 0, 0), | |
1095 | CFrame.new(0.50000006, -2.02669048, 0.381489158, 0.939692736, 0, -0.342019886, 0.116977625, 0.939692736, 0.321393639, 0.321393639, -0.342019886, 0.883022428), | |
1096 | CFrame.new(-0.500001907, -2.02669072, 0.381488144, 0.866025388, 0, 0.500000238, -0.171010032, 0.939692736, 0.296197921, -0.469846606, -0.342019886, 0.813797772), | |
1097 | }, .3, false) | |
1098 | end | |
1099 | so(632669170,Torso,1,1) | |
1100 | MagnitudeDmg(RootPart,20) | |
1101 | for i=1,2 do | |
1102 | Effects.Block(Torso.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(3,3,3),"Ice","White",true,false,.05) | |
1103 | Effects.Ring(Torso.CFrame*CFrame.Angles(math.rad(math.random(0,360)),math.rad(math.random(0,360)),math.rad(math.random(0,360))),Vector3.new(1,1,.5),Vector3.new(5,5,0),"White",false,.05) | |
1104 | end | |
1105 | Effects.Wave(Torso.CFrame*CFrame.new(0,-2,0),Vector3.new(0,1,0),Vector3.new(5,0,5),"White",10,false,.05) | |
1106 | swait(30) | |
1107 | coroutine.wrap(function() | |
1108 | for a=0,1,.1 do | |
1109 | swait() | |
1110 | for i,v in pairs(wep:children()) do | |
1111 | v.Transparency = 1-i | |
1112 | end | |
1113 | end | |
1114 | for i,v in pairs(wep:children()) do | |
1115 | v.Transparency = 0 | |
1116 | end | |
1117 | end)() | |
1118 | Humanoid.WalkSpeed = 40 | |
1119 | tr1.Enabled = false | |
1120 | attack = false | |
1121 | end | |
1122 | ||
1123 | Mouse.Button1Down:connect(function() | |
1124 | if attack == false then | |
1125 | if Anim == "Jump" or Anim == "Fall" then | |
1126 | asmek() | |
1127 | else | |
1128 | smek() | |
1129 | end | |
1130 | end | |
1131 | end) | |
1132 | ||
1133 | local sprintt = 0 | |
1134 | Mouse.KeyDown:connect(function(k) | |
1135 | k = k:lower() | |
1136 | if k=='m' then | |
1137 | if mus.IsPlaying == true then | |
1138 | mus:Stop() | |
1139 | elseif mus.IsPaused == true then | |
1140 | mus:Play() | |
1141 | end | |
1142 | end | |
1143 | if attack == false then | |
1144 | if k == 'z' then | |
1145 | burasuto() | |
1146 | elseif k == 'x' then | |
1147 | freeze() | |
1148 | elseif k == 'c' then | |
1149 | areafreeze() | |
1150 | end | |
1151 | end | |
1152 | end) | |
1153 | ||
1154 | --Mouse.KeyUp:connect(function(k) | |
1155 | --k = k:lower() | |
1156 | --if k == 'e' then | |
1157 | --ehold = false | |
1158 | --elseif k == 'z' then | |
1159 | --zhold = false | |
1160 | --elseif k == 'v' then | |
1161 | --vhold = false | |
1162 | --elseif k == 'g' then | |
1163 | --ghold = false | |
1164 | --end | |
1165 | --end) | |
1166 | ||
1167 | coroutine.wrap(function() | |
1168 | while 1 do | |
1169 | swait() | |
1170 | if doe <= 360 then | |
1171 | doe = doe + 2 | |
1172 | else | |
1173 | doe = 0 | |
1174 | end | |
1175 | end | |
1176 | end)() | |
1177 | while true do | |
1178 | swait() | |
1179 | while true do | |
1180 | swait() | |
1181 | if chara:FindFirstChild("mus")==nil then | |
1182 | mus = Instance.new("Sound",chara) | |
1183 | mus.Name = "mus" | |
1184 | mus.SoundId = "rbxassetid://189224548" | |
1185 | mus.Looped = true | |
1186 | mus.Volume = 1 | |
1187 | mus:Play() | |
1188 | end | |
1189 | if sprintt >= 1 then | |
1190 | sprintt = sprintt - 1 | |
1191 | end | |
1192 | Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude | |
1193 | velocity = RootPart.Velocity.y | |
1194 | sine = sine + change | |
1195 | local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara) | |
1196 | if RootPart.Velocity.y > 1 and hit == nil then | |
1197 | Anim = "Jump" | |
1198 | if attack == false then | |
1199 | PlayAnimationFromTable({ | |
1200 | CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849), | |
1201 | CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855), | |
1202 | 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), | |
1203 | 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), | |
1204 | CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
1205 | CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676), | |
1206 | }, .3, false) | |
1207 | end | |
1208 | elseif RootPart.Velocity.y < -1 and hit == nil then | |
1209 | Anim = "Fall" | |
1210 | if attack == false then | |
1211 | PlayAnimationFromTable({ | |
1212 | CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849), | |
1213 | CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
1214 | 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), | |
1215 | 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), | |
1216 | CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012), | |
1217 | CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855), | |
1218 | }, .3, false) | |
1219 | end | |
1220 | elseif Torsovelocity < 1 and hit ~= nil then | |
1221 | Anim = "Idle" | |
1222 | if attack == false then | |
1223 | change = 1 | |
1224 | PlayAnimationFromTable({ | |
1225 | CFrame.new(0, 0, 0, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736) * CFrame.new(0,.05 * math.cos((sine)/10), 0), | |
1226 | CFrame.new(-1.22189522e-06, 1.49999833, -3.15904617e-06, 0.925416768, -0.101305634, -0.365159065, 0.173647985, 0.969846427, 0.171009958, 0.336823881, -0.221664593, 0.915103614), | |
1227 | CFrame.new(1.4999994, 0, 7.15255737e-07, 0.984807849, 0, -0.173648164, 0, 1, 0, 0.173648134, 0, 0.984807849), | |
1228 | CFrame.new(-1.3973906, -0.196961865, -0.0180919915, 0.969846308, -0.171010002, 0.173648715, 0.173648089, 0.984807789, 2.70171853e-07, -0.171010703, 0.0301535055, 0.98480773), | |
1229 | CFrame.new(0.499998569, -1.99999797, -5.96046448e-07, 0.939692736, 0, -0.342019916, 0, 1, 0, 0.342019886, 0, 0.939692736) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
1230 | CFrame.new(-0.499999195, -1.99999797, 1.17719173e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438) * CFrame.new(0,-.05 * math.cos((sine)/10), 0), | |
1231 | }, .3, false) | |
1232 | end | |
1233 | elseif Torsovelocity > 2 and hit ~= nil then | |
1234 | Anim = "Walk" | |
1235 | if attack == false then | |
1236 | Humanoid.WalkSpeed = 40 | |
1237 | Humanoid.JumpPower = 70 | |
1238 | PlayAnimationFromTable({ | |
1239 | CFrame.new(-2.4138464e-07, 0.123327732, -0.188363045, 1, -4.38293796e-07, 1.20420327e-06, 0, 0.939692736, 0.342019886, -1.28148622e-06, -0.342019916, 0.939692736) * CFrame.new(0, 0- .08 * math.cos((sine/2.5)), 0), | |
1240 | CFrame.new(0, 1.41422474, 0.0894482136, 1, 0, 0, 0, 0.939692736, -0.342019916, 0, 0.342019886, 0.939692736), | |
1241 | CFrame.new(1.39999986, 4.76837158e-07, 0.173205554, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388), | |
1242 | CFrame.new(-1.53598976, 0.0413191095, -1.86092848e-06, 0.995650649, 0.0931596532, -2.61508148e-07, -0.0931649953, 0.995651186, -1.00695124e-05, -7.49969331e-07, 1.08217946e-05, 1.00000024) * CFrame.new(0, 0, .6 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0), | |
1243 | 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+ 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 - 60 * math.cos((sine) / 2.5)), 0, 0), | |
1244 | 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- 1 * math.cos((sine) / 2.5)) * CFrame.Angles(math.rad(0 + 60 * math.cos((sine) / 2.5)), 0, 0), | |
1245 | }, .3, false) | |
1246 | end | |
1247 | end | |
1248 | end | |
1249 | end |