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,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do | |
| 6 | print("FE Compatibility code V2 by Mokiros")
| |
| 7 | local RealPlayer = RealPlayer | |
| 8 | script.Parent = RealPlayer.Character | |
| 9 | ||
| 10 | --Fake event to make stuff like Mouse.KeyDown work | |
| 11 | local Disconnect_Function = function(this) | |
| 12 | this[1].Functions[this[2]] = nil | |
| 13 | end | |
| 14 | local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
| |
| 15 | local FakeEvent_Metatable = {__index={
| |
| 16 | Connect = function(this,f) | |
| 17 | local i = tostring(math.random(0,10000)) | |
| 18 | while this.Functions[i] do | |
| 19 | i = tostring(math.random(0,10000)) | |
| 20 | end | |
| 21 | this.Functions[i] = f | |
| 22 | return setmetatable({this,i},Disconnect_Metatable)
| |
| 23 | end | |
| 24 | }} | |
| 25 | FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect | |
| 26 | local function fakeEvent() | |
| 27 | return setmetatable({Functions={}},FakeEvent_Metatable)
| |
| 28 | end | |
| 29 | ||
| 30 | --Creating fake input objects with fake variables | |
| 31 | local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
| |
| 32 | FakeMouse.keyUp = FakeMouse.KeyUp | |
| 33 | FakeMouse.keyDown = FakeMouse.KeyDown | |
| 34 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 35 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 36 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 37 | end} | |
| 38 | --Merged 2 functions into one by checking amount of arguments | |
| 39 | CAS.UnbindAction = CAS.BindAction | |
| 40 | ||
| 41 | --This function will trigger the events that have been :Connect()'ed | |
| 42 | local function TriggerEvent(self,ev,...) | |
| 43 | for _,f in pairs(self[ev].Functions) do | |
| 44 | f(...) | |
| 45 | end | |
| 46 | end | |
| 47 | FakeMouse.TriggerEvent = TriggerEvent | |
| 48 | UIS.TriggerEvent = TriggerEvent | |
| 49 | ||
| 50 | --Client communication | |
| 51 | local Event = Instance.new("RemoteEvent")
| |
| 52 | Event.Name = "UserInput_Event" | |
| 53 | Event.OnServerEvent:Connect(function(plr,io) | |
| 54 | if plr~=RealPlayer then return end | |
| 55 | FakeMouse.Target = io.Target | |
| 56 | FakeMouse.Hit = io.Hit | |
| 57 | if not io.isMouse then | |
| 58 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 59 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 60 | return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up") | |
| 61 | end | |
| 62 | if io.UserInputType == Enum.UserInputType.MouseButton2 then | |
| 63 | return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up") | |
| 64 | end | |
| 65 | for _,t in pairs(CAS.Actions) do | |
| 66 | for _,k in pairs(t.Keys) do | |
| 67 | if k==io.KeyCode then | |
| 68 | t.Function(t.Name,io.UserInputState,io) | |
| 69 | end | |
| 70 | end | |
| 71 | end | |
| 72 | FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 73 | UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 74 | end | |
| 75 | end) | |
| 76 | Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
| |
| 77 | local Mouse = owner:GetMouse() | |
| 78 | local UIS = game:GetService("UserInputService")
| |
| 79 | local input = function(io,RobloxHandled) | |
| 80 | if RobloxHandled then return end | |
| 81 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 82 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
| |
| 83 | end | |
| 84 | UIS.InputBegan:Connect(input) | |
| 85 | UIS.InputEnded:Connect(input) | |
| 86 | local h,t | |
| 87 | --Give the server mouse data every second frame, but only if the values changed | |
| 88 | --If player is not moving their mouse, client won't fire events | |
| 89 | local HB = game:GetService("RunService").Heartbeat
| |
| 90 | while true do | |
| 91 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 92 | h,t=Mouse.Hit,Mouse.Target | |
| 93 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 94 | end | |
| 95 | --Wait 2 frames | |
| 96 | for i=1,2 do | |
| 97 | HB:Wait() | |
| 98 | end | |
| 99 | end]==],script) | |
| 100 | ||
| 101 | ----Sandboxed game object that allows the usage of client-side methods and services | |
| 102 | --Real game object | |
| 103 | local RealGame = game | |
| 104 | ||
| 105 | --Metatable for fake service | |
| 106 | local FakeService_Metatable = {
| |
| 107 | __index = function(self,k) | |
| 108 | local s = rawget(self,"_RealService") | |
| 109 | if s then | |
| 110 | return typeof(s[k])=="function" | |
| 111 | and function(_,...)return s[k](s,...)end or s[k] | |
| 112 | end | |
| 113 | end, | |
| 114 | __newindex = function(self,k,v) | |
| 115 | local s = rawget(self,"_RealService") | |
| 116 | if s then s[k]=v end | |
| 117 | end | |
| 118 | } | |
| 119 | local function FakeService(t,RealService) | |
| 120 | t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService | |
| 121 | return setmetatable(t,FakeService_Metatable) | |
| 122 | end | |
| 123 | ||
| 124 | --Fake game object | |
| 125 | local FakeGame = {
| |
| 126 | GetService = function(self,s) | |
| 127 | return rawget(self,s) or RealGame:GetService(s) | |
| 128 | end, | |
| 129 | Players = FakeService({
| |
| 130 | LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
| |
| 131 | },"Players"), | |
| 132 | UserInputService = FakeService(UIS,"UserInputService"), | |
| 133 | ContextActionService = FakeService(CAS,"ContextActionService"), | |
| 134 | RunService = FakeService({
| |
| 135 | _btrs = {},
| |
| 136 | RenderStepped = RealGame:GetService("RunService").Heartbeat,
| |
| 137 | BindToRenderStep = function(self,name,_,fun) | |
| 138 | self._btrs[name] = self.Heartbeat:Connect(fun) | |
| 139 | end, | |
| 140 | UnbindFromRenderStep = function(self,name) | |
| 141 | self._btrs[name]:Disconnect() | |
| 142 | end, | |
| 143 | },"RunService") | |
| 144 | } | |
| 145 | rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer) | |
| 146 | FakeGame.service = FakeGame.GetService | |
| 147 | FakeService(FakeGame,game) | |
| 148 | --Changing owner to fake player object to support owner:GetMouse() | |
| 149 | game,owner = FakeGame,FakeGame.Players.LocalPlayer | |
| 150 | end | |
| 151 | ||
| 152 | ||
| 153 | --// Made by Cronizte | |
| 154 | --// Give credits :P | |
| 155 | ||
| 156 | local faces = {Enum.NormalId.Back,Enum.NormalId.Right,Enum.NormalId.Left,Enum.NormalId.Top,Enum.NormalId.Bottom,Enum.NormalId.Front}
| |
| 157 | plr = game:service'Players'.LocalPlayer | |
| 158 | mouse = plr:GetMouse() | |
| 159 | char = plr.Character | |
| 160 | root = char.HumanoidRootPart | |
| 161 | part = root | |
| 162 | head = char.Head | |
| 163 | torso = "" | |
| 164 | sling = false | |
| 165 | if char:FindFirstChild('Torso') then
| |
| 166 | torso = char.Torso | |
| 167 | elseif char:FindFirstChild('UpperTorso') then
| |
| 168 | torso = char.UpperTorso | |
| 169 | end | |
| 170 | lshold = torso["Left Shoulder"] | |
| 171 | rshold = torso["Right Shoulder"] | |
| 172 | char["Right Arm"].BrickColor = BrickColor.new('Crimson')
| |
| 173 | char["Left Arm"].BrickColor = BrickColor.new('Crimson')
| |
| 174 | neck = torso.Neck | |
| 175 | lhip = torso["Left Hip"] | |
| 176 | rhip = torso["Right Hip"] | |
| 177 | vector = char.Head.CFrame * CFrame.new(2,1.5,0) | |
| 178 | lscf = lshold.C0 | |
| 179 | lclickt = false | |
| 180 | mouseh = "" | |
| 181 | lclick = false | |
| 182 | color3 = BrickColor.new('Really black')
| |
| 183 | rscf = rshold.C0 | |
| 184 | local time = 10 | |
| 185 | bv = Instance.new('BodyVelocity', workspace)
| |
| 186 | bv.velocity = mouse.Hit.lookVector * 0 | |
| 187 | bodyv = bv | |
| 188 | sels = torso | |
| 189 | zcam = false | |
| 190 | ncf = neck.C0 | |
| 191 | drone = false | |
| 192 | scripttest = "false" | |
| 193 | asd = "" | |
| 194 | asd2 = "" | |
| 195 | dro = "" | |
| 196 | rclick = false | |
| 197 | sounds = false | |
| 198 | red = "Bright red" | |
| 199 | lhcf = lhip.C0 | |
| 200 | unmasked = false | |
| 201 | insta = false | |
| 202 | rhcf = rhip.C0 | |
| 203 | freefly = false | |
| 204 | rad = math.rad | |
| 205 | hear = false | |
| 206 | fhead = "" | |
| 207 | random = math.random | |
| 208 | sou = false | |
| 209 | sin = math.sin | |
| 210 | black = false | |
| 211 | cos = math.cos | |
| 212 | speed = 200 | |
| 213 | mspeed = 200 | |
| 214 | nspeed = 200 | |
| 215 | cframe = CFrame.new(2,1.5,0) | |
| 216 | cooldown = true | |
| 217 | floor = math.floor | |
| 218 | mousep = "" | |
| 219 | text = "Current Health: "..char.Humanoid.Health | |
| 220 | lsho = lshold.C0 | |
| 221 | rsho = rshold.C0 | |
| 222 | lle = lhip.C0 | |
| 223 | rle = rhip.C0 | |
| 224 | loc = false | |
| 225 | color = "Cool yellow" | |
| 226 | color2 = "Crimson" | |
| 227 | leye = "" | |
| 228 | reye = "" | |
| 229 | lfeye = "" | |
| 230 | rfeye = "" | |
| 231 | ||
| 232 | --spiderman-- | |
| 233 | --pack('LeftArm',151353346,151353416)
| |
| 234 | --pack('RightArm',151353346,151353456)
| |
| 235 | --pack('LeftLeg',151353346,151353958)
| |
| 236 | --pack('RightLeg',151353346,151353479)
| |
| 237 | --pack('Torso',151353346,151353393)
| |
| 238 | ||
| 239 | --boy-- | |
| 240 | --pack('LeftArm',0,279174949)
| |
| 241 | --pack('RightArm',0,279174886)
| |
| 242 | --pack('LeftLeg',0,319336109)
| |
| 243 | --pack('RightLeg',0,319336155)
| |
| 244 | --pack('Torso',0,376169183)
| |
| 245 | ||
| 246 | s1 = Instance.new("Sound", char["Left Arm"])
| |
| 247 | s1.Volume = 5 | |
| 248 | s1.SoundId = "rbxassetid://576652617" | |
| 249 | s1.PlayOnRemove = false | |
| 250 | s1.Looped = false | |
| 251 | s2 = Instance.new('Sound', plr.PlayerGui)
| |
| 252 | s2.Volume = 5 | |
| 253 | s2.Looped = false | |
| 254 | s2.SoundId = "rbxassetid://866613992" | |
| 255 | s3 = Instance.new('Sound', char.Head)
| |
| 256 | s3.Volume = 5 | |
| 257 | s3.Looped = true | |
| 258 | s3.SoundId = "rbxassetid://904569721" | |
| 259 | s4 = Instance.new('Sound', plr.PlayerGui)
| |
| 260 | s4.Volume = 2.5 | |
| 261 | s4.Looped = false | |
| 262 | s4.SoundId = "rbxassetid://576613547" | |
| 263 | s5 = Instance.new('Sound', plr.PlayerGui)
| |
| 264 | s5.Volume = 10 | |
| 265 | s5.Looped = true | |
| 266 | s5.SoundId = "rbxassetid://227682498" | |
| 267 | s6 = Instance.new('Sound', plr.PlayerGui)
| |
| 268 | s6.Volume = 3 | |
| 269 | s6.Looped = false | |
| 270 | s6.SoundId = "rbxassetid://145486927" | |
| 271 | s7 = Instance.new('Sound', char.Head)
| |
| 272 | s7.Volume = 3 | |
| 273 | s7.Looped = false | |
| 274 | s7.SoundId = "rbxassetid://873073853" | |
| 275 | s8 = Instance.new('Sound', char.Head)
| |
| 276 | s8.Volume = 3 | |
| 277 | s8.Looped = false | |
| 278 | s8.SoundId = "rbxassetid://898385136" | |
| 279 | s9 = Instance.new('Sound', char.Head)
| |
| 280 | s9.Volume = 7 | |
| 281 | s9.Looped = false | |
| 282 | s9.SoundId = "rbxassetid://144699494" | |
| 283 | s10 = Instance.new('Sound', char.Head)
| |
| 284 | s10.Volume = 5 | |
| 285 | s10.Looped = false | |
| 286 | s10.SoundId = "rbxassetid://967512062" | |
| 287 | ||
| 288 | g1 = Instance.new("ScreenGui", plr.PlayerGui)
| |
| 289 | fr = Instance.new("Frame", g1)
| |
| 290 | fr.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 291 | fr.BackgroundTransparency = 1 | |
| 292 | fr.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 293 | fr.Position = UDim2.new(0.706, 0,0.35, 0) | |
| 294 | fr.Visible = true | |
| 295 | fr.Size = UDim2.new(0, 252, 0, 257) | |
| 296 | fr.Name = 'Identity' | |
| 297 | il = Instance.new("ImageLabel", fr)
| |
| 298 | il.BackgroundTransparency = 1 | |
| 299 | il.BorderSizePixel = 0 | |
| 300 | il.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 301 | il.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 302 | il.Position = UDim2.new(0.27380952239037, 0, 0.050583656877279, 0) | |
| 303 | il.Size = UDim2.new(0, 114, 0, 104) | |
| 304 | il.Image = "rbxassetid://924320031" | |
| 305 | t1 = Instance.new("TextLabel", fr)
| |
| 306 | t1.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 307 | t1.BackgroundTransparency = 1 | |
| 308 | t1.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 309 | t1.Name = "Info1" | |
| 310 | t1.Position = UDim2.new(0.1031746044755, 0, 0.48638132214546, 0) | |
| 311 | t1.Size = UDim2.new(0, 200, 0, 50) | |
| 312 | t1.Text = "Label1" | |
| 313 | t1.TextScaled = true | |
| 314 | t1.TextWrapped = true | |
| 315 | t1.TextColor3 = Color3.new(0, 0, 0) | |
| 316 | t1.Font = Enum.Font.SourceSansBold | |
| 317 | t1.FontSize = Enum.FontSize.Size18 | |
| 318 | t2 = Instance.new("TextLabel", fr)
| |
| 319 | t2.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 320 | t2.BackgroundTransparency = 1 | |
| 321 | t2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 322 | t2.Name = "Info2" | |
| 323 | t2.Position = UDim2.new(0.1031746044755, 0, 0.70428013801575, 0) | |
| 324 | t2.Size = UDim2.new(0, 200, 0, 50) | |
| 325 | t2.Text = "Label2" | |
| 326 | t2.TextWrapped = true | |
| 327 | t2.TextScaled = true | |
| 328 | t2.TextColor3 = Color3.new(0, 0, 0) | |
| 329 | t2.Font = Enum.Font.SourceSansBold | |
| 330 | t2.FontSize = Enum.FontSize.Size28 | |
| 331 | t3 = Instance.new("TextLabel", fr)
| |
| 332 | t3.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 333 | t3.BackgroundTransparency = 1 | |
| 334 | t3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 335 | t3.Name = "Info2" | |
| 336 | t3.Position = UDim2.new(0.103, 0,0.93, 0) | |
| 337 | t3.Size = UDim2.new(0, 200, 0, 50) | |
| 338 | t3.Text = "Label2" | |
| 339 | t3.TextWrapped = true | |
| 340 | t3.TextScaled = true | |
| 341 | t3.TextColor3 = Color3.new(0, 0, 0) | |
| 342 | t3.Font = Enum.Font.SourceSansBold | |
| 343 | t3.FontSize = Enum.FontSize.Size28 | |
| 344 | t4 = Instance.new("TextLabel", fr)
| |
| 345 | t4.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 346 | t4.BackgroundTransparency = 1 | |
| 347 | t4.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 348 | t4.Name = "Info2" | |
| 349 | t4.Position = UDim2.new(0.103, 0,1.152, 0) | |
| 350 | t4.Size = UDim2.new(0, 200, 0, 50) | |
| 351 | t4.Text = "Label2" | |
| 352 | t4.TextWrapped = true | |
| 353 | t4.TextColor3 = Color3.new(0, 0, 0) | |
| 354 | t4.Font = Enum.Font.SourceSansBold | |
| 355 | t4.FontSize = Enum.FontSize.Size28 | |
| 356 | t4.TextScaled = true | |
| 357 | t1.Text = '' | |
| 358 | t2.Text = '' | |
| 359 | t3.Text = '' | |
| 360 | t4.Text = '' | |
| 361 | il.Image = 'rbxassetid://0' | |
| 362 | o1 = Instance.new("ImageLabel", g1)
| |
| 363 | o1.BackgroundColor3 = Color3.new(1, 0.333333, 0) | |
| 364 | o1.BackgroundTransparency = 1 | |
| 365 | o1.BorderColor3 = Color3.new(0.666667, 0, 0) | |
| 366 | o1.Name = "HelmetGui" | |
| 367 | o1.Position = UDim2.new(0, 0, 0, -1) | |
| 368 | o1.Size = UDim2.new(1, 0, 1, 1) | |
| 369 | o1.ImageColor3 = Color3.new(255,0,0) | |
| 370 | o1.Image = "rbxassetid://272417994" | |
| 371 | o2 = Instance.new("TextLabel", g1)
| |
| 372 | o2.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 373 | o2.BackgroundTransparency = 1 | |
| 374 | o2.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 375 | o2.Name = "SystemInput" | |
| 376 | o2.Position = UDim2.new(0.25, 0, 0.25, 0) | |
| 377 | o2.Size = UDim2.new(0.5, -250, 0.5, -250) | |
| 378 | o2.Text = "" | |
| 379 | o2.TextColor3 = Color3.new(1, 0, 0) | |
| 380 | o2.Font = Enum.Font.Code | |
| 381 | o2.FontSize = Enum.FontSize.Size24 | |
| 382 | o3 = Instance.new("TextLabel", g1)
| |
| 383 | o3.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 384 | o3.BackgroundTransparency = 1 | |
| 385 | o3.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 386 | o3.Name = "PlrInput" | |
| 387 | o3.Position = UDim2.new(0.10, 0, 0.64999997615814, 0) | |
| 388 | o3.Size = UDim2.new(0.5, -250, 0.5, -250) | |
| 389 | o3.Text = "Current Health: "..char.Humanoid.Health | |
| 390 | o3.TextColor3 = Color3.new(1, 0, 0) | |
| 391 | o3.Font = Enum.Font.Code | |
| 392 | o3.FontSize = Enum.FontSize.Size24 | |
| 393 | o4 = Instance.new("TextLabel", g1)
| |
| 394 | o4.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 395 | o4.BackgroundTransparency = 1 | |
| 396 | o4.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 397 | o4.Name = "PlrInput2" | |
| 398 | o4.Position = UDim2.new(0.10, 0, 0.70, 0) | |
| 399 | o4.Size = UDim2.new(0.5, -250, 0.5, -250) | |
| 400 | o4.Text = "Current Speed: 0" | |
| 401 | o4.TextColor3 = Color3.new(1, 0, 0) | |
| 402 | o4.Font = Enum.Font.Code | |
| 403 | o4.FontSize = Enum.FontSize.Size24 | |
| 404 | o6 = Instance.new("TextLabel", g1)
| |
| 405 | o6.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 406 | o6.BackgroundTransparency = 1 | |
| 407 | o6.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 408 | o6.Name = "PlrInput3" | |
| 409 | o6.Position = UDim2.new(0.1, 0,0.6, 0) | |
| 410 | o6.Size = UDim2.new(0.5, -250, 0.5, -250) | |
| 411 | o6.Text = "Current Web Speed: " | |
| 412 | o6.TextColor3 = Color3.new(1, 0, 0) | |
| 413 | o6.Font = Enum.Font.Code | |
| 414 | o6.FontSize = Enum.FontSize.Size24 | |
| 415 | o7 = Instance.new("TextLabel", g1)
| |
| 416 | o7.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 417 | o7.BackgroundTransparency = 1 | |
| 418 | o7.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 419 | o7.Name = "PlrInput4" | |
| 420 | o7.Position = UDim2.new(0.1, 0,0.55, 0) | |
| 421 | o7.Size = UDim2.new(0.5, -250, 0.5, -250) | |
| 422 | o7.Text = "Current Time: " | |
| 423 | o7.TextColor3 = Color3.new(1, 0, 0) | |
| 424 | o7.Font = Enum.Font.Code | |
| 425 | o7.FontSize = Enum.FontSize.Size24 | |
| 426 | o8 = Instance.new("TextLabel", g1)
| |
| 427 | o8.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 428 | o8.BackgroundTransparency = 1 | |
| 429 | o8.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 430 | o8.Name = "PlrInput5" | |
| 431 | o8.Position = UDim2.new(0.1, 0,0.5, 0) | |
| 432 | o8.Size = UDim2.new(0.5, -250, 0.5, -250) | |
| 433 | o8.Text = "Current Sounds: " | |
| 434 | o8.TextColor3 = Color3.new(1, 0, 0) | |
| 435 | o8.Font = Enum.Font.Code | |
| 436 | o8.FontSize = Enum.FontSize.Size24 | |
| 437 | o9 = Instance.new("TextLabel", g1)
| |
| 438 | o9.BackgroundColor3 = Color3.new(1, 1, 1) | |
| 439 | o9.BackgroundTransparency = 1 | |
| 440 | o9.BorderColor3 = Color3.new(0.105882, 0.164706, 0.207843) | |
| 441 | o9.Name = "PlrInput6" | |
| 442 | o9.Position = UDim2.new(0.1, 0,0.45, 0) | |
| 443 | o9.Size = UDim2.new(0.5, -250, 0.5, -250) | |
| 444 | o9.Text = "Current Parts: " | |
| 445 | o9.TextColor3 = Color3.new(1, 0, 0) | |
| 446 | o9.Font = Enum.Font.Code | |
| 447 | o9.FontSize = Enum.FontSize.Size24 | |
| 448 | o5 = Instance.new("ImageLabel", g1)
| |
| 449 | o5.BackgroundColor3 = Color3.new(1, 0.333333, 0) | |
| 450 | o5.BackgroundTransparency = 1 | |
| 451 | o5.BorderColor3 = Color3.new(0.666667, 0, 0) | |
| 452 | o5.ImageColor3 = Color3.new(175, 175, 175) | |
| 453 | o5.Name = "SpideySense" | |
| 454 | o5.ImageTransparency = 1 | |
| 455 | o5.Position = UDim2.new(0, 0, 0, -1) | |
| 456 | o5.Size = UDim2.new(1, 0, 1, 1) | |
| 457 | o5.ImageColor3 = Color3.new(0,0,0) | |
| 458 | o5.Image = "rbxassetid://951687333" | |
| 459 | ||
| 460 | function tw(string) | |
| 461 | local String = string | |
| 462 | local Length = string.len(String) | |
| 463 | ||
| 464 | for i=1,Length do | |
| 465 | wait(.05) | |
| 466 | s6:Play() | |
| 467 | o2.Text = string.sub(String,1,i) | |
| 468 | end | |
| 469 | end | |
| 470 | ||
| 471 | function zoomi() | |
| 472 | s2.Volume = 5 | |
| 473 | s2:Play() | |
| 474 | for i = 1,35 do | |
| 475 | wait() | |
| 476 | s2.Volume = s2.Volume - 0.15 | |
| 477 | workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView - 1 | |
| 478 | end | |
| 479 | end | |
| 480 | ||
| 481 | function st() | |
| 482 | for i = 1,44 do | |
| 483 | wait() | |
| 484 | s3.Volume = s3.Volume - 0.1 | |
| 485 | end | |
| 486 | end | |
| 487 | ||
| 488 | function ss() | |
| 489 | for i = 1,44 do | |
| 490 | wait() | |
| 491 | s3.Volume = s3.Volume + 0.1 | |
| 492 | end | |
| 493 | end | |
| 494 | ||
| 495 | function unlocate() | |
| 496 | for _, players in pairs(game:service'Players':players()) do | |
| 497 | if players.Character then | |
| 498 | if players.Character:FindFirstChild('HumanoidRootPart') then
| |
| 499 | if players.Character.HumanoidRootPart:FindFirstChild('track') then
| |
| 500 | players.Character.HumanoidRootPart.track:Destroy() | |
| 501 | end | |
| 502 | end | |
| 503 | end | |
| 504 | end | |
| 505 | end | |
| 506 | ||
| 507 | function zoomo() | |
| 508 | s2.Volume = 5 | |
| 509 | s2:Play() | |
| 510 | for i = 1,35 do | |
| 511 | wait() | |
| 512 | s2.Volume = s2.Volume - 0.15 | |
| 513 | workspace.CurrentCamera.FieldOfView = workspace.CurrentCamera.FieldOfView + 1 | |
| 514 | end | |
| 515 | end | |
| 516 | ||
| 517 | function colorlerp(a,b) | |
| 518 | local start = Vector3.new(a); | |
| 519 | local en = b; | |
| 520 | ||
| 521 | for alpha = 0, 1, 0.1 do | |
| 522 | local offset = start:Lerp(en, alpha); | |
| 523 | o1.ImageColor3 = Color3.new(offset.X/255, offset.Y/255, offset.Z/255); | |
| 524 | wait(); | |
| 525 | end | |
| 526 | end | |
| 527 | ||
| 528 | function hair() | |
| 529 | local hair = Instance.new("Part", char)
| |
| 530 | local hairmesh = Instance.new("SpecialMesh", hair)
| |
| 531 | hairmesh.MeshId = "http://www.roblox.com/asset/?id=74879498" | |
| 532 | hairmesh.TextureId = "http://www.roblox.com/asset/?id=74879471" | |
| 533 | hairmesh.Scale = Vector3.new(1.025, 1, 1.075) | |
| 534 | hair.Transparency = 0 | |
| 535 | hair.CanCollide = false | |
| 536 | hair.Name = "plrhair" | |
| 537 | hair.Anchored = false | |
| 538 | local weld = Instance.new("Weld", char)
| |
| 539 | weld.Part0 = hair | |
| 540 | weld.Part1 = char.Head | |
| 541 | weld.C1 = CFrame.new(0,.47,0) | |
| 542 | end | |
| 543 | ||
| 544 | function uhair() | |
| 545 | for _, a in pairs(char:children()) do | |
| 546 | if a:IsA('Part') and a.Name == "plrhair" then
| |
| 547 | a:Destroy() | |
| 548 | end | |
| 549 | end | |
| 550 | end | |
| 551 | ||
| 552 | function seyes(cooldown) | |
| 553 | local rand3 = math.random(1,3) | |
| 554 | if rand3 == 1 then | |
| 555 | for i = 0,1 do | |
| 556 | wait(.05) | |
| 557 | leye.Scale = leye.Scale - Vector3.new(0,0.035,0) | |
| 558 | end | |
| 559 | wait(cooldown) | |
| 560 | for i = 0,1 do | |
| 561 | wait(.05) | |
| 562 | leye.Scale = leye.Scale + Vector3.new(0,0.035,0) | |
| 563 | end | |
| 564 | end | |
| 565 | if rand3 == 2 then | |
| 566 | for i = 0,1 do | |
| 567 | wait(.05) | |
| 568 | reye.Scale = reye.Scale - Vector3.new(0,0.035,0) | |
| 569 | end | |
| 570 | wait(cooldown) | |
| 571 | for i = 0,1 do | |
| 572 | wait(.05) | |
| 573 | reye.Scale = reye.Scale + Vector3.new(0,0.035,0) | |
| 574 | end | |
| 575 | end | |
| 576 | if rand3 == 3 then | |
| 577 | for i = 0,1 do | |
| 578 | wait(.05) | |
| 579 | reye.Scale = reye.Scale - Vector3.new(0,0.035,0) | |
| 580 | leye.Scale = leye.Scale - Vector3.new(0,0.035,0) | |
| 581 | end | |
| 582 | wait(cooldown) | |
| 583 | for i = 0,1 do | |
| 584 | wait(.05) | |
| 585 | reye.Scale = reye.Scale + Vector3.new(0,0.035,0) | |
| 586 | leye.Scale = leye.Scale + Vector3.new(0,0.035,0) | |
| 587 | end | |
| 588 | end | |
| 589 | end | |
| 590 | ||
| 591 | function headu() | |
| 592 | for i=0,1,0.15 do | |
| 593 | wait() | |
| 594 | neck.C0 = neck.C0:lerp(neck.C0*CFrame.Angles(rad(-10),rad(0),rad(0)),i) | |
| 595 | end | |
| 596 | seyes(.5) | |
| 597 | wait(.4) | |
| 598 | for i=0,1,0.2 do | |
| 599 | wait() | |
| 600 | neck.C0 = neck.C0:lerp(ncf,i) | |
| 601 | end | |
| 602 | end | |
| 603 | ||
| 604 | function headl() | |
| 605 | local rand2 = math.random(1,2) | |
| 606 | if rand2 == 1 then | |
| 607 | for i=0,1,0.1 do | |
| 608 | neck.C0 = neck.C0:lerp(neck.C0*CFrame.Angles(rad(0),rad(0),rad(-6)),i) | |
| 609 | wait() | |
| 610 | end | |
| 611 | wait(.4) | |
| 612 | for i=0,1,0.1 do | |
| 613 | neck.C0 = neck.C0:lerp(ncf,i) | |
| 614 | wait() | |
| 615 | end | |
| 616 | end | |
| 617 | if rand2 == 2 then | |
| 618 | for i=0,1,0.1 do | |
| 619 | neck.C0 = neck.C0:lerp(neck.C0*CFrame.Angles(rad(0),rad(0),rad(6)),i) | |
| 620 | wait() | |
| 621 | end | |
| 622 | wait(.4) | |
| 623 | for i=0,1,0.1 do | |
| 624 | neck.C0 = neck.C0:lerp(ncf,i) | |
| 625 | wait() | |
| 626 | end | |
| 627 | end | |
| 628 | end | |
| 629 | ||
| 630 | function child(a,b) | |
| 631 | for _, a in pairs(a:children()) do | |
| 632 | if a:IsA(b) then | |
| 633 | a:Destroy() | |
| 634 | end | |
| 635 | end | |
| 636 | end | |
| 637 | ||
| 638 | function circ() | |
| 639 | torso.Anchored = true | |
| 640 | local circle = Instance.new('Part', char)
| |
| 641 | circle.Anchored = true | |
| 642 | circle.BrickColor = BrickColor.new('Really black')
| |
| 643 | circle.CanCollide = false | |
| 644 | circle.BottomSurface = 0 | |
| 645 | circle.TopSurface = 0 | |
| 646 | circle.Material = "Neon" | |
| 647 | circle.Size = Vector3.new(0,0,0) | |
| 648 | circle.CFrame = torso.CFrame | |
| 649 | circle.Shape = "Ball" | |
| 650 | for i = 1,25 do | |
| 651 | wait() | |
| 652 | circle.Size = circle.Size + Vector3.new(0.8,0.8,0.8) | |
| 653 | circle.CFrame = torso.CFrame | |
| 654 | circle.Transparency = circle.Transparency + 0.05 | |
| 655 | end | |
| 656 | circle:Destroy() | |
| 657 | end | |
| 658 | ||
| 659 | function circ2() | |
| 660 | local circle = Instance.new('Part', char)
| |
| 661 | circle.CFrame = torso.CFrame | |
| 662 | circle.Anchored = true | |
| 663 | circle.BottomSurface = 0 | |
| 664 | circle.TopSurface = 0 | |
| 665 | circle.Material = "Neon" | |
| 666 | circle.BrickColor = BrickColor.new('Really black')
| |
| 667 | circle.CanCollide = false | |
| 668 | circle.Size = Vector3.new(19.25,19.25,19.25) | |
| 669 | circle.Shape = "Ball" | |
| 670 | s9:Play() | |
| 671 | for i = 1,25 do | |
| 672 | wait() | |
| 673 | circle.Size = circle.Size - Vector3.new(2,2,2) | |
| 674 | circle.CFrame = torso.CFrame | |
| 675 | circle.Transparency = circle.Transparency + 0.01 | |
| 676 | end | |
| 677 | circle:Destroy() | |
| 678 | end | |
| 679 | ||
| 680 | function revcir() | |
| 681 | torso.Anchored = true | |
| 682 | local circle = Instance.new('Part', char)
| |
| 683 | circle.Anchored = true | |
| 684 | circle.BrickColor = BrickColor.new('Bright red')
| |
| 685 | circle.CanCollide = false | |
| 686 | circle.BottomSurface = 0 | |
| 687 | circle.TopSurface = 0 | |
| 688 | circle.Material = "Neon" | |
| 689 | circle.Size = Vector3.new(19.25,19.25,19.25) | |
| 690 | circle.CFrame = torso.CFrame | |
| 691 | circle.Shape = "Ball" | |
| 692 | for i = 1,25 do | |
| 693 | wait() | |
| 694 | circle.Size = circle.Size - Vector3.new(2,2,2) | |
| 695 | circle.CFrame = torso.CFrame | |
| 696 | circle.Transparency = circle.Transparency + 0.05 | |
| 697 | end | |
| 698 | circle:Destroy() | |
| 699 | end | |
| 700 | ||
| 701 | function revcir2() | |
| 702 | local circle = Instance.new('Part', char)
| |
| 703 | circle.Anchored = true | |
| 704 | circle.BrickColor = BrickColor.new('Bright red')
| |
| 705 | circle.CanCollide = false | |
| 706 | circle.BottomSurface = 0 | |
| 707 | circle.TopSurface = 0 | |
| 708 | circle.Material = "Neon" | |
| 709 | circle.Size = Vector3.new(0,0,0) | |
| 710 | circle.CFrame = torso.CFrame | |
| 711 | circle.Shape = "Ball" | |
| 712 | s9:Play() | |
| 713 | for i = 1,100 do | |
| 714 | wait() | |
| 715 | circle.Size = circle.Size + Vector3.new(2,2,2) | |
| 716 | circle.CFrame = torso.CFrame | |
| 717 | circle.Transparency = circle.Transparency + 0.01 | |
| 718 | end | |
| 719 | circle:Destroy() | |
| 720 | end | |
| 721 | ||
| 722 | function transform() | |
| 723 | circ() | |
| 724 | circ() | |
| 725 | circ() | |
| 726 | fhead.Parent.BrickColor = BrickColor.new('Really black')
| |
| 727 | child(char,'CharacterMesh') | |
| 728 | shirt = Instance.new('Shirt', char)
| |
| 729 | shirt.ShirtTemplate = 'http://www.roblox.com/asset/?id=26550810' | |
| 730 | pants = Instance.new('Pants', char)
| |
| 731 | pants.PantsTemplate = 'http://www.roblox.com/asset/?id=26550833' | |
| 732 | pack('LeftArm',0,279174949)
| |
| 733 | pack('RightArm',0,279174886)
| |
| 734 | pack('LeftLeg',0,319336109)
| |
| 735 | pack('RightLeg',0,319336155)
| |
| 736 | pack('Torso',0,376169183)
| |
| 737 | circ2() | |
| 738 | colorlerp(o1.ImageColor3,Vector3.new(0,0,0)) | |
| 739 | o2.TextColor3 = Color3.new(0,0,0) | |
| 740 | o3.TextColor3 = Color3.new(0,0,0) | |
| 741 | o4.TextColor3 = Color3.new(0,0,0) | |
| 742 | o6.TextColor3 = Color3.new(0,0,0) | |
| 743 | o7.TextColor3 = Color3.new(0,0,0) | |
| 744 | o8.TextColor3 = Color3.new(0,0,0) | |
| 745 | o9.TextColor3 = Color3.new(0,0,0) | |
| 746 | wait(.1) | |
| 747 | torso.Anchored = false | |
| 748 | end | |
| 749 | ||
| 750 | function untrans() | |
| 751 | revcir() | |
| 752 | revcir() | |
| 753 | revcir() | |
| 754 | fhead.Parent.BrickColor = BrickColor.new('Bright red')
| |
| 755 | child(char,'CharacterMesh') | |
| 756 | pack('LeftArm',151353346,151353416)
| |
| 757 | pack('RightArm',151353346,151353456)
| |
| 758 | pack('LeftLeg',151353346,151353958)
| |
| 759 | pack('RightLeg',151353346,151353479)
| |
| 760 | pack('Torso',151353346,151353393)
| |
| 761 | colorlerp(o1.ImageColor3,Vector3.new(255,0,0)) | |
| 762 | o2.TextColor3 = Color3.new(1,0,0) | |
| 763 | o3.TextColor3 = Color3.new(1,0,0) | |
| 764 | o4.TextColor3 = Color3.new(1,0,0) | |
| 765 | o6.TextColor3 = Color3.new(1,0,0) | |
| 766 | o7.TextColor3 = Color3.new(1,0,0) | |
| 767 | o8.TextColor3 = Color3.new(1,0,0) | |
| 768 | o9.TextColor3 = Color3.new(1,0,0) | |
| 769 | revcir2() | |
| 770 | torso.Anchored = false | |
| 771 | end | |
| 772 | ||
| 773 | function eye(w1,w2,w3,w4) | |
| 774 | local eye1 = Instance.new("Part")
| |
| 775 | eye1.Anchored = false | |
| 776 | eye1.Parent = char.Head | |
| 777 | eye1.TopSurface = 0 | |
| 778 | eye1.BrickColor = BrickColor.new("Black")
| |
| 779 | eye1.BottomSurface = 0 | |
| 780 | local eye1m = Instance.new("SpecialMesh", eye1)
| |
| 781 | eye1m.MeshType = Enum.MeshType.Sphere | |
| 782 | eye1m.Scale = Vector3.new(0.08,0.22,0.03) | |
| 783 | local weld = Instance.new("Weld", char.Head)
| |
| 784 | weld.Part0 = eye1 | |
| 785 | weld.Part1 = char.Head | |
| 786 | weld.C1 = CFrame.new(w1,w2,w3) | |
| 787 | local eye1 = Instance.new("Part")
| |
| 788 | eye1.Anchored = false | |
| 789 | eye1.Parent = char.Head | |
| 790 | eye1.TopSurface = 0 | |
| 791 | eye1.Material = "Neon" | |
| 792 | eye1.BrickColor = BrickColor.new("Pearl")
| |
| 793 | eye1.BottomSurface = 0 | |
| 794 | local eye1m = Instance.new("SpecialMesh", eye1)
| |
| 795 | eye1m.MeshType = Enum.MeshType.Sphere | |
| 796 | eye1m.Scale = Vector3.new(0.045,0.12,0.05) | |
| 797 | local weld = Instance.new("Weld", char.Head)
| |
| 798 | weld.Part0 = eye1 | |
| 799 | weld.Part1 = char.Head | |
| 800 | weld.C1 = CFrame.new(w4,w2,w3) | |
| 801 | end | |
| 802 | ||
| 803 | function pack(body,tex,mesh) | |
| 804 | local package = Instance.new('CharacterMesh', char)
| |
| 805 | package.OverlayTextureId = tex | |
| 806 | package.MeshId = mesh | |
| 807 | package.BodyPart = body | |
| 808 | end | |
| 809 | ||
| 810 | function blink() | |
| 811 | for i = 0,1 do | |
| 812 | wait(.05) | |
| 813 | leye.Scale = leye.Scale - Vector3.new(0,0.05,0) | |
| 814 | reye.Scale = reye.Scale - Vector3.new(0,0.05,0) | |
| 815 | end | |
| 816 | wait(.05) | |
| 817 | for i = 0,1 do | |
| 818 | wait(.05) | |
| 819 | leye.Scale = leye.Scale + Vector3.new(0,0.05,0) | |
| 820 | reye.Scale = reye.Scale + Vector3.new(0,0.05,0) | |
| 821 | end | |
| 822 | end | |
| 823 | ||
| 824 | function insk() | |
| 825 | tw('Activating instant kill mode...')
| |
| 826 | local start = reye.Parent.Color | |
| 827 | local End = Color3.new(1,0,0) | |
| 828 | for i = 0,1,0.05 do | |
| 829 | wait() | |
| 830 | local color = start:lerp(End,i) | |
| 831 | reye.Parent.BrickColor = BrickColor.new(color) | |
| 832 | leye.Parent.BrickColor = BrickColor.new(color) | |
| 833 | end | |
| 834 | blink() | |
| 835 | end | |
| 836 | ||
| 837 | function umask() | |
| 838 | hair() | |
| 839 | for i = 0,1 do | |
| 840 | wait() | |
| 841 | fhead.Scale = fhead.Scale - Vector3.new(0,0.1,0) | |
| 842 | end | |
| 843 | wait(.05) | |
| 844 | fhead.Parent.Transparency = 1 | |
| 845 | rfeye.Transparency = 1 | |
| 846 | lfeye.Transparency = 1 | |
| 847 | reye.Parent.Transparency = 1 | |
| 848 | leye.Parent.Transparency = 1 | |
| 849 | for i = 1,15 do | |
| 850 | wait() | |
| 851 | o1.ImageTransparency = o1.ImageTransparency + 0.1 | |
| 852 | for _, a in pairs(g1:children()) do | |
| 853 | if a:IsA('TextLabel') then
| |
| 854 | a.TextTransparency = a.TextTransparency + 0.1 | |
| 855 | a.TextStrokeTransparency = a.TextStrokeTransparency + 0.1 | |
| 856 | end | |
| 857 | end | |
| 858 | end | |
| 859 | end | |
| 860 | ||
| 861 | function omask() | |
| 862 | uhair() | |
| 863 | for i = 0,1 do | |
| 864 | wait() | |
| 865 | fhead.Scale = fhead.Scale + Vector3.new(0,0.1,0) | |
| 866 | end | |
| 867 | wait(.05) | |
| 868 | fhead.Parent.Transparency = 0 | |
| 869 | rfeye.Transparency = 0 | |
| 870 | lfeye.Transparency = 0 | |
| 871 | reye.Parent.Transparency = 0 | |
| 872 | leye.Parent.Transparency = 0 | |
| 873 | for i = 1,15 do | |
| 874 | wait() | |
| 875 | o1.ImageTransparency = o1.ImageTransparency - 0.1 | |
| 876 | for _, a in pairs(g1:children()) do | |
| 877 | if a:IsA('TextLabel') then
| |
| 878 | a.TextTransparency = a.TextTransparency - 0.1 | |
| 879 | a.TextStrokeTransparency = a.TextStrokeTransparency - 0.1 | |
| 880 | end | |
| 881 | end | |
| 882 | end | |
| 883 | end | |
| 884 | ||
| 885 | function bl(player) | |
| 886 | blood.Parent = player.HumanoidRootPart | |
| 887 | blood.Enabled = true | |
| 888 | player:BreakJoints() | |
| 889 | wait(.5) | |
| 890 | blood.Enabled = false | |
| 891 | wait(.4) | |
| 892 | blood.Parent = nil | |
| 893 | end | |
| 894 | ||
| 895 | function webmove(player,speed) | |
| 896 | if (insta == false) or (insta == true) then | |
| 897 | time = 10 | |
| 898 | player:FindFirstChildOfClass('Humanoid').WalkSpeed = speed
| |
| 899 | end | |
| 900 | end | |
| 901 | ||
| 902 | function udr() | |
| 903 | for _, a in pairs(char:children()) do | |
| 904 | if a:IsA('Part') and a.Name == "Drone" then
| |
| 905 | a:Destroy() | |
| 906 | end | |
| 907 | end | |
| 908 | end | |
| 909 | ||
| 910 | function dr() | |
| 911 | local p1 = Instance.new("Part", char)
| |
| 912 | dro = p1 | |
| 913 | p1.BrickColor = BrickColor.new("Medium stone grey")
| |
| 914 | p1.Name = "Drone" | |
| 915 | p1.CFrame = CFrame.new(-0.785019994, 0.0750000775, -45.8349953, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 916 | p1.CanCollide = false | |
| 917 | p1.Anchored = true | |
| 918 | p1.CFrame = char.Head.CFrame | |
| 919 | p1.Size = Vector3.new(0.490001351, 0.150000155, 0.61000073) | |
| 920 | local b1 = Instance.new("SpecialMesh", p1)
| |
| 921 | b1.MeshId = "rbxassetid://485451987" | |
| 922 | b1.TextureId = "" | |
| 923 | b1.MeshType = Enum.MeshType.FileMesh | |
| 924 | b1.Name = "Mesh" | |
| 925 | b1.Scale = Vector3.new(0.109999999, 0.109999999, 0.109999999) | |
| 926 | local d1 = Instance.new("Decal", p1)
| |
| 927 | d1.Texture = "http://www.roblox.com/asset/?id=668022037" | |
| 928 | d1.Face = Enum.NormalId.Front | |
| 929 | end | |
| 930 | ||
| 931 | function uinsk() | |
| 932 | local start = reye.Parent.Color | |
| 933 | local End = color | |
| 934 | for i = 0,1,0.05 do | |
| 935 | wait() | |
| 936 | local color = start:lerp(End,i) | |
| 937 | reye.Parent.BrickColor = BrickColor.new(color) | |
| 938 | leye.Parent.BrickColor = BrickColor.new(color) | |
| 939 | end | |
| 940 | blink() | |
| 941 | end | |
| 942 | ||
| 943 | function mous(a,b) | |
| 944 | local target = game:service'Players'[a] | |
| 945 | local target2 = b | |
| 946 | local Player = target | |
| 947 | local characterImageFormat='http://www.roblox.com/Thumbs/Avatar.ashx?x=352&y=352&format=png&userid=%d'; | |
| 948 | il.Image = characterImageFormat:format(Player.userId); | |
| 949 | t1.Text = 'Username: '..target2.Name | |
| 950 | t2.Text = 'Days Old: '..target.AccountAge | |
| 951 | t3.Text = 'User Id: '..target.UserId | |
| 952 | end | |
| 953 | ||
| 954 | --// Character | |
| 955 | ||
| 956 | char.Humanoid.WalkSpeed = 45 | |
| 957 | char.Humanoid.JumpPower = 100 | |
| 958 | ||
| 959 | for _, body in pairs(char:children()) do | |
| 960 | if body:IsA('BasePart') then
| |
| 961 | body.BrickColor = BrickColor.new('Cool yellow')
| |
| 962 | end | |
| 963 | end | |
| 964 | ||
| 965 | local fakehead = Instance.new('Part', char)
| |
| 966 | fakehead.Name = "FHead" | |
| 967 | fakehead.BrickColor = BrickColor.new('Crimson')
| |
| 968 | fakehead.Color = Color3.new(75, 0, 0) | |
| 969 | fakehead.Size = char.Head.Size | |
| 970 | fakehead.CanCollide = false | |
| 971 | fakehead.Anchored = false | |
| 972 | hmesh = Instance.new('SpecialMesh', fakehead)
| |
| 973 | hmesh.Scale = Vector3.new(1.26, 1.26, 1.26) | |
| 974 | hmesh.MeshType = "Head" | |
| 975 | Weld = Instance.new("Weld",game.Players.LocalPlayer.Character)
| |
| 976 | Weld.Part0 = char.Head | |
| 977 | Weld.Part1 = fakehead | |
| 978 | Weld.C1 = CFrame.new(0, 0, 0)*CFrame.fromEulerAnglesXYZ(0, 0, 0) | |
| 979 | fhead = hmesh | |
| 980 | ||
| 981 | local eye1 = Instance.new("Part")
| |
| 982 | eye1.Anchored = false | |
| 983 | eye1.Parent = char.Head | |
| 984 | eye1.TopSurface = 0 | |
| 985 | eye1.CanCollide = false | |
| 986 | eye1.BrickColor = BrickColor.new("Black")
| |
| 987 | eye1.BottomSurface = 0 | |
| 988 | lfeye = eye1 | |
| 989 | local eye1m = Instance.new("SpecialMesh", eye1)
| |
| 990 | eye1m.MeshType = Enum.MeshType.Sphere | |
| 991 | eye1m.Scale = Vector3.new(0.08,0.22,0.03) | |
| 992 | local weld = Instance.new("Weld", char.Head)
| |
| 993 | weld.Part0 = eye1 | |
| 994 | weld.Part1 = char.Head | |
| 995 | weld.C1 = CFrame.new(-.17,.14,-.57) | |
| 996 | local eye2 = Instance.new("Part")
| |
| 997 | eye2.Anchored = false | |
| 998 | eye2.Parent = char.Head | |
| 999 | eye2.TopSurface = 0 | |
| 1000 | eye2.CanCollide = false | |
| 1001 | eye2.Material = 'Neon' | |
| 1002 | eye2.BrickColor = BrickColor.new("Pearl")
| |
| 1003 | eye2.BottomSurface = 0 | |
| 1004 | local eye2m = Instance.new("SpecialMesh", eye2)
| |
| 1005 | eye2m.MeshType = Enum.MeshType.Sphere | |
| 1006 | eye2m.Scale = Vector3.new(0.04,0.12,0.05) | |
| 1007 | local weld = Instance.new("Weld", char.Head)
| |
| 1008 | weld.Part0 = eye2 | |
| 1009 | weld.Part1 = char.Head | |
| 1010 | weld.C1 = CFrame.new(-.2,.14,-.57) | |
| 1011 | reye = eye2m | |
| 1012 | ||
| 1013 | local eye1 = Instance.new("Part")
| |
| 1014 | eye1.Anchored = false | |
| 1015 | eye1.Parent = char.Head | |
| 1016 | eye1.TopSurface = 0 | |
| 1017 | eye1.CanCollide = false | |
| 1018 | eye1.BrickColor = BrickColor.new("Black")
| |
| 1019 | eye1.BottomSurface = 0 | |
| 1020 | rfeye = eye1 | |
| 1021 | local eye1m = Instance.new("SpecialMesh", eye1)
| |
| 1022 | eye1m.MeshType = Enum.MeshType.Sphere | |
| 1023 | eye1m.Scale = Vector3.new(0.08,0.22,0.03) | |
| 1024 | local weld = Instance.new("Weld", char.Head)
| |
| 1025 | weld.Part0 = eye1 | |
| 1026 | weld.Part1 = char.Head | |
| 1027 | weld.C1 = CFrame.new(.17,.14,-.57) | |
| 1028 | local eye1 = Instance.new("Part")
| |
| 1029 | eye1.Anchored = false | |
| 1030 | eye1.Parent = char.Head | |
| 1031 | eye1.TopSurface = 0 | |
| 1032 | eye1.CanCollide = false | |
| 1033 | eye1.Material = 'Neon' | |
| 1034 | eye1.BrickColor = BrickColor.new("Pearl")
| |
| 1035 | eye1.BottomSurface = 0 | |
| 1036 | local eye1m = Instance.new("SpecialMesh", eye1)
| |
| 1037 | eye1m.MeshType = Enum.MeshType.Sphere | |
| 1038 | eye1m.Scale = Vector3.new(0.04,0.12,0.05) | |
| 1039 | local weld = Instance.new("Weld", char.Head)
| |
| 1040 | weld.Part0 = eye1 | |
| 1041 | weld.Part1 = char.Head | |
| 1042 | weld.C1 = CFrame.new(.2,.14,-.57) | |
| 1043 | leye = eye1m | |
| 1044 | color = eye1.Color | |
| 1045 | ||
| 1046 | for _, a in pairs(char:children()) do | |
| 1047 | if a:IsA('Pants') or a:IsA('Shirt') or a:IsA('ShirtGraphic') then
| |
| 1048 | a:Destroy() | |
| 1049 | end | |
| 1050 | end | |
| 1051 | ||
| 1052 | child(char,'Accessory') | |
| 1053 | child(char,'CharacterMesh') | |
| 1054 | ||
| 1055 | pack('LeftArm',151353346,151353416)
| |
| 1056 | pack('RightArm',151353346,151353456)
| |
| 1057 | pack('LeftLeg',151353346,151353958)
| |
| 1058 | pack('RightLeg',151353346,151353479)
| |
| 1059 | pack('Torso',151353346,151353393)
| |
| 1060 | ||
| 1061 | char.Head.face.Texture = "rbxassetid://10747810" | |
| 1062 | ||
| 1063 | --// Key function | |
| 1064 | ||
| 1065 | mouse.KeyDown:connect(function(key) | |
| 1066 | if key == "c" and cooldown then | |
| 1067 | if (hear == false) then | |
| 1068 | hear = true | |
| 1069 | elseif (hear == true) then | |
| 1070 | hear = false | |
| 1071 | end | |
| 1072 | end | |
| 1073 | ||
| 1074 | if key == "g" and cooldown then | |
| 1075 | cooldown = false | |
| 1076 | if (unmasked == true) then | |
| 1077 | unmasked = false | |
| 1078 | s7:Play() | |
| 1079 | omask() | |
| 1080 | elseif (unmasked == false) then | |
| 1081 | unmasked = true | |
| 1082 | s8:Play() | |
| 1083 | umask() | |
| 1084 | end | |
| 1085 | wait(.1) | |
| 1086 | cooldown = true | |
| 1087 | end | |
| 1088 | ||
| 1089 | if key == "t" and cooldown then | |
| 1090 | cooldown = false | |
| 1091 | local web = Instance.new('Part', char)
| |
| 1092 | web.CanCollide = false | |
| 1093 | web.Anchored = false | |
| 1094 | web.CanCollide = false | |
| 1095 | web.CFrame = char.Torso.CFrame * CFrame.Angles(rad(0),rad(90),rad(180)) | |
| 1096 | web.Position = torso.Position + torso.CFrame.lookVector * 1 | |
| 1097 | web.Size = Vector3.new(0.09, 5.13, 5.55) | |
| 1098 | web.Transparency = 1 | |
| 1099 | local dec = Instance.new('Decal', web)
| |
| 1100 | dec.Texture = "http://www.roblox.com/asset/?id=148633485" | |
| 1101 | dec.Face = "Left" | |
| 1102 | local dec2 = dec:Clone() | |
| 1103 | dec2.Parent = web | |
| 1104 | dec2.Face = "Right" | |
| 1105 | local dec3 = dec:Clone() | |
| 1106 | dec3.Parent = web | |
| 1107 | dec3.Face = "Top" | |
| 1108 | local dec4 = dec:Clone() | |
| 1109 | dec4.Parent = web | |
| 1110 | dec4.Face = "Back" | |
| 1111 | local dec5 = dec:Clone() | |
| 1112 | dec5.Parent = web | |
| 1113 | dec5.Face = "Bottom" | |
| 1114 | local dec6 = dec:Clone() | |
| 1115 | dec6.Parent = web | |
| 1116 | dec6.Face = "Front" | |
| 1117 | local bv = Instance.new("BodyVelocity")
| |
| 1118 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1119 | bv.velocity = mouse.Hit.lookVector * 185 | |
| 1120 | bv.Parent = web | |
| 1121 | web.Touched:connect(function(hit) | |
| 1122 | if hit.Parent.Name ~= plr.Name and hit.Parent:FindFirstChildOfClass('Humanoid') then
| |
| 1123 | local speed = hit.Parent:FindFirstChildOfClass('Humanoid').WalkSpeed
| |
| 1124 | hit.Parent:FindFirstChildOfClass('Humanoid').WalkSpeed = 0
| |
| 1125 | web:Destroy() | |
| 1126 | for _, a in pairs(hit.Parent:children()) do | |
| 1127 | local dec = Instance.new('Decal', a)
| |
| 1128 | dec.Texture = "http://www.roblox.com/asset/?id=148633485" | |
| 1129 | dec.Face = "Left" | |
| 1130 | local dec2 = dec:Clone() | |
| 1131 | dec2.Parent = a | |
| 1132 | dec2.Face = "Right" | |
| 1133 | local dec3 = dec:Clone() | |
| 1134 | dec3.Parent = a | |
| 1135 | dec3.Face = "Top" | |
| 1136 | local dec4 = dec:Clone() | |
| 1137 | dec4.Parent = a | |
| 1138 | dec4.Face = "Back" | |
| 1139 | local dec5 = dec:Clone() | |
| 1140 | dec5.Face = "Bottom" | |
| 1141 | dec5.Parent = a | |
| 1142 | local dec6 = dec:Clone() | |
| 1143 | dec6.Parent = a | |
| 1144 | dec6.Face = "Front" | |
| 1145 | game.Debris:AddItem(dec, time+2) | |
| 1146 | game.Debris:AddItem(dec2, time+2) | |
| 1147 | game.Debris:AddItem(dec3, time+2) | |
| 1148 | game.Debris:AddItem(dec4, time+2) | |
| 1149 | game.Debris:AddItem(dec5, time+2) | |
| 1150 | game.Debris:AddItem(dec6, time+2) | |
| 1151 | end | |
| 1152 | wait(time) | |
| 1153 | webmove(hit.Parent,speed) | |
| 1154 | end | |
| 1155 | end) | |
| 1156 | wait(.1) | |
| 1157 | cooldown = true | |
| 1158 | end | |
| 1159 | ||
| 1160 | if key == "f" and cooldown and (unmasked == false) then | |
| 1161 | cooldown = false | |
| 1162 | if (sou == false) then | |
| 1163 | sou = true | |
| 1164 | tw('Playing song...')
| |
| 1165 | s3.Volume = 0 | |
| 1166 | s3:Play() | |
| 1167 | ss() | |
| 1168 | tw('Song is playing...')
| |
| 1169 | elseif (sou == true) then | |
| 1170 | sou = false | |
| 1171 | tw('Stopping song...')
| |
| 1172 | st() | |
| 1173 | s3.Volume = 0 | |
| 1174 | tw('Song is stopped...')
| |
| 1175 | end | |
| 1176 | wait(.05) | |
| 1177 | cooldown = true | |
| 1178 | end | |
| 1179 | ||
| 1180 | if key == "v" and cooldown and (unmasked == false) and drone then | |
| 1181 | cooldown = false | |
| 1182 | if char:FindFirstChild('Drone') and (freefly == false) then
| |
| 1183 | freefly = true | |
| 1184 | workspace.Camera.CameraSubject = char:FindFirstChild('Drone')
| |
| 1185 | elseif (freefly == true) then | |
| 1186 | freefly = false | |
| 1187 | workspace.Camera.CameraSubject = char:FindFirstChildOfClass('Humanoid')
| |
| 1188 | end | |
| 1189 | wait(.05) | |
| 1190 | cooldown = true | |
| 1191 | end | |
| 1192 | ||
| 1193 | if key == "r" and cooldown and (unmasked == false) then | |
| 1194 | cooldown = false | |
| 1195 | if (black == false) then | |
| 1196 | black = true | |
| 1197 | transform() | |
| 1198 | elseif (black == true) then | |
| 1199 | black = false | |
| 1200 | untrans() | |
| 1201 | end | |
| 1202 | wait(2) | |
| 1203 | cooldown = true | |
| 1204 | end | |
| 1205 | ||
| 1206 | if key == "e" and cooldown and (unmasked == false) then | |
| 1207 | cooldown = false | |
| 1208 | if (insta == false) then | |
| 1209 | insta = true | |
| 1210 | insk() | |
| 1211 | tw('Instant kill mode activated!')
| |
| 1212 | elseif (insta == true) then | |
| 1213 | insta = false | |
| 1214 | tw('Deactivating instant kill mode...')
| |
| 1215 | uinsk() | |
| 1216 | tw('instant kill mode deactivated!')
| |
| 1217 | end | |
| 1218 | cooldown = true | |
| 1219 | end | |
| 1220 | ||
| 1221 | if key == "q" and cooldown and (unmasked == false) then | |
| 1222 | cooldown = false | |
| 1223 | if (zcam == false) then | |
| 1224 | zcam = true | |
| 1225 | tw('Zooming in....')
| |
| 1226 | zoomi() | |
| 1227 | tw('Zoomed in')
| |
| 1228 | wait(.2) | |
| 1229 | o2.Text = "" | |
| 1230 | elseif (zcam == true) then | |
| 1231 | zcam = false | |
| 1232 | tw('Zooming out....')
| |
| 1233 | zoomo() | |
| 1234 | tw('Zoomed out')
| |
| 1235 | wait(.2) | |
| 1236 | o2.Text = "" | |
| 1237 | end | |
| 1238 | wait(.1) | |
| 1239 | cooldown = true | |
| 1240 | end | |
| 1241 | end) | |
| 1242 | ||
| 1243 | --// Click function | |
| 1244 | ||
| 1245 | mouse.Button1Down:connect(function() | |
| 1246 | if mouse.Target and cooldown then | |
| 1247 | if mouse.Target.ClassName == "Part" then | |
| 1248 | s10:Play() | |
| 1249 | lclick = true | |
| 1250 | mousep = mouse.Hit.p | |
| 1251 | mouseh = mouse.Hit | |
| 1252 | sling = true | |
| 1253 | cooldown = false | |
| 1254 | part = mouse.Target | |
| 1255 | char.Humanoid.Jump = true | |
| 1256 | wait(.05) | |
| 1257 | s1:Play() | |
| 1258 | sel = Instance.new("SelectionPointLasso")
| |
| 1259 | sels = sel | |
| 1260 | sel.Parent= workspace | |
| 1261 | sel.Humanoid = char.Humanoid | |
| 1262 | sel.Color=BrickColor.new("White")
| |
| 1263 | sel.Point = mousep | |
| 1264 | char.Torso.CFrame = CFrame.new(char.Torso.Position, mouse.Hit.p) | |
| 1265 | arm = {char["Right Arm"]}
| |
| 1266 | char.Torso["Right Shoulder"].Archivable = true | |
| 1267 | mc = char.Torso["Right Shoulder"]:Clone() | |
| 1268 | weld = Instance.new("Weld", arm[1])
| |
| 1269 | weld.Part0 = char.Torso | |
| 1270 | weld.Part1 = weld.Parent | |
| 1271 | weld.C1 = CFrame.new(-1.5,.5,.5)*CFrame.Angles(math.rad(-90),0,0) | |
| 1272 | game.Debris:AddItem(weld, 0.5) | |
| 1273 | local bv = Instance.new("BodyVelocity")
| |
| 1274 | bodyv = bv | |
| 1275 | bv.maxForce = Vector3.new(1e9, 1e9, 1e9) | |
| 1276 | bv.velocity = mouseh.lookVector * speed | |
| 1277 | bv.Parent = torso | |
| 1278 | lclickt = true | |
| 1279 | wait(0.6) | |
| 1280 | mc.Parent = char.Torso | |
| 1281 | end | |
| 1282 | end | |
| 1283 | end) | |
| 1284 | ||
| 1285 | mouse.Button1Up:connect(function() | |
| 1286 | lclick = false | |
| 1287 | if bodyv:IsA('BodyVelocity') and sels:IsA('SelectionPointLasso') then
| |
| 1288 | bodyv:Destroy() | |
| 1289 | sels:Destroy() | |
| 1290 | sling = false | |
| 1291 | cooldown = true | |
| 1292 | end | |
| 1293 | end) | |
| 1294 | ||
| 1295 | --// Intro | |
| 1296 | ||
| 1297 | tw("Welcome back, "..plr.Name)
| |
| 1298 | wait(.1) | |
| 1299 | tw("Press left click to shoot web")
| |
| 1300 | wait(.1) | |
| 1301 | tw("Script made by Cronizete")
| |
| 1302 | wait(.1) | |
| 1303 | o2.Text = "" | |
| 1304 | ||
| 1305 | --// Touched | |
| 1306 | ||
| 1307 | for _, b in pairs(char:children()) do | |
| 1308 | if b:IsA('Part') then
| |
| 1309 | char.Torso.Touched:connect(function(hit) | |
| 1310 | if hit:IsA('Part') and hit.Name ~= 'Base' and hit.Name ~= 'Right Arm' then
| |
| 1311 | lclick = false | |
| 1312 | for _, a in pairs(torso:children()) do | |
| 1313 | if a:IsA('BodyVelocity') and sels:IsA('SelectionPointLasso') then
| |
| 1314 | sels:Destroy() | |
| 1315 | a:Destroy() | |
| 1316 | end | |
| 1317 | end | |
| 1318 | end | |
| 1319 | end) | |
| 1320 | end | |
| 1321 | end | |
| 1322 | ||
| 1323 | --//Wall Climb | |
| 1324 | ||
| 1325 | torso.Touched:connect(function(hit) | |
| 1326 | if hit:IsA('Part') and (sling == false) then
| |
| 1327 | local c = Instance.new('TrussPart', workspace.CurrentCamera)
| |
| 1328 | c.Anchored = true | |
| 1329 | c.Transparency = 1 | |
| 1330 | c.CFrame = CFrame.new(char.Torso.Position + (char.Torso.CFrame.lookVector * 1), char.Torso.Position + (char.Torso.CFrame.lookVector * 12)) | |
| 1331 | game:GetService('Debris'):AddItem(c,3)
| |
| 1332 | end | |
| 1333 | end) | |
| 1334 | ||
| 1335 | --// Sound feauture | |
| 1336 | ||
| 1337 | game:service'Workspace'.DescendantAdded:connect(function(p) | |
| 1338 | if p:IsA('Sound') and hear then
| |
| 1339 | local p1 = p:Clone() | |
| 1340 | p1.Parent = workspace.Camera | |
| 1341 | p1.Volume = p1.Volume + 1.5 | |
| 1342 | p1:Play() | |
| 1343 | end | |
| 1344 | end) | |
| 1345 | ||
| 1346 | --// Speed | |
| 1347 | ||
| 1348 | char.Humanoid.Running:connect(function(speed) | |
| 1349 | o4.Text = "Current Speed: "..speed | |
| 1350 | end) | |
| 1351 | ||
| 1352 | --// Mouse | |
| 1353 | ||
| 1354 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1355 | if mouse.Target and mouse.Target.Parent:FindFirstChildOfClass('Humanoid') and (unmasked == false) then
| |
| 1356 | local targ = mouse.Target | |
| 1357 | if game:service'Players':FindFirstChild(targ.Parent.Name) then | |
| 1358 | mous(mouse.Target.Parent.Name,mouse.Target.Parent) | |
| 1359 | elseif not game:service'Players':FindFirstChild(targ.Parent.Name) then | |
| 1360 | t1.Text = "Model: "..targ.Parent.Name | |
| 1361 | t2.Text = "" | |
| 1362 | t3.Text = "" | |
| 1363 | t4.Text = "" | |
| 1364 | end | |
| 1365 | end | |
| 1366 | end) | |
| 1367 | ||
| 1368 | --// Time | |
| 1369 | ||
| 1370 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1371 | o7.Text = "Current Time: "..game:service'Lighting'.TimeOfDay | |
| 1372 | end) | |
| 1373 | ||
| 1374 | --// Web Speed | |
| 1375 | ||
| 1376 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1377 | if lclick then | |
| 1378 | speed = speed + 1 | |
| 1379 | bodyv.velocity = mouseh.lookVector * speed | |
| 1380 | elseif (lclick == false) and lclickt then | |
| 1381 | speed = mspeed | |
| 1382 | bodyv.velocity = mouseh.lookVector * mspeed | |
| 1383 | end | |
| 1384 | end) | |
| 1385 | ||
| 1386 | --// Heal | |
| 1387 | ||
| 1388 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1389 | char:FindFirstChildOfClass('Humanoid').Health = char:FindFirstChildOfClass('Humanoid').Health + 0.1
| |
| 1390 | end) | |
| 1391 | ||
| 1392 | --// Drone (Cancelled) | |
| 1393 | ||
| 1394 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1395 | if drone then | |
| 1396 | wait() | |
| 1397 | dro.CFrame = dro.CFrame:lerp(char.Head.CFrame * CFrame.new(2,1.5,0),0.1) | |
| 1398 | elseif (drone == false) and char:FindFirstChild('Drone') then
| |
| 1399 | wait() | |
| 1400 | dro.CFrame = dro.CFrame:lerp(char.Torso.CFrame,0.1) | |
| 1401 | end | |
| 1402 | end) | |
| 1403 | ||
| 1404 | --// Web Speed | |
| 1405 | ||
| 1406 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1407 | o6.Text = "Current Web Speed: "..speed | |
| 1408 | end) | |
| 1409 | ||
| 1410 | --// Sounds | |
| 1411 | ||
| 1412 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1413 | local sous = {}
| |
| 1414 | function scan(p) | |
| 1415 | for _,v in pairs(p:GetChildren()) do | |
| 1416 | if (v:IsA("Sound")) then
| |
| 1417 | table.insert(sous,v) | |
| 1418 | end | |
| 1419 | scan(v) | |
| 1420 | end | |
| 1421 | end | |
| 1422 | ||
| 1423 | scan(game:service'Workspace') | |
| 1424 | local ps = #sous | |
| 1425 | if ps >= 2 then | |
| 1426 | asd2 = "s" | |
| 1427 | elseif ps <= 1 then | |
| 1428 | asd2 = "" | |
| 1429 | end | |
| 1430 | o8.Text = "Current Sound"..asd2..": "..#sous | |
| 1431 | sous = {}
| |
| 1432 | end) | |
| 1433 | ||
| 1434 | --// Parts | |
| 1435 | ||
| 1436 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1437 | parts = {}
| |
| 1438 | function scan(p) | |
| 1439 | for _,v in pairs(p:GetChildren()) do | |
| 1440 | if (v:IsA("BasePart")) then
| |
| 1441 | table.insert(parts,v) | |
| 1442 | end | |
| 1443 | scan(v) | |
| 1444 | end | |
| 1445 | end | |
| 1446 | ||
| 1447 | scan(game:service'Workspace') | |
| 1448 | local ps = #parts | |
| 1449 | if ps >= 2 then | |
| 1450 | asd = "s" | |
| 1451 | elseif ps <= 1 then | |
| 1452 | asd = "" | |
| 1453 | end | |
| 1454 | o9.Text = "Current Part"..asd..": "..#parts | |
| 1455 | parts = {}
| |
| 1456 | end) | |
| 1457 | ||
| 1458 | --// Helmet stuff | |
| 1459 | ||
| 1460 | game:GetService('RunService').RenderStepped:connect(function()
| |
| 1461 | ||
| 1462 | if not char.Head.BrickColor == color then | |
| 1463 | char.Head.BrickColor = BrickColor.new('Cool yellow')
| |
| 1464 | end | |
| 1465 | ||
| 1466 | char["Right Arm"].BrickColor = color3 | |
| 1467 | char["Left Arm"].BrickColor = color3 | |
| 1468 | ||
| 1469 | o3.Text = "Current Health: "..char.Humanoid.Health | |
| 1470 | ||
| 1471 | if char.Humanoid.Health <= 20 and (unmasked == false) then | |
| 1472 | o2.Text = "You're about to die!" | |
| 1473 | s5:Resume() | |
| 1474 | o1.Rotation = math.random(-8,8) | |
| 1475 | else | |
| 1476 | s5:Pause() | |
| 1477 | o1.Rotation = 0 | |
| 1478 | end | |
| 1479 | ||
| 1480 | for _, plrs in pairs(game:service'Players':players()) do | |
| 1481 | if plrs.Name ~= plr.Name and plrs.Character then | |
| 1482 | if (plrs.Character.HumanoidRootPart.Position - torso.Position).magnitude <= 25 then | |
| 1483 | s4:Resume() | |
| 1484 | end | |
| 1485 | end | |
| 1486 | end | |
| 1487 | end) | |
| 1488 | ||
| 1489 | --// Main loop | |
| 1490 | ||
| 1491 | while wait(3) do | |
| 1492 | t1.Text = '' | |
| 1493 | t2.Text = '' | |
| 1494 | t3.Text = '' | |
| 1495 | t4.Text = '' | |
| 1496 | il.Image = 'rbxassetid://0' | |
| 1497 | o2.Text = "" | |
| 1498 | local rand = math.random(1,3) | |
| 1499 | if rand == 1 and (unmasked == false) then | |
| 1500 | blink() | |
| 1501 | elseif rand == 2 and (unmasked == false) then | |
| 1502 | headl() | |
| 1503 | elseif rand == 3 and (unmasked == false) then | |
| 1504 | headu() | |
| 1505 | end | |
| 1506 | end |