SHOW:
|
|
- or go back to the newest paste.
1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end | |
3 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
4 | local RealPlayer = Player | |
5 | do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end | |
6 | ||
7 | ||
8 | --[[ last updated: 2018/5/13, 15:30 | |
9 | ||
10 | Pen by oilsauce.]] | |
11 | ||
12 | print("Pen Script by 1000hack.") | |
13 | - | print("Pen Script by Oilsauce.") |
13 | + | |
14 | print("E: Toggle Pen") | |
15 | print("F: Throw Pen") | |
16 | ||
17 | wait(0.001) | |
18 | - | wait(0.6) |
18 | + | |
19 | ||
20 | local plrs = game:GetService("Players") | |
21 | local plr = plrs.LocalPlayer | |
22 | local char = plr.Character | |
23 | local sound = Instance.new("Sound",char.Torso) | |
24 | sound.SoundId = "rbxassetid://323901968" | |
25 | sound.Volume = 10 | |
26 | plr:ClearCharacterAppearance() | |
27 | local tweenserv = game:GetService("TweenService") | |
28 | local lighting = game:GetService("Lighting") | |
29 | local hum = char:FindFirstChildOfClass("Humanoid") | |
30 | local mou = plr:GetMouse() | |
31 | local tor = char:FindFirstChild("Torso") or char:FindFirstChild("UpperTorso") | |
32 | local root = char:FindFirstChild("HumanoidRootPart") | |
33 | local head = char:FindFirstChild("Head") | |
34 | local face = head:FindFirstChildOfClass("Decal") | |
35 | local larm = char:FindFirstChild("Left Arm") or char:FindFirstChild("LeftUpperArm") | |
36 | local rarm = char:FindFirstChild("Right Arm") or char:FindFirstChild("RightUpperArm") | |
37 | local rleg = char:FindFirstChild("Right Leg") or char:FindFirstChild("RightUpperLeg") | |
38 | local lleg = char:FindFirstChild("Left Leg") or char:FindFirstChild("LeftUpperLeg") | |
39 | local neck = tor:FindFirstChild("Neck") | |
40 | local rootj = root:FindFirstChild("RootJoint") | |
41 | local LS = tor:FindFirstChild("Left Shoulder") | |
42 | local RS = tor:FindFirstChild("Right Shoulder") | |
43 | local LH = tor:FindFirstChild("Left Hip") | |
44 | local RH = tor:FindFirstChild("Right Hip") | |
45 | local bp = plr:FindFirstChild("Backpack") | |
46 | canglitch = true | |
47 | ||
48 | hum:ClearAllChildren() | |
49 | char.Animate:remove() | |
50 | ||
51 | local shirt = Instance.new("Shirt",char) | |
52 | shirt.ShirtTemplate = "rbxassetid://3109435646" | |
53 | - | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=1100804238" |
53 | + | |
54 | pants.PantsTemplate = "rbxassetid://2589558921" | |
55 | - | pants.PantsTemplate = "http://www.roblox.com/asset/?id=144076759" |
55 | + | char.Head.face.Texture = "rbxassetid://1011992280" |
56 | ||
57 | --Converted with ttyyuu12345's model to script plugin v4 | |
58 | function sandbox(var,func) | |
59 | local env = getfenv(func) | |
60 | local newenv = setmetatable({},{ | |
61 | __index = function(self,k) | |
62 | if k=="script" then | |
63 | return var | |
64 | else | |
65 | return env[k] | |
66 | end | |
67 | end, | |
68 | }) | |
69 | setfenv(func,newenv) | |
70 | return func | |
71 | end | |
72 | cors = {} | |
73 | mas = Instance.new("Model",game:GetService("Lighting")) | |
74 | Model0 = Instance.new("Model") | |
75 | Part1 = Instance.new("Part") | |
76 | Part2 = Instance.new("Part") | |
77 | ManualWeld3 = Instance.new("ManualWeld") | |
78 | Part4 = Instance.new("Part") | |
79 | ManualWeld5 = Instance.new("ManualWeld") | |
80 | Part6 = Instance.new("Part") | |
81 | ManualWeld7 = Instance.new("ManualWeld") | |
82 | Part8 = Instance.new("Part") | |
83 | ManualWeld9 = Instance.new("ManualWeld") | |
84 | Part10 = Instance.new("Part") | |
85 | ManualWeld11 = Instance.new("ManualWeld") | |
86 | Part12 = Instance.new("Part") | |
87 | ManualWeld13 = Instance.new("ManualWeld") | |
88 | Model0.Name = "pen" | |
89 | Model0.Parent = mas | |
90 | Part1.Name = "handler2" | |
91 | Part1.Parent = Model0 | |
92 | Part1.Material = Enum.Material.Glass | |
93 | Part1.BrickColor = BrickColor.new("Really black") | |
94 | Part1.Shape = Enum.PartType.Cylinder | |
95 | Part1.Size = Vector3.new(0.099999927, 0.075000003, 0.075000003) | |
96 | Part1.CFrame = CFrame.new(0.422837317, 4.01673937, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
97 | Part1.BottomSurface = Enum.SurfaceType.Smooth | |
98 | Part1.TopSurface = Enum.SurfaceType.Smooth | |
99 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
100 | Part1.Position = Vector3.new(0.422837317, 4.01673937, 24.1206856) | |
101 | Part1.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
102 | Part2.Name = "handler1" | |
103 | Part2.Parent = Model0 | |
104 | Part2.Material = Enum.Material.Glass | |
105 | Part2.BrickColor = BrickColor.new("Really black") | |
106 | Part2.Shape = Enum.PartType.Cylinder | |
107 | Part2.Size = Vector3.new(0.099999927, 0.100000001, 0.100000001) | |
108 | Part2.CFrame = CFrame.new(0.356837302, 4.02223921, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
109 | Part2.BottomSurface = Enum.SurfaceType.Smooth | |
110 | Part2.TopSurface = Enum.SurfaceType.Smooth | |
111 | Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
112 | Part2.Position = Vector3.new(0.356837302, 4.02223921, 24.1206856) | |
113 | Part2.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
114 | ManualWeld3.Name = "Weld" | |
115 | ManualWeld3.Parent = Part2 | |
116 | ManualWeld3.C1 = CFrame.new(-0.0660000145, 0.00549983978, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
117 | ManualWeld3.Part0 = Part2 | |
118 | ManualWeld3.Part1 = Part1 | |
119 | Part4.Name = "body" | |
120 | Part4.Parent = Model0 | |
121 | Part4.Material = Enum.Material.Glass | |
122 | Part4.BrickColor = BrickColor.new("Really black") | |
123 | Part4.Shape = Enum.PartType.Cylinder | |
124 | Part4.Size = Vector3.new(1.27499998, 0.125, 0.125) | |
125 | Part4.CFrame = CFrame.new(-0.320662677, 4.02673912, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
126 | Part4.BottomSurface = Enum.SurfaceType.Smooth | |
127 | Part4.TopSurface = Enum.SurfaceType.Smooth | |
128 | Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
129 | Part4.Position = Vector3.new(-0.320662677, 4.02673912, 24.1206856) | |
130 | Part4.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
131 | ManualWeld5.Name = "Weld" | |
132 | ManualWeld5.Parent = Part4 | |
133 | ManualWeld5.C1 = CFrame.new(-0.743499994, 0.00999975204, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
134 | ManualWeld5.Part0 = Part4 | |
135 | ManualWeld5.Part1 = Part1 | |
136 | Part6.Name = "clipholder" | |
137 | Part6.Parent = Model0 | |
138 | Part6.Material = Enum.Material.Glass | |
139 | Part6.BrickColor = BrickColor.new("Really black") | |
140 | Part6.Shape = Enum.PartType.Cylinder | |
141 | Part6.Size = Vector3.new(0.2, 0.150000006, 0.150000006) | |
142 | Part6.CFrame = CFrame.new(-0.986662686, 4.02623892, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
143 | Part6.BottomSurface = Enum.SurfaceType.Smooth | |
144 | Part6.TopSurface = Enum.SurfaceType.Smooth | |
145 | Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
146 | Part6.Position = Vector3.new(-0.986662686, 4.02623892, 24.1206856) | |
147 | Part6.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
148 | ManualWeld7.Name = "Weld" | |
149 | ManualWeld7.Parent = Part6 | |
150 | ManualWeld7.C1 = CFrame.new(-1.4095, 0.00949954987, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
151 | ManualWeld7.Part0 = Part6 | |
152 | ManualWeld7.Part1 = Part1 | |
153 | Part8.Name = "clip" | |
154 | Part8.Parent = Model0 | |
155 | Part8.Material = Enum.Material.Glass | |
156 | Part8.BrickColor = BrickColor.new("Really black") | |
157 | Part8.Size = Vector3.new(0.724999905, 0.0500000119, 0.100000001) | |
158 | Part8.CFrame = CFrame.new(-0.663956106, 4.10453987, 24.1179676, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
159 | Part8.BottomSurface = Enum.SurfaceType.Smooth | |
160 | Part8.TopSurface = Enum.SurfaceType.Smooth | |
161 | Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
162 | Part8.Position = Vector3.new(-0.663956106, 4.10453987, 24.1179676) | |
163 | Part8.Color = Color3.new(0.0666667, 0.0666667, 0.0666667) | |
164 | ManualWeld9.Name = "Weld" | |
165 | ManualWeld9.Parent = Part8 | |
166 | ManualWeld9.C1 = CFrame.new(-1.08679342, 0.0878005028, -0.0027179718, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
167 | ManualWeld9.Part0 = Part8 | |
168 | ManualWeld9.Part1 = Part1 | |
169 | Part10.Name = "button" | |
170 | Part10.Parent = Model0 | |
171 | Part10.Material = Enum.Material.Glass | |
172 | Part10.BrickColor = BrickColor.new("Dark indigo") | |
173 | Part10.Shape = Enum.PartType.Cylinder | |
174 | Part10.Size = Vector3.new(0.14, 0.125, 0.125) | |
175 | Part10.CFrame = CFrame.new(-1.09316278, 4.02473927, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
176 | Part10.BottomSurface = Enum.SurfaceType.Smooth | |
177 | Part10.TopSurface = Enum.SurfaceType.Smooth | |
178 | Part10.Color = Color3.new(0.239216, 0.0823529, 0.521569) | |
179 | Part10.Position = Vector3.new(-1.09316278, 4.02473927, 24.1206856) | |
180 | Part10.Color = Color3.new(0.239216, 0.0823529, 0.521569) | |
181 | ManualWeld11.Name = "Weld" | |
182 | ManualWeld11.Parent = Part10 | |
183 | ManualWeld11.C1 = CFrame.new(-1.51600003, 0.007999897, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
184 | ManualWeld11.Part0 = Part10 | |
185 | ManualWeld11.Part1 = Part1 | |
186 | Part12.Name = "sharp" | |
187 | Part12.Parent = Model0 | |
188 | Part12.Material = Enum.Material.Glass | |
189 | Part12.Shape = Enum.PartType.Cylinder | |
190 | Part12.Size = Vector3.new(0.099999927, 0.0500000007, 0.0500000007) | |
191 | Part12.CFrame = CFrame.new(0.484837323, 4.01723957, 24.1206856, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
192 | Part12.BottomSurface = Enum.SurfaceType.Smooth | |
193 | Part12.TopSurface = Enum.SurfaceType.Smooth | |
194 | Part12.Position = Vector3.new(0.484837323, 4.01723957, 24.1206856) | |
195 | ManualWeld13.Name = "Weld" | |
196 | ManualWeld13.Parent = Part12 | |
197 | ManualWeld13.C1 = CFrame.new(0.0620000064, 0.000500202179, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
198 | ManualWeld13.Part0 = Part12 | |
199 | ManualWeld13.Part1 = Part1 | |
200 | for i,v in pairs(mas:GetChildren()) do | |
201 | v.Parent = char | |
202 | pen = v | |
203 | body = Part4 | |
204 | button = Part10 | |
205 | pcall(function() v:MakeJoints() end) | |
206 | end | |
207 | local knife = Instance.new("Part",char) | |
208 | knife.CanCollide = false | |
209 | knife.Size = Vector3.new(0.2, 2, 2) | |
210 | local knifem = Instance.new("FileMesh",knife) | |
211 | knifem.MeshId = "rbxassetid://470094777" | |
212 | knifem.TextureId = "http://www.roblox.com/asset/?id=470149026" | |
213 | knifem.Scale = Vector3.new(0.2,0.2,0.2) | |
214 | local knifew = Instance.new("Weld",knife) | |
215 | knifew.Part0 = knife | |
216 | knifew.Part1 = char["Right Arm"] | |
217 | knifew.C0 = CFrame.new(0.0950660706, 1.32505798, -0.203226089, 0.995430529, 0.0954888016, 3.47819062e-09, -0.0619644187, 0.645952582, 0.760858297, 0.072653465, -0.757381439, 0.648918033) | |
218 | ||
219 | mas:Destroy() | |
220 | for i,v in pairs(cors) do | |
221 | spawn(function() | |
222 | pcall(v) | |
223 | end) | |
224 | end | |
225 | for i,v in pairs(Model0:GetChildren()) do | |
226 | if v.ClassName == "Part" then | |
227 | v.Transparency = 1 | |
228 | end | |
229 | end | |
230 | ||
231 | ||
232 | local rootj0 = rootj.C0 | |
233 | local neck0 = neck.C0 | |
234 | local LS0 = LS.C0 | |
235 | local RS0 = RS.C0 | |
236 | local LH0 = LH.C0 | |
237 | local RH0 = RH.C0 | |
238 | local rootj1 = rootj.C1 | |
239 | local neck1 = neck.C1 | |
240 | local LS1 = LS.C1 | |
241 | local RS1 = RS.C1 | |
242 | local LH1 = LH.C1 | |
243 | local RH1 = RH.C1 | |
244 | ||
245 | ----------------------------------------------------------------------------------- | |
246 | ||
247 | local CFn = CFrame.new | |
248 | local CFa = CFrame.Angles | |
249 | local Rad = math.rad | |
250 | local Sin = math.sin | |
251 | local Cos = math.cos | |
252 | local sine = 1 | |
253 | ||
254 | local penp = Instance.new("Part", char) | |
255 | penp.Size = Vector3.new(1, 1, 1) | |
256 | penp.CanCollide = false | |
257 | penp.Transparency = 1 | |
258 | local penpw = Instance.new("Weld", penp) | |
259 | penpw.Part0 = rarm | |
260 | penpw.Part1 = penp | |
261 | penpw.C1 = CFn(0, -1, 0) * CFa(0, 0, Rad(180)) | |
262 | local penpw0 = penpw.C0 | |
263 | local penpw1 = penpw.C1 | |
264 | ||
265 | local penw = Instance.new("Weld", body) | |
266 | penw.Name = "penWeld22" | |
267 | penw.Part0 = penp | |
268 | penw.Part1 = body | |
269 | penw.C1 = CFa(0, 0, Rad(180)) | |
270 | local penw0 = penw.C0 | |
271 | local penw1 = penw.C1 | |
272 | ||
273 | local sharpw = ManualWeld13 | |
274 | local sharpw0 = ManualWeld13.C0 | |
275 | local sharpw1 = ManualWeld13.C1 | |
276 | local sharpw02 = CFn(0.3, 0, 0) | |
277 | sharpw.C0 = sharpw02 | |
278 | ||
279 | local botw = ManualWeld11 | |
280 | local botw0 = ManualWeld11.C0 | |
281 | local botw1 = ManualWeld11.C1 | |
282 | local botw02 = CFn(-0.07, 0, 0) | |
283 | botw.C0 = botw0 | |
284 | ||
285 | ----------------------------------------------------------------------------------- | |
286 | ||
287 | local ws = 16 | |
288 | local jp = 50 | |
289 | local out = false | |
290 | local ouch = false | |
291 | local hitok = false | |
292 | local canattack = true | |
293 | local stabstate = 1 | |
294 | local Stabbing = false | |
295 | local Throwing = false | |
296 | local rot = 1 | |
297 | local dmg = 5 | |
298 | ||
299 | ----------------------------------------------------------------------------------- | |
300 | ||
301 | ArtificialHB = Instance.new("BindableEvent", script) | |
302 | ArtificialHB.Name = "Heartbeat" | |
303 | script:WaitForChild("Heartbeat") | |
304 | ||
305 | frame = 1 / 60 | |
306 | tf = 0 | |
307 | allowframeloss = false | |
308 | tossremainder = false | |
309 | ||
310 | ||
311 | lastframe = tick() | |
312 | script.Heartbeat:Fire() | |
313 | ||
314 | ||
315 | game:GetService("RunService").Heartbeat:connect(function(s, p) | |
316 | tf = tf + s | |
317 | if tf >= frame then | |
318 | if allowframeloss then | |
319 | script.Heartbeat:Fire() | |
320 | lastframe = tick() | |
321 | else | |
322 | for i = 1, math.floor(tf / frame) do | |
323 | script.Heartbeat:Fire() | |
324 | end | |
325 | lastframe = tick() | |
326 | end | |
327 | if tossremainder then | |
328 | tf = 0 | |
329 | else | |
330 | tf = tf - frame * math.floor(tf / frame) | |
331 | end | |
332 | end | |
333 | end) | |
334 | ||
335 | function swait(num) | |
336 | if num == 0 or num == nil then | |
337 | game:service("RunService").Stepped:wait(0) | |
338 | else | |
339 | for i = 0, num do | |
340 | game:service("RunService").Stepped:wait(0) | |
341 | end | |
342 | end | |
343 | end | |
344 | ||
345 | function clerp(a, b, t) | |
346 | return a:lerp(b, t) | |
347 | end | |
348 | out = true | |
349 | ||
350 | function Stab() | |
351 | if stabstate == 1 and canattack == true then | |
352 | Stabbing = true | |
353 | canattack = false | |
354 | stabstate = 2 | |
355 | hum.WalkSpeed = 3 | |
356 | hum.JumpPower = 7 | |
357 | hitok = true | |
358 | body.Touched:connect(function(hit) | |
359 | if hitok == true and not hit:IsDescendantOf(char) and hit.Parent:FindFirstChildOfClass("Humanoid") then | |
360 | hitok = false | |
361 | local owdude = hit.Parent | |
362 | local owhum = owdude:FindFirstChildOfClass("Humanoid") | |
363 | owhum.Health = owhum.Health - math.huge | |
364 | if out == true then | |
365 | local bloodsound = Instance.new("Sound", hit) | |
366 | bloodsound.Volume = 10 | |
367 | bloodsound.SoundId = "rbxassetid://180083298" | |
368 | bloodsound:Play() | |
369 | game:GetService("Debris"):AddItem(bloodsound, 1) | |
370 | local bloodsplash = Instance.new("ParticleEmitter", hit) | |
371 | bloodsplash.Lifetime = NumberRange.new(0.7, 1) | |
372 | bloodsplash.Speed = NumberRange.new(6) | |
373 | bloodsplash.SpreadAngle = Vector2.new(-360, 360) | |
374 | bloodsplash.Rate = 1000 | |
375 | bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)}) | |
376 | bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)}) | |
377 | bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))}) | |
378 | bloodsplash.Texture = "rbxassetid://771221224" | |
379 | game:GetService("Debris"):AddItem(bloodsplash, 1) | |
380 | wait(0.25) | |
381 | bloodsplash.Enabled = false | |
382 | end | |
383 | end | |
384 | if hitok == true and not hit:IsDescendantOf(char) and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
385 | hitok = false | |
386 | local owdude = hit.Parent.Parent | |
387 | local owhum = owdude:FindFirstChildOfClass("Humanoid") | |
388 | owhum.Health = owhum.Health - math.huge | |
389 | if out == true then | |
390 | local bloodsound = Instance.new("Sound", hit) | |
391 | bloodsound.Volume = 10 | |
392 | bloodsound.SoundId = "rbxassetid://180083298" | |
393 | bloodsound:Play() | |
394 | game:GetService("Debris"):AddItem(bloodsound, 1) | |
395 | local bloodsplash = Instance.new("ParticleEmitter", hit) | |
396 | bloodsplash.Lifetime = NumberRange.new(0.7, 1) | |
397 | bloodsplash.Speed = NumberRange.new(6) | |
398 | bloodsplash.SpreadAngle = Vector2.new(-360, 360) | |
399 | bloodsplash.Rate = 1000 | |
400 | bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)}) | |
401 | bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)}) | |
402 | bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))}) | |
403 | bloodsplash.Texture = "rbxassetid://771221224" | |
404 | game:GetService("Debris"):AddItem(bloodsplash, 1) | |
405 | wait(0.25) | |
406 | bloodsplash.Enabled = false | |
407 | end | |
408 | end | |
409 | end) | |
410 | for i = 0,1,.15 do | |
411 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i) | |
412 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i) | |
413 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i) | |
414 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i) | |
415 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-30), Rad(-30), Rad(-3)), i) | |
416 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i) | |
417 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i) | |
418 | LS.C0 = clerp(LS.C0, LS0, i) | |
419 | RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(150)), i) | |
420 | LH.C0 = clerp(LH.C0, LH0, i) | |
421 | RH.C0 = clerp(RH.C0, RH0, i) | |
422 | swait() | |
423 | end | |
424 | for i = 0,1,.15 do | |
425 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i) | |
426 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i) | |
427 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i) | |
428 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i) | |
429 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(20), Rad(-30), Rad(-3)), i) | |
430 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i) | |
431 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i) | |
432 | LS.C0 = clerp(LS.C0, LS0, i) | |
433 | RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(20)), i) | |
434 | LH.C0 = clerp(LH.C0, LH0, i) | |
435 | RH.C0 = clerp(RH.C0, RH0, i) | |
436 | swait() | |
437 | end | |
438 | hitok = false | |
439 | hum.WalkSpeed = ws | |
440 | hum.JumpPower = jp | |
441 | canattack = true | |
442 | Stabbing = false | |
443 | elseif stabstate == 2 and canattack == true then | |
444 | canattack = false | |
445 | stabstate = 1 | |
446 | hum.WalkSpeed = 3 | |
447 | hum.JumpPower = 7 | |
448 | hitok = true | |
449 | body.Touched:connect(function(hit) | |
450 | if hitok == true and not hit:IsDescendantOf(char) and hit.Parent:FindFirstChildOfClass("Humanoid") then | |
451 | local owdude = hit.Parent | |
452 | local owhum = owdude:FindFirstChildOfClass("Humanoid") | |
453 | owhum.Health = owhum.Health - math.huge | |
454 | if out == true then | |
455 | local bloodsound = Instance.new("Sound", hit) | |
456 | bloodsound.Volume = 10 | |
457 | bloodsound.SoundId = "rbxassetid://180083298" | |
458 | bloodsound:Play() | |
459 | game:GetService("Debris"):AddItem(bloodsound, 1) | |
460 | local bloodsplash = Instance.new("ParticleEmitter", hit) | |
461 | bloodsplash.Lifetime = NumberRange.new(0.7, 1) | |
462 | bloodsplash.Speed = NumberRange.new(6) | |
463 | bloodsplash.SpreadAngle = Vector2.new(-360, 360) | |
464 | bloodsplash.Rate = 1000 | |
465 | bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)}) | |
466 | bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)}) | |
467 | bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))}) | |
468 | bloodsplash.Texture = "rbxassetid://771221224" | |
469 | game:GetService("Debris"):AddItem(bloodsplash, 1) | |
470 | wait(0.25) | |
471 | bloodsplash.Enabled = false | |
472 | end | |
473 | end | |
474 | if hitok == true and not hit:IsDescendantOf(char) and hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
475 | hitok = false | |
476 | local owdude = hit.Parent.Parent | |
477 | local owhum = owdude:FindFirstChildOfClass("Humanoid") | |
478 | owhum.Health = owhum.Health - math.huge | |
479 | if out == true then | |
480 | local bloodsound = Instance.new("Sound", hit) | |
481 | bloodsound.Volume = 10 | |
482 | bloodsound.SoundId = "rbxassetid://180083298" | |
483 | bloodsound:Play() | |
484 | game:GetService("Debris"):AddItem(bloodsound, 1) | |
485 | local bloodsplash = Instance.new("ParticleEmitter", hit) | |
486 | bloodsplash.Lifetime = NumberRange.new(0.7, 1) | |
487 | bloodsplash.Speed = NumberRange.new(6) | |
488 | bloodsplash.SpreadAngle = Vector2.new(-360, 360) | |
489 | bloodsplash.Rate = 1000 | |
490 | bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)}) | |
491 | bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)}) | |
492 | bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))}) | |
493 | bloodsplash.Texture = "rbxassetid://771221224" | |
494 | game:GetService("Debris"):AddItem(bloodsplash, 1) | |
495 | wait(0.25) | |
496 | bloodsplash.Enabled = false | |
497 | end | |
498 | end | |
499 | end) | |
500 | for i = 0,1,.15 do | |
501 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i) | |
502 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i) | |
503 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i) | |
504 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i) | |
505 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(30), Rad(30), Rad(-3)), i) | |
506 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i) | |
507 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i) | |
508 | LS.C0 = clerp(LS.C0, LS0, i) | |
509 | RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(150)), i) | |
510 | LH.C0 = clerp(LH.C0, LH0, i) | |
511 | RH.C0 = clerp(RH.C0, RH0, i) | |
512 | swait() | |
513 | end | |
514 | for i = 0,1,.15 do | |
515 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), i) | |
516 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i) | |
517 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i) | |
518 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i) | |
519 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(-20), Rad(30), Rad(-3)), i) | |
520 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i) | |
521 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i) | |
522 | LS.C0 = clerp(LS.C0, LS0, i) | |
523 | RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(20)), i) | |
524 | LH.C0 = clerp(LH.C0, LH0, i) | |
525 | RH.C0 = clerp(RH.C0, RH0, i) | |
526 | swait() | |
527 | end | |
528 | hitok = false | |
529 | hum.WalkSpeed = ws | |
530 | hum.JumpPower = jp | |
531 | canattack = true | |
532 | Stabbing = false | |
533 | end | |
534 | end | |
535 | ||
536 | local hair = Instance.new("Part",char) | |
537 | hair.CanCollide = false | |
538 | local m = Instance.new("FileMesh",hair) | |
539 | m.MeshId = "http://www.roblox.com/asset/?id=188004660" | |
540 | m.TextureId = "http://www.roblox.com/asset/?id=451217406" | |
541 | local w = Instance.new("Weld",hair) | |
542 | w.Part0 = hair | |
543 | w.Part1 = char.Head | |
544 | w.C0 = CFrame.new(0, -0.450000286, -0.00027179718, 1.00000095, 7.87137822e-09, -3.7608805e-15, -7.87138266e-09, 1.00000048, -4.76837158e-07, 0, -4.76837158e-07, 1.00000048) | |
545 | local sick = Instance.new("Sound",char.Torso) | |
546 | sick.SoundId = "rbxassetid://1472374501" | |
547 | sick.Looped = true | |
548 | sick.Pitch = 0.7 | |
549 | sick.Volume = 3 | |
550 | sick:Play() | |
551 | ||
552 | function Throw() | |
553 | if canattack == true then | |
554 | Throwing = true | |
555 | canattack = false | |
556 | hum.WalkSpeed = 3 | |
557 | hum.JumpPower = 7 | |
558 | ouch = true | |
559 | for i = 0,1,.15 do | |
560 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i) | |
561 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i) | |
562 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025), i) | |
563 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i) | |
564 | RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i) | |
565 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), 0), i) | |
566 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), 0), i) | |
567 | LS.C0 = clerp(LS.C0, LS0, i) | |
568 | RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(90), Rad(90)), i) | |
569 | LH.C0 = clerp(LH.C0, LH0, i) | |
570 | RH.C0 = clerp(RH.C0, RH0, i) | |
571 | swait() | |
572 | end | |
573 | local throwknife = knife:Clone() | |
574 | throwknife.Parent = workspace | |
575 | throwknife:BreakJoints() | |
576 | throwknife.CanCollide = false | |
577 | knife.Transparency = 1 | |
578 | local vel = Instance.new("BodyVelocity",throwknife) | |
579 | vel.Velocity = mou.Hit.lookVector * 150 | |
580 | local throwpen = pen:Clone() | |
581 | for i,v in pairs(throwpen:GetChildren()) do | |
582 | if v:IsA("BasePart") and v.CanCollide == true then | |
583 | v.CanCollide = false | |
584 | end | |
585 | end | |
586 | throwpen.Parent = workspace | |
587 | local throwbod = throwpen:FindFirstChild("body") | |
588 | if throwbod:FindFirstChild("penWeld22") then | |
589 | throwbod:FindFirstChild("penWeld22"):Destroy() | |
590 | end | |
591 | local throwbv = Instance.new("BodyVelocity", throwbod) | |
592 | throwbv.Velocity = mou.Hit.lookVector * 100 | |
593 | throwbv.MaxForce = Vector3.new(100000000000000000, 100000000000000000, 100000000000000000) | |
594 | throwknife.Touched:connect(function(hit) | |
595 | if ouch == true and not hit:IsDescendantOf(char) then | |
596 | ouch = false | |
597 | throwpen:Destroy() | |
598 | if hit.Parent:FindFirstChildOfClass("Humanoid") then | |
599 | local throwhum = hit.Parent:FindFirstChildOfClass("Humanoid") | |
600 | throwhum.Health = throwhum.Health - math.huge | |
601 | if out == true then | |
602 | local bloodsound = Instance.new("Sound", hit) | |
603 | bloodsound.Volume = 10 | |
604 | bloodsound.SoundId = "rbxassetid://180083286" | |
605 | bloodsound:Play() | |
606 | game:GetService("Debris"):AddItem(bloodsound, 1) | |
607 | local bloodsplash = Instance.new("ParticleEmitter", hit) | |
608 | bloodsplash.Lifetime = NumberRange.new(0.7, 1) | |
609 | bloodsplash.Speed = NumberRange.new(6) | |
610 | bloodsplash.SpreadAngle = Vector2.new(-360, 360) | |
611 | bloodsplash.Rate = 1000 | |
612 | bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)}) | |
613 | bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)}) | |
614 | bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))}) | |
615 | bloodsplash.Texture = "rbxassetid://771221224" | |
616 | game:GetService("Debris"):AddItem(bloodsplash, 1) | |
617 | wait(0.25) | |
618 | bloodsplash.Enabled = false | |
619 | end | |
620 | end | |
621 | if hit.Parent.Parent:FindFirstChildOfClass("Humanoid") then | |
622 | local throwhum = hit.Parent.Parent:FindFirstChildOfClass("Humanoid") | |
623 | throwhum.Health = throwhum.Health - math.huge | |
624 | if out == true then | |
625 | local bloodsound = Instance.new("Sound", hit) | |
626 | bloodsound.Volume = 10 | |
627 | bloodsound.SoundId = "rbxassetid://180083286" | |
628 | bloodsound:Play() | |
629 | game:GetService("Debris"):AddItem(bloodsound, 1) | |
630 | local bloodsplash = Instance.new("ParticleEmitter", hit) | |
631 | bloodsplash.Lifetime = NumberRange.new(0.7, 1) | |
632 | bloodsplash.Speed = NumberRange.new(6) | |
633 | bloodsplash.SpreadAngle = Vector2.new(-360, 360) | |
634 | bloodsplash.Rate = 1000 | |
635 | bloodsplash.Size = NumberSequence.new({NumberSequenceKeypoint.new(0, 3), NumberSequenceKeypoint.new(1, 0)}) | |
636 | bloodsplash.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2), NumberSequenceKeypoint.new(1, 1)}) | |
637 | bloodsplash.Color = ColorSequence.new({ColorSequenceKeypoint.new(0, Color3.fromRGB(255, 255, 255)), ColorSequenceKeypoint.new(1, Color3.fromRGB(0, 0, 0))}) | |
638 | bloodsplash.Texture = "rbxassetid://771221224" | |
639 | game:GetService("Debris"):AddItem(bloodsplash, 1) | |
640 | wait(0.25) | |
641 | bloodsplash.Enabled = false | |
642 | end | |
643 | end | |
644 | end | |
645 | end) | |
646 | for i,v in pairs(pen:GetChildren()) do | |
647 | if v:IsA("BasePart") then | |
648 | v.Transparency = 1 | |
649 | end | |
650 | end | |
651 | for i = 0,1,.1 do | |
652 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i) | |
653 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), i) | |
654 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025) * CFa(Rad(-20), 0, 0), i) | |
655 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i) | |
656 | RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i) | |
657 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(-5), Rad(-20)), i) | |
658 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(5), Rad(-20)), i) | |
659 | LS.C0 = clerp(LS.C0, LS0, i) | |
660 | RS.C0 = clerp(RS.C0, RS0 * CFa(0, Rad(-80), Rad(90)), i) | |
661 | LH.C0 = clerp(LH.C0, LH0, i) | |
662 | RH.C0 = clerp(RH.C0, RH0, i) | |
663 | swait() | |
664 | end | |
665 | for i = 0,1,.1 do | |
666 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, 0, Rad(-90)), i) | |
667 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-30), 0, 0), i) | |
668 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025) * CFa(0, 0, Rad(-30)), i) | |
669 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), i) | |
670 | RS.C1 = clerp(RS.C1, RS1 * CFa(0, Rad(-30), Rad(-3)), i) | |
671 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(35), 0), i) | |
672 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025, 0) * CFa(Rad(5), Rad(35), 0), i) | |
673 | LS.C0 = clerp(LS.C0, LS0, i) | |
674 | RS.C0 = clerp(RS.C0, RS0 * CFn(0, 0, -0.5) * CFa(0, Rad(90), Rad(30)), i) | |
675 | LH.C0 = clerp(LH.C0, LH0, i) | |
676 | RH.C0 = clerp(RH.C0, RH0, i) | |
677 | swait() | |
678 | end | |
679 | for i,v in pairs(pen:GetChildren()) do | |
680 | if v:IsA("BasePart") then | |
681 | v.Transparency = 0 | |
682 | end | |
683 | end | |
684 | hum.WalkSpeed = ws | |
685 | hum.JumpPower = jp | |
686 | canattack = true | |
687 | Throwing = false | |
688 | knife.Transparency = 0 | |
689 | end | |
690 | end | |
691 | ||
692 | ----------------------------------------------------------------------------------- | |
693 | ||
694 | function kdown(k) | |
695 | if k == "e" then | |
696 | Throw() | |
697 | end | |
698 | end | |
699 | ||
700 | mou.KeyDown:connect(kdown) | |
701 | mou.Button1Down:connect(Stab) | |
702 | ||
703 | for i,v in pairs(char:GetChildren()) do | |
704 | if v.ClassName == "Part" then | |
705 | v.BrickColor = BrickColor.new("Really black") | |
706 | end | |
707 | end | |
708 | ----------------------------------------------------------------------------------- | |
709 | ||
710 | local right = Instance.new("CharacterMesh",char) | |
711 | right.BodyPart = Enum.BodyPart.RightArm | |
712 | right.MeshId = 27111864 | |
713 | local tors = Instance.new("CharacterMesh",char) | |
714 | tors.BodyPart = Enum.BodyPart.Torso | |
715 | tors.MeshId = 27111894 | |
716 | local left = Instance.new("CharacterMesh",char) | |
717 | left.MeshId = 27111419 | |
718 | left.BodyPart = Enum.BodyPart.LeftArm | |
719 | local leftl = Instance.new("CharacterMesh",char) | |
720 | leftl.BodyPart = Enum.BodyPart.LeftLeg | |
721 | leftl.MeshId = 27111857 | |
722 | local rightl = Instance.new("CharacterMesh",char) | |
723 | rightl.BodyPart = Enum.BodyPart.RightLeg | |
724 | rightl.MeshId = 27111882 | |
725 | local BODY = {} | |
726 | LeftArm = char["Left Arm"] | |
727 | RightLeg = char["Right Leg"] | |
728 | LeftLeg = char["Left Leg"] | |
729 | for _, c in pairs(char:GetDescendants()) do | |
730 | if c:IsA("BasePart") and c.Name ~= "Handle" then | |
731 | if c ~= char.HumanoidRootPart and c ~= char.Torso and c ~= char.Head and c ~= char["Right Arm"] and c ~= LeftArm and c ~= RightLeg and c ~= LeftLeg then | |
732 | c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0) | |
733 | end | |
734 | table.insert(BODY,{c,c.Parent,c.Material,c.Color,c.Transparency}) | |
735 | elseif c:IsA("JointInstance") then | |
736 | table.insert(BODY,{c,c.Parent,nil,nil,nil}) | |
737 | end | |
738 | end | |
739 | for e = 1, #BODY do | |
740 | if BODY[e] ~= nil then | |
741 | local STUFF = BODY[e] | |
742 | local PART = STUFF[1] | |
743 | local PARENT = STUFF[2] | |
744 | local MATERIAL = STUFF[3] | |
745 | local TRANSPARENCY = STUFF[5] | |
746 | if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then | |
747 | PART.Material = MATERIAL | |
748 | PART.Transparency = TRANSPARENCY | |
749 | end | |
750 | PART.AncestryChanged:Connect(function() | |
751 | PART.Parent = PARENT | |
752 | end) | |
753 | end | |
754 | end | |
755 | function refit() | |
756 | char.Parent = workspace | |
757 | for e = 1, #BODY do | |
758 | if BODY[e] ~= nil then | |
759 | local STUFF = BODY[e] | |
760 | local PART = STUFF[1] | |
761 | local PARENT = STUFF[2] | |
762 | local MATERIAL = STUFF[3] | |
763 | local TRANSPARENCY = STUFF[5] | |
764 | if PART.ClassName == "Part" and PART ~= char.HumanoidRootPart then | |
765 | PART.Material = MATERIAL | |
766 | PART.Transparency = TRANSPARENCY | |
767 | end | |
768 | if PART.Parent ~= PARENT then | |
769 | char:FindFirstChildOfClass("Humanoid"):remove() | |
770 | PART.Parent = PARENT | |
771 | Humanoid = Instance.new("Humanoid",char) | |
772 | end | |
773 | end | |
774 | end | |
775 | end | |
776 | char.Humanoid.Died:connect(function() | |
777 | refit() | |
778 | sound.Parent = char | |
779 | sound:Play() | |
780 | end) | |
781 | local glitch = Instance.new("Sound",char) | |
782 | glitch.SoundId = "rbxassetid://372770465" | |
783 | glitch.Volume = 4 | |
784 | ||
785 | normalface = {"http://www.roblox.com/asset/?id=173083239"} | |
786 | - | glitchface = {"rbxassetid://592123389", "http://www.roblox.com/asset/?id=752001939", "http://www.roblox.com/asset/?id=1083992759"} |
786 | + | glitchface = {"rbxassetid://1011992280", "http://www.roblox.com/asset/?id=752001939", "rbxassetid://1011992280"} |
787 | ||
788 | local naeeym2 = Instance.new("BillboardGui",char) | |
789 | naeeym2.AlwaysOnTop = true | |
790 | naeeym2.Size = UDim2.new(5,35,2,35) | |
791 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
792 | naeeym2.Adornee = hed | |
793 | naeeym2.Name = "Name" | |
794 | ||
795 | local tecks2 = Instance.new("TextLabel",naeeym2) | |
796 | tecks2.BackgroundTransparency = 1 | |
797 | tecks2.TextScaled = true | |
798 | tecks2.BorderSizePixel = 0 | |
799 | - | tecks2.Text = "Guest" |
799 | + | tecks2.Text = "Guest 666" |
800 | tecks2.Font = "Garamond" | |
801 | tecks2.TextSize = 30 | |
802 | tecks2.TextStrokeTransparency = 0 | |
803 | tecks2.TextColor3 = BrickColor.new('Really red').Color | |
804 | tecks2.TextStrokeColor3 = BrickColor.new('Really red').Color | |
805 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
806 | tecks2.Parent = naeeym2 | |
807 | textfag = tecks2 | |
808 | - | tecks2.Text = "Guest" |
808 | + | tecks2.Text = "Guest 666" |
809 | function swait(num) | |
810 | if num == 0 or num == nil then | |
811 | game:service("RunService").Stepped:wait(0) | |
812 | else | |
813 | for i = 0, num do | |
814 | game:service("RunService").Stepped:wait(0) | |
815 | end | |
816 | end | |
817 | end | |
818 | coroutine.resume(coroutine.create(function() | |
819 | while textfag ~= nil do | |
820 | swait() | |
821 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
822 | textfag.Rotation = math.random(-3,3) | |
823 | end | |
824 | end)) | |
825 | ||
826 | - | textrandom = {"Guest", "gUeStTTR", "dIEEEEEEEEE", "Guest 6 6 6", "begone thot", "Guest", "Guest", "Guest", "iNsAnItY", "Guest", "Guest", "Guest"} |
826 | + | textrandom = {"Guest", "gUeStTTR", "dIEEEEEEEEE", "Guest 6 6 6", "begone tho", "Guest", "Guest", "Guest", "iNsAnItY", "Guest", "Guest", "Guest"} |
827 | normaltext = {"Guest"} | |
828 | ||
829 | while true do | |
830 | swait() | |
831 | if canglitch then | |
832 | for i,v in pairs(char:GetChildren()) do | |
833 | if v.ClassName == "Part" then | |
834 | v.BrickColor = BrickColor.new("Institutional white") | |
835 | end | |
836 | end | |
837 | local change = math.random(1,50) | |
838 | if change == 1 then | |
839 | glitch:Play() | |
840 | textfag.Text = textrandom[math.random(1,12)] | |
841 | char.Head.face.Texture = glitchface[math.random(1,3)] | |
842 | for i,v in pairs(char:GetChildren()) do | |
843 | if v.ClassName == "Part" then | |
844 | v.BrickColor = BrickColor.new("Really black") | |
845 | end | |
846 | end | |
847 | end | |
848 | if change == 2 then | |
849 | glitch:Pause() | |
850 | textfag.Text = normaltext[math.random(1,1)] | |
851 | char.Head.face.Texture = normalface[math.random(1,1)] | |
852 | for i,v in pairs(char:GetChildren()) do | |
853 | if v.ClassName == "Part" then | |
854 | v.BrickColor = BrickColor.new("Institutional white") | |
855 | end | |
856 | end | |
857 | end | |
858 | if change == 3 then | |
859 | char.Head.face.Texture = normalface[math.random(1,1)] | |
860 | textfag.Text = normaltext[math.random(1,1)] | |
861 | for i,v in pairs(char:GetChildren()) do | |
862 | if v.ClassName == "Part" then | |
863 | v.BrickColor = BrickColor.new("Institutional white") | |
864 | end | |
865 | end | |
866 | end | |
867 | if change == 4 then | |
868 | char.Head.face.Texture = normalface[math.random(1,1)] | |
869 | textfag.Text = normaltext[math.random(1,1)] | |
870 | glitch:Pause() | |
871 | for i,v in pairs(char:GetChildren()) do | |
872 | if v.ClassName == "Part" then | |
873 | v.BrickColor = BrickColor.new("Institutional white") | |
874 | end | |
875 | end | |
876 | end | |
877 | if change == 5 then | |
878 | char.Head.face.Texture = normalface[math.random(1,1)] | |
879 | textfag.Text = normaltext[math.random(1,1)] | |
880 | glitch:Pause() | |
881 | for i,v in pairs(char:GetChildren()) do | |
882 | if v.ClassName == "Part" then | |
883 | v.BrickColor = BrickColor.new("Institutional white") | |
884 | end | |
885 | end | |
886 | end | |
887 | if change == 6 then | |
888 | char.Head.face.Texture = normalface[math.random(1,1)] | |
889 | textfag.Text = normaltext[math.random(1,1)] | |
890 | glitch:Pause() | |
891 | for i,v in pairs(char:GetChildren()) do | |
892 | if v.ClassName == "Part" then | |
893 | v.BrickColor = BrickColor.new("Institutional white") | |
894 | end | |
895 | end | |
896 | end | |
897 | if change == 7 then | |
898 | char.Head.face.Texture = normalface[math.random(1,1)] | |
899 | textfag.Text = normaltext[math.random(1,1)] | |
900 | glitch:Pause() | |
901 | for i,v in pairs(char:GetChildren()) do | |
902 | if v.ClassName == "Part" then | |
903 | v.BrickColor = BrickColor.new("Institutional white") | |
904 | end | |
905 | end | |
906 | end | |
907 | if change == 8 then | |
908 | char.Head.face.Texture = normalface[math.random(1,1)] | |
909 | textfag.Text = normaltext[math.random(1,1)] | |
910 | glitch:Pause() | |
911 | for i,v in pairs(char:GetChildren()) do | |
912 | if v.ClassName == "Part" then | |
913 | v.BrickColor = BrickColor.new("Institutional white") | |
914 | end | |
915 | end | |
916 | end | |
917 | if change == 9 then | |
918 | char.Head.face.Texture = normalface[math.random(1,1)] | |
919 | textfag.Text = normaltext[math.random(1,1)] | |
920 | glitch:Pause() | |
921 | for i,v in pairs(char:GetChildren()) do | |
922 | if v.ClassName == "Part" then | |
923 | v.BrickColor = BrickColor.new("Institutional white") | |
924 | end | |
925 | end | |
926 | end | |
927 | if change == 10 then | |
928 | char.Head.face.Texture = normalface[math.random(1,1)] | |
929 | textfag.Text = normaltext[math.random(1,1)] | |
930 | glitch:Pause() | |
931 | for i,v in pairs(char:GetChildren()) do | |
932 | if v.ClassName == "Part" then | |
933 | v.BrickColor = BrickColor.new("Institutional white") | |
934 | end | |
935 | end | |
936 | end | |
937 | if change == 11 then | |
938 | char.Head.face.Texture = normalface[math.random(1,1)] | |
939 | textfag.Text = normaltext[math.random(1,1)] | |
940 | glitch:Pause() | |
941 | for i,v in pairs(char:GetChildren()) do | |
942 | if v.ClassName == "Part" then | |
943 | v.BrickColor = BrickColor.new("Institutional white") | |
944 | end | |
945 | end | |
946 | end | |
947 | if change == 12 then | |
948 | char.Head.face.Texture = normalface[math.random(1,1)] | |
949 | textfag.Text = normaltext[math.random(1,1)] | |
950 | glitch:Pause() | |
951 | for i,v in pairs(char:GetChildren()) do | |
952 | if v.ClassName == "Part" then | |
953 | v.BrickColor = BrickColor.new("Institutional white") | |
954 | end | |
955 | end | |
956 | end | |
957 | if change == 13 then | |
958 | char.Head.face.Texture = normalface[math.random(1,1)] | |
959 | textfag.Text = normaltext[math.random(1,1)] | |
960 | glitch:Pause() | |
961 | for i,v in pairs(char:GetChildren()) do | |
962 | if v.ClassName == "Part" then | |
963 | v.BrickColor = BrickColor.new("Institutional white") | |
964 | end | |
965 | end | |
966 | end | |
967 | if change == 14 then | |
968 | char.Head.face.Texture = normalface[math.random(1,1)] | |
969 | textfag.Text = normaltext[math.random(1,1)] | |
970 | glitch:Pause() | |
971 | for i,v in pairs(char:GetChildren()) do | |
972 | if v.ClassName == "Part" then | |
973 | v.BrickColor = BrickColor.new("Institutional white") | |
974 | end | |
975 | end | |
976 | end | |
977 | if change == 15 then | |
978 | char.Head.face.Texture = normalface[math.random(1,1)] | |
979 | textfag.Text = normaltext[math.random(1,1)] | |
980 | glitch:Pause() | |
981 | for i,v in pairs(char:GetChildren()) do | |
982 | if v.ClassName == "Part" then | |
983 | v.BrickColor = BrickColor.new("Institutional white") | |
984 | end | |
985 | end | |
986 | end | |
987 | end | |
988 | refit() | |
989 | sine = sine + 1 | |
990 | rot = rot + 25 | |
991 | if rot == 360 then | |
992 | rot = 1 | |
993 | end | |
994 | local torvel = (root.Velocity * Vector3.new(1, 0, 1)).magnitude | |
995 | if Stabbing == true then | |
996 | state = "Stabbing" | |
997 | elseif Throwing == true then | |
998 | state = "Throwing" | |
999 | elseif 1 < root.Velocity.y then | |
1000 | state = "Jump" | |
1001 | elseif -1 > root.Velocity.y then | |
1002 | state = "Fall" | |
1003 | elseif torvel < 1 then | |
1004 | state = "Idle" | |
1005 | elseif tor.Velocity.magnitude < 50 then | |
1006 | state = "Walk" | |
1007 | end | |
1008 | if state == "Jump" then | |
1009 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15) | |
1010 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2), 0, 0), 0.15) | |
1011 | rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(-15), 0, 0), 0.15) | |
1012 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(10), 0, 0), 0.15) | |
1013 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(10), 0, 0), 0.15) | |
1014 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.2, 0) * CFa(Rad(2), 0, Rad(-15)), 0.15) | |
1015 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.5, 0) * CFa(Rad(2), 0, Rad(15)), 0.15) | |
1016 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1017 | RS.C0 = clerp(RS.C0, RS0, 0.15) | |
1018 | LH.C0 = clerp(LH.C0, LH0 * CFn(-0.2, 0, 0), 0.15) | |
1019 | RH.C0 = clerp(RH.C0, RH0 * CFn(0.5, 0, 0), 0.15) | |
1020 | elseif state == "Fall" then | |
1021 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15) | |
1022 | neck.C1 = clerp(neck.C1, neck1 * CFa(0, 0, 0), 0.15) | |
1023 | rootj.C1 = clerp(rootj.C1, rootj1 * CFa(Rad(15), 0, 0), 0.15) | |
1024 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(35), 0, 0), 0.15) | |
1025 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(35), 0, 0), 0.15) | |
1026 | LH.C1 = clerp(LH.C1, LH1 * CFn(0.2, -0.2, -0.1) * CFa(Rad(15), 0, Rad(10)), 0.15) | |
1027 | RH.C1 = clerp(RH.C1, RH1 * CFn(-0.2, -0.2, -0.1) * CFa(Rad(15), 0, Rad(-10)), 0.15) | |
1028 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1029 | RS.C0 = clerp(RS.C0, RS0, 0.15) | |
1030 | LH.C0 = clerp(LH.C0, LH0 * CFa(0, 0, Rad(-20)), 0.15) | |
1031 | RH.C0 = clerp(RH.C0, RH0 * CFa(0, 0, Rad(20)), 0.15) | |
1032 | elseif state == "Idle" then | |
1033 | penw.C1 = clerp(penw.C1, penw1 * CFn(0, 0, 0.5) * CFa(0, 0, Rad(rot)), 0.15) | |
1034 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-2 * Cos(sine / 15)), 0, 0), 0.15) | |
1035 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0, 0.025 * Cos(sine / 15)), 0.15) | |
1036 | LS.C1 = clerp(LS.C1, LS1 * CFa(Rad(-30), 0, Rad(-40)), 0.15) | |
1037 | RS.C1 = clerp(RS.C1, RS1 * CFa(Rad(2), 0, Rad(-3 * Cos(sine / 15))), 0.15) | |
1038 | LH.C1 = clerp(LH.C1, LH1 * CFn(0, -0.025 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(-5), 0), 0.15) | |
1039 | RH.C1 = clerp(RH.C1, RH1 * CFn(0, -0.025 * Cos(sine / 15), 0) * CFa(Rad(5), Rad(5), 0), 0.15) | |
1040 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1041 | RS.C0 = clerp(RS.C0, RS0 * CFa(0, 0, Rad(80)), 0.15) | |
1042 | LH.C0 = clerp(LH.C0, LH0, 0.15) | |
1043 | RH.C0 = clerp(RH.C0, RH0, 0.15) | |
1044 | elseif state == "Walk" then | |
1045 | penw.C1 = clerp(penw.C1, penw1 * CFa(0, Rad(-90), 0), 0.15) | |
1046 | neck.C1 = clerp(neck.C1, neck1 * CFa(Rad(-5), 0, 0), 0.15) | |
1047 | rootj.C1 = clerp(rootj.C1, rootj1 * CFn(0, 0.1 * Cos(sine /3), 0.1 * Cos(sine /3)) * CFa(Rad(-5), 0, Rad(5 * Cos(sine / 6))), 0.15) | |
1048 | LS.C1 = clerp(LS.C1, LS1 * CFa(0, 0, Rad(-50 * Cos(sine / 6))), 0.15) | |
1049 | RS.C1 = clerp(RS.C1, RS1 * CFa(0, 0, Rad(-50 * Cos(sine / 6))), 0.15) | |
1050 | LH.C1 = clerp(LH.C1, LH1 * CFa(Rad(2), Rad(-5), Rad(50 * Cos(sine / 6))), 0.15) | |
1051 | RH.C1 = clerp(RH.C1, RH1 * CFa(Rad(2), Rad(5), Rad(50 * Cos(sine / 6))), 0.15) | |
1052 | LS.C0 = clerp(LS.C0, LS0, 0.15) | |
1053 | RS.C0 = clerp(RS.C0, RS0, 0.15) | |
1054 | LH.C0 = clerp(LH.C0, LH0, 0.15) | |
1055 | RH.C0 = clerp(RH.C0, RH0, 0.15) | |
1056 | end | |
1057 | end |