SHOW:
|
|
- or go back to the newest paste.
1 | if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by StarzoZero");InternalData = {} | |
2 | do | |
3 | script.Parent = owner.Character | |
4 | local Event = Instance.new("RemoteEvent");Event.Name = "UserInput" | |
5 | local function NewFakeEvent() | |
6 | local Bind = Instance.new("BindableEvent") | |
7 | local Fake;Fake = {Connections = {}, | |
8 | fakeEvent=true; | |
9 | Connect=function(self,Func) | |
10 | Bind.Event:connect(Func) | |
11 | self.Connections[Bind] = true | |
12 | return setmetatable({Connected = true},{ | |
13 | __index = function (self,Index) | |
14 | if Index:lower() == "disconnect" then | |
15 | return function() Fake.Connections[Bind] = false;self.Connected = false end | |
16 | end | |
17 | return Fake[Index] | |
18 | end; | |
19 | __tostring = function() return "Connection" end; | |
20 | }) | |
21 | end} | |
22 | Fake.connect = Fake.Connect;return Fake; | |
23 | end | |
24 | local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()} | |
25 | local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()} | |
26 | local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...) | |
27 | self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil | |
28 | end};ContextActionService.UnBindAction = ContextActionService.BindAction | |
29 | local function TriggerEvent(self,Event,...) | |
30 | local Trigger = Mouse[Event] | |
31 | if Trigger and Trigger.fakeEvent and Trigger.Connections then | |
32 | for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end | |
33 | end | |
34 | end | |
35 | Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent | |
36 | Event.OnServerEvent:Connect(function(FiredBy,Input) | |
37 | if FiredBy.Name ~= owner.Name then return end | |
38 | if Input.MouseEvent then | |
39 | Mouse.Target = Input.Target;Mouse.Hit = Input.Hit | |
40 | else | |
41 | local Begin = Input.UserInputState == Enum.UserInputState.Begin | |
42 | if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end | |
43 | for _,Action in pairs(ContextActionService.Actions) do | |
44 | for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end | |
45 | end | |
46 | Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower()) | |
47 | UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false) | |
48 | end | |
49 | end) | |
50 | InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService | |
51 | Event.Parent = NLS([[ | |
52 | local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse() | |
53 | local Input = function(Input,gameProcessedEvent) | |
54 | if gameProcessedEvent then return end | |
55 | Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState}) | |
56 | end | |
57 | UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input) | |
58 | local Hit,Target | |
59 | while wait(1/30) do | |
60 | if Hit ~= Mouse.Hit or Target ~= Mouse.Target then | |
61 | Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit}) | |
62 | end | |
63 | end | |
64 | ]],owner.Character) | |
65 | end | |
66 | RealGame = game;game = setmetatable({},{ | |
67 | __index = function (self,Index) | |
68 | local Sandbox = function (Thing) | |
69 | if Thing:IsA("Player") then | |
70 | local RealPlayer = Thing | |
71 | return setmetatable({},{ | |
72 | __index = function (self,Index) | |
73 | local Type = type(RealPlayer[Index]) | |
74 | if Type == "function" then | |
75 | if Index:lower() == "getmouse" or Index:lower() == "mouse" then | |
76 | return function (self)return InternalData["Mouse"] end | |
77 | end | |
78 | return function (self,...)return RealPlayer[Index](RealPlayer,...) end | |
79 | end | |
80 | return RealPlayer[Index] | |
81 | end; | |
82 | __tostring = function(self) return RealPlayer.Name end | |
83 | }) | |
84 | end | |
85 | end | |
86 | if RealGame[Index] then | |
87 | local Type = type(RealGame[Index]) | |
88 | if Type == "function" then | |
89 | if Index:lower() == "getservice" or Index:lower() == "service" then | |
90 | return function (self,Service) | |
91 | local FakeServices = { | |
92 | ["players"] = function() | |
93 | return setmetatable({},{ | |
94 | __index = function (self2,Index2) | |
95 | local RealService = RealGame:GetService(Service) | |
96 | local Type2 = type(Index2) | |
97 | if Type2 == "function" then | |
98 | return function (self,...) return RealService[Index2](RealService,...)end | |
99 | else | |
100 | if Index2:lower() == "localplayer" then return Sandbox(owner) end | |
101 | return RealService[Index2] | |
102 | end | |
103 | end; | |
104 | __tostring = function(self) return RealGame:GetService(Service).Name end | |
105 | }) | |
106 | end; | |
107 | ["contextactionservice"] = function() return InternalData["ContextActionService"] end; | |
108 | ["userinputservice"] = function() return InternalData["UserInputService"] end; | |
109 | ["runservice"] = function() | |
110 | return setmetatable({},{ | |
111 | __index = function(self2,Index2) | |
112 | local RealService = RealGame:GetService(Service) | |
113 | local Type2 = type(Index2) | |
114 | if Type2 == "function" then | |
115 | return function (self,...) return RealService[Index2](RealService,...) end | |
116 | else | |
117 | local RunServices = { | |
118 | ["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end; | |
119 | ["renderstepped"] = function() return RealService["Stepped"] end | |
120 | } | |
121 | if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end | |
122 | return RealService[Index2] | |
123 | end | |
124 | end | |
125 | }) | |
126 | end | |
127 | } | |
128 | if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end | |
129 | return RealGame:GetService(Service) | |
130 | end | |
131 | end | |
132 | return function (self,...) return RealGame[Index](RealGame,...) end | |
133 | else | |
134 | if game:GetService(Index) then return game:GetService(Index) end | |
135 | return RealGame[Index] | |
136 | end | |
137 | end | |
138 | return nil | |
139 | end | |
140 | });Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Wanna Sprite Cranberry?") | |
141 | ||
142 | --Made by Ahtoh13131423144235, Rufus14 | |
143 | --Credit to ttyyuu12345 for the model to script plugin v4 | |
144 | --Credit to Rufus14 for helping | |
145 | ||
146 | --[[ | |
147 | Change log: | |
148 | -Added u attack | |
149 | --]] | |
150 | ||
151 | print("This Script was Made by StarzoZero") | |
152 | ||
153 | wait(2) | |
154 | ||
155 | - | local player = game.Players.LocalPlayer |
155 | + | local player = game:GetService("Players").LocalPlayer |
156 | local char = player.Character | |
157 | local mouse = player:GetMouse() | |
158 | local canAttack = false | |
159 | local damage = false | |
160 | local rootJointC0 = char.HumanoidRootPart.RootJoint.C0 | |
161 | char.Torso["Right Shoulder"]:Remove() | |
162 | ||
163 | --Converted with ttyyuu12345's model to script plugin v4 | |
164 | function sandbox(var,func) | |
165 | local env = getfenv(func) | |
166 | local newenv = setmetatable({},{ | |
167 | __index = function(self,k) | |
168 | if k=="script" then | |
169 | return var | |
170 | else | |
171 | return env[k] | |
172 | end | |
173 | end, | |
174 | }) | |
175 | setfenv(func,newenv) | |
176 | return func | |
177 | end | |
178 | cors = {} | |
179 | mas = Instance.new("Model",game:GetService("Lighting")) | |
180 | Part0 = Instance.new("Part") | |
181 | Part0:BreakJoints() | |
182 | Weld1 = Instance.new("Weld") | |
183 | Weld2 = Instance.new("Weld") | |
184 | Weld3 = Instance.new("Weld") | |
185 | SpecialMesh2 = Instance.new("SpecialMesh") | |
186 | Part0.Name = "Handle" | |
187 | Part0.Parent = mas | |
188 | Part0.BrickColor = BrickColor.new("Mid gray") | |
189 | Part0.Rotation = Vector3.new(-180, 0, 180) | |
190 | Part0.FormFactor = Enum.FormFactor.Plate | |
191 | Part0.Size = Vector3.new(1, 1.20000005, 1) | |
192 | Part0.CFrame = CFrame.new(-18.1699982, 0.600000024, -0.639984131, -1, -1.21401766e-17, -2.78761293e-23, -1.21401766e-17, 1, 1.21401766e-17, 2.78761293e-23, 1.21401766e-17, -1) | |
193 | Part0.BottomSurface = Enum.SurfaceType.Smooth | |
194 | Part0.TopSurface = Enum.SurfaceType.Smooth | |
195 | Part0.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
196 | Part0.Position = Vector3.new(-18.1699982, 0.600000024, -0.639984131) | |
197 | Part0.Orientation = Vector3.new(0, -180, 0) | |
198 | Part0.Color = Color3.new(0.803922, 0.803922, 0.803922) | |
199 | Weld1.C0 = Weld1.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
200 | Weld1.Parent = char["Right Arm"] | |
201 | Weld1.Part0 = char["Right Arm"] | |
202 | Weld1.Part1 = Part0 | |
203 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
204 | Weld2.C1 = CFrame.new(0,0.5,0) | |
205 | Weld2.Parent = char.Torso | |
206 | Weld2.Part0 = char.Torso | |
207 | Weld2.Part1 = char["Right Arm"] | |
208 | Weld3.C0 = CFrame.new(-1.5,0.5,0) | |
209 | Weld3.C1 = CFrame.new(0,0.5,0) | |
210 | Weld3.Parent = char.Torso | |
211 | Weld3.Part0 = char.Torso | |
212 | Weld3.Part1 = nil | |
213 | SpecialMesh2.Parent = Part0 | |
214 | SpecialMesh2.MeshId = "http://www.roblox.com/asset/?id=10470609" | |
215 | SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5) | |
216 | SpecialMesh2.TextureId = "http://www.roblox.com/asset/?id=1270595652" | |
217 | SpecialMesh2.MeshType = Enum.MeshType.FileMesh | |
218 | SpecialMesh2.Scale = Vector3.new(1.5, 1.5, 1.5) | |
219 | for i,v in pairs(mas:GetChildren()) do | |
220 | v.Parent = char | |
221 | pcall(function() v:MakeJoints() end) | |
222 | end | |
223 | mas:Destroy() | |
224 | for i,v in pairs(cors) do | |
225 | spawn(function() | |
226 | pcall(v) | |
227 | end) | |
228 | end | |
229 | ||
230 | for i = 1,15 do | |
231 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
232 | wait() | |
233 | end | |
234 | ||
235 | canAttack = true | |
236 | ||
237 | char.Humanoid.Died:connect(function() | |
238 | local sound = Instance.new("Sound",char) | |
239 | sound.SoundId = "rbxassetid://182003383" | |
240 | sound.Pitch = 1 | |
241 | sound:Play() | |
242 | end) | |
243 | ||
244 | mouse.Button1Down:connect(function() | |
245 | if canAttack == true then | |
246 | canAttack = false | |
247 | for i = 1,10 do | |
248 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1) | |
249 | wait() | |
250 | end | |
251 | for i = 1,5 do | |
252 | Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,0.1) | |
253 | wait() | |
254 | end | |
255 | local drink = Instance.new("Sound", char) | |
256 | drink.SoundId = "rbxassetid://1258675588" | |
257 | drink.Volume = 5 | |
258 | drink:Play() | |
259 | wait(3) | |
260 | char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").Health + 20 | |
261 | char:FindFirstChild("Humanoid").WalkSpeed = char:FindFirstChild("Humanoid").WalkSpeed + 0.1 | |
262 | for i = 1,5 do | |
263 | Weld1.C0 = Weld1.C0 * CFrame.Angles(0,0,-0.1) | |
264 | wait() | |
265 | end | |
266 | for i = 1,10 do | |
267 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1) | |
268 | wait() | |
269 | end | |
270 | canAttack = true | |
271 | end | |
272 | end) | |
273 | ||
274 | mouse.KeyDown:connect(function(key) | |
275 | if key:lower() == "q" and canAttack == true then | |
276 | canAttack = false | |
277 | for i = 1,10 do | |
278 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
279 | wait() | |
280 | end | |
281 | damage = true | |
282 | for i = 1,19 do | |
283 | Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0) | |
284 | wait() | |
285 | end | |
286 | for i = 1,9 do | |
287 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
288 | wait() | |
289 | end | |
290 | damage = false | |
291 | canAttack = true | |
292 | elseif key:lower() == "e" and canAttack == true then | |
293 | canAttack = false | |
294 | Weld3.Part1 = char["Left Arm"] | |
295 | char.Torso["Left Shoulder"].Part1 = nil | |
296 | for i = 1,15 do | |
297 | Weld3.C0 = Weld3.C0 * CFrame.Angles(0.1,0,0) | |
298 | wait() | |
299 | end | |
300 | for i = 1,15 do | |
301 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,0.1) | |
302 | Weld3.C0 = Weld3.C0 * CFrame.Angles(0,0,-0.1) | |
303 | wait() | |
304 | end | |
305 | damage = true | |
306 | for i = 1,400 do | |
307 | char.HumanoidRootPart.RootJoint.C0 = char.HumanoidRootPart.RootJoint.C0 * CFrame.Angles(0,0,0.1) | |
308 | wait() | |
309 | end | |
310 | char.HumanoidRootPart.RootJoint.C0 = rootJointC0 | |
311 | damage = false | |
312 | for i = 1,15 do | |
313 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0,0,-0.1) | |
314 | wait() | |
315 | end | |
316 | Weld3.C0 = CFrame.new(-1.5,0.5,0) | |
317 | char.Torso["Left Shoulder"].Part1 = char["Left Arm"] | |
318 | Weld3.Part1 = nil | |
319 | canAttack = true | |
320 | elseif key:lower() == "r" and canAttack == true then | |
321 | canAttack = false | |
322 | for i = 1,13 do | |
323 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
324 | wait() | |
325 | end | |
326 | wait(5) | |
327 | Part0.Transparency = 1 | |
328 | local fake = Part0:Clone() | |
329 | fake.Parent = char | |
330 | fake.CanCollide = false | |
331 | fake.Position = Part0.Position | |
332 | fake.Transparency = 0 | |
333 | local bodyVelocity = Instance.new("BodyVelocity") | |
334 | bodyVelocity.Parent = fake | |
335 | bodyVelocity.Velocity = char.Torso.CFrame.lookVector * 90 | |
336 | fake.Touched:connect(function(hit) | |
337 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then | |
338 | hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10 | |
339 | hit.Parent:FindFirstChild("Humanoid").Sit = true | |
340 | fake:Remove() | |
341 | end | |
342 | end) | |
343 | for i = 1,13 do | |
344 | Weld2.C0 = Weld2.C0 * CFrame.Angles(-0.1,0,0) | |
345 | wait() | |
346 | end | |
347 | for i = 1,100 do | |
348 | Part0.Transparency = Part0.Transparency - 0.01 | |
349 | wait() | |
350 | end | |
351 | Part0.Transparency = 0 | |
352 | canAttack = true | |
353 | elseif key:lower() == "t" and canAttack == true and mouse.Target ~= nil then | |
354 | canAttack = false | |
355 | local victim = mouse.Target.Parent | |
356 | local humanoid = victim:FindFirstChild("Humanoid") | |
357 | if humanoid == nil then | |
358 | canAttack = true | |
359 | return | |
360 | end | |
361 | humanoid.WalkSpeed = 0 | |
362 | char.Humanoid.WalkSpeed = 0 | |
363 | Part0.Transparency = 1 | |
364 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
365 | local fake = Part0:Clone() | |
366 | fake.Parent = char | |
367 | fake.Transparency = 0 | |
368 | local fakeWeld = Instance.new("Weld") | |
369 | fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
370 | fakeWeld.Part0 = victim["Right Arm"] | |
371 | fakeWeld.Part1 = fake | |
372 | fakeWeld.Parent = victim["Right Arm"] | |
373 | local armWeld = Instance.new("Weld") | |
374 | armWeld.C0 = CFrame.new(1.5,0.5,0) | |
375 | armWeld.C1 = CFrame.new(0,0.5,0) | |
376 | armWeld.Parent = victim.Torso | |
377 | armWeld.Part0 = victim.Torso | |
378 | armWeld.Part1 = victim["Right Arm"] | |
379 | for i = 1,15 do | |
380 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0) | |
381 | wait() | |
382 | end | |
383 | for i = 1,10 do | |
384 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1) | |
385 | wait() | |
386 | end | |
387 | for i = 1,5 do | |
388 | fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1) | |
389 | wait() | |
390 | end | |
391 | local drink = Instance.new("Sound", victim) | |
392 | drink.SoundId = "rbxassetid://10722059" | |
393 | drink.Volume = 5 | |
394 | drink:Play() | |
395 | wait(3) | |
396 | fakeWeld:Remove() | |
397 | victim.Head.BrickColor = BrickColor.new("Medium green") | |
398 | if victim.Head:FindFirstChild("face") then | |
399 | victim.Head.face.Texture = "http://www.roblox.com/asset/?id=137852314" | |
400 | end | |
401 | humanoid.PlatformStand = true | |
402 | for i = 1,humanoid.MaxHealth do | |
403 | humanoid.Health = humanoid.Health - 1 | |
404 | wait() | |
405 | end | |
406 | char.Humanoid.WalkSpeed = 16 | |
407 | for i = 1,100 do | |
408 | Part0.Transparency = Part0.Transparency - 0.01 | |
409 | wait() | |
410 | end | |
411 | Part0.Transparency = 0 | |
412 | for i = 1,15 do | |
413 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
414 | wait() | |
415 | end | |
416 | canAttack = true | |
417 | elseif key:lower() == "y" and canAttack == true and mouse.Target ~= nil then | |
418 | canAttack = false | |
419 | local victim = mouse.Target.Parent | |
420 | local humanoid = victim:FindFirstChild("Humanoid") | |
421 | if humanoid == nil then | |
422 | canAttack = true | |
423 | return | |
424 | end | |
425 | humanoid.WalkSpeed = 0 | |
426 | char.Humanoid.WalkSpeed = 0 | |
427 | Part0.Transparency = 1 | |
428 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
429 | local fake = Part0:Clone() | |
430 | fake.Parent = char | |
431 | fake.Transparency = 0 | |
432 | local fakeWeld = Instance.new("Weld") | |
433 | fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
434 | fakeWeld.Part0 = victim["Right Arm"] | |
435 | fakeWeld.Part1 = fake | |
436 | fakeWeld.Parent = victim["Right Arm"] | |
437 | local armWeld = Instance.new("Weld") | |
438 | armWeld.C0 = CFrame.new(1.5,0.5,0) | |
439 | armWeld.C1 = CFrame.new(0,0.5,0) | |
440 | armWeld.Parent = victim.Torso | |
441 | armWeld.Part0 = victim.Torso | |
442 | armWeld.Part1 = victim["Right Arm"] | |
443 | for i = 1,15 do | |
444 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0) | |
445 | wait() | |
446 | end | |
447 | for i = 1,10 do | |
448 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1) | |
449 | wait() | |
450 | end | |
451 | for i = 1,5 do | |
452 | fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1) | |
453 | wait() | |
454 | end | |
455 | local drink = Instance.new("Sound", victim) | |
456 | drink.SoundId = "rbxassetid://10722059" | |
457 | drink.Volume = 5 | |
458 | drink:Play() | |
459 | wait(3) | |
460 | fake:Remove() | |
461 | humanoid.Health = humanoid.Health + 20 | |
462 | char.Humanoid.WalkSpeed = 16 | |
463 | for i = 1,10 do | |
464 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,0.1) | |
465 | wait() | |
466 | end | |
467 | for i = 1,15 do | |
468 | armWeld.C0 = armWeld.C0 * CFrame.Angles(-0.1,0,0) | |
469 | wait() | |
470 | end | |
471 | for i = 1,100 do | |
472 | Part0.Transparency = Part0.Transparency - 0.01 | |
473 | wait() | |
474 | end | |
475 | Part0.Transparency = 0 | |
476 | for i = 1,15 do | |
477 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
478 | wait() | |
479 | end | |
480 | canAttack = true | |
481 | elseif key:lower() == "u" and canAttack == true and mouse.Target ~= nil then | |
482 | canAttack = false | |
483 | local victim = mouse.Target.Parent | |
484 | local humanoid = victim:FindFirstChild("Humanoid") | |
485 | if humanoid == nil then | |
486 | canAttack = true | |
487 | return | |
488 | end | |
489 | humanoid.WalkSpeed = 0 | |
490 | char.Humanoid.WalkSpeed = 0 | |
491 | Part0.Transparency = 1 | |
492 | Weld2.C0 = CFrame.new(1.5,0.5,0) | |
493 | local fake = Part0:Clone() | |
494 | fake.Parent = char | |
495 | fake.Transparency = 0 | |
496 | local fakeWeld = Instance.new("Weld") | |
497 | fakeWeld.C0 = fakeWeld.C0 * CFrame.new(0,-1,-0.5) * CFrame.fromEulerAnglesXYZ(-1.5,0,0) | |
498 | fakeWeld.Part0 = victim["Right Arm"] | |
499 | fakeWeld.Part1 = fake | |
500 | fakeWeld.Parent = victim["Right Arm"] | |
501 | local armWeld = Instance.new("Weld") | |
502 | armWeld.C0 = CFrame.new(1.5,0.5,0) | |
503 | armWeld.C1 = CFrame.new(0,0.5,0) | |
504 | armWeld.Parent = victim.Torso | |
505 | armWeld.Part0 = victim.Torso | |
506 | armWeld.Part1 = victim["Right Arm"] | |
507 | for i = 1,15 do | |
508 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0.1,0,0) | |
509 | wait() | |
510 | end | |
511 | for i = 1,10 do | |
512 | armWeld.C0 = armWeld.C0 * CFrame.Angles(0,0,-0.1) | |
513 | wait() | |
514 | end | |
515 | for i = 1,5 do | |
516 | fakeWeld.C0 = fakeWeld.C0 * CFrame.Angles(0,0,0.1) | |
517 | wait() | |
518 | end | |
519 | local drink = Instance.new("Sound", victim) | |
520 | drink.SoundId = "rbxassetid://10722059" | |
521 | drink.Volume = 5 | |
522 | drink:Play() | |
523 | wait(3) | |
524 | local freezing = Instance.new("Sound", victim) | |
525 | freezing.SoundId = "rbxassetid://268249319" | |
526 | freezing.Volume = 5 | |
527 | freezing:Play() | |
528 | local value = Instance.new("BoolValue",victim) | |
529 | value.Name = "Frozen" | |
530 | value.Value = true | |
531 | for i,v in pairs(victim:GetChildren()) do | |
532 | if v.ClassName == "Part" then | |
533 | v.BrickColor = BrickColor.new("Bright blue") | |
534 | v.Anchored = true | |
535 | end | |
536 | end | |
537 | char.Humanoid.WalkSpeed = 16 | |
538 | for i = 1,100 do | |
539 | Part0.Transparency = Part0.Transparency - 0.01 | |
540 | wait() | |
541 | end | |
542 | Part0.Transparency = 0 | |
543 | for i = 1,15 do | |
544 | Weld2.C0 = Weld2.C0 * CFrame.Angles(0.1,0,0) | |
545 | wait() | |
546 | end | |
547 | canAttack = true | |
548 | end | |
549 | end) | |
550 | ||
551 | Part0.Touched:connect(function(hit) | |
552 | if damage == true then | |
553 | if hit.Parent:FindFirstChild("Humanoid") and hit.Parent ~= char then | |
554 | hit.Parent:FindFirstChild("Humanoid").Health = hit.Parent:FindFirstChild("Humanoid").Health - 10 | |
555 | hit.Parent:FindFirstChild("Humanoid").Sit = true | |
556 | local hit0 = Instance.new("Sound", hit) | |
557 | hit0.SoundId = "rbxassetid://260430060" | |
558 | hit0.Volume = 3 | |
559 | local hit1 = Instance.new("Sound", hit) | |
560 | hit1.SoundId = "rbxassetid://138087186" | |
561 | hit1.Volume = 3 | |
562 | local hit2 = Instance.new("Sound", hit) | |
563 | hit2.SoundId = "rbxassetid://131237241" | |
564 | hit2.Volume = 3 | |
565 | local hit3 = Instance.new("Sound", hit) | |
566 | hit3.SoundId = "rbxassetid://278062209" | |
567 | hit3.Volume = 3 | |
568 | hit3.TimePosition = 0.33 | |
569 | local math1 = math.random(1,4) | |
570 | if math1 == 1 then | |
571 | hit0:Play() | |
572 | end | |
573 | if math1 == 2 then | |
574 | hit1:Play() | |
575 | end | |
576 | if math1 == 3 then | |
577 | hit2:Play() | |
578 | end | |
579 | if math1 == 4 then | |
580 | hit3:Play() | |
581 | end | |
582 | if hit.Parent:FindFirstChild("Frozen") then | |
583 | local hit0 = Instance.new("Sound", hit) | |
584 | hit0.SoundId = "rbxassetid://516789356" | |
585 | hit0.Volume = 5 | |
586 | hit0:Play() | |
587 | hit.Parent.Frozen:Remove() | |
588 | for i,v in pairs(hit.Parent:GetChildren()) do | |
589 | if v.ClassName == "Part" then | |
590 | v.Anchored = false | |
591 | end | |
592 | end | |
593 | end | |
594 | end | |
595 | end | |
596 | end) |