SHOW:
|
|
- or go back to the newest paste.
| 1 | -- This script has been converted to FE by iPxter | |
| 2 | ||
| 3 | ||
| 4 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 5 | local Player,Mouse,mouse,UserInputService,ContextActionService = owner | |
| 6 | do | |
| 7 | print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
| |
| 8 | script.Parent = Player.Character | |
| 9 | ||
| 10 | --RemoteEvent for communicating | |
| 11 | local Event = Instance.new("RemoteEvent")
| |
| 12 | Event.Name = "UserInput_Event" | |
| 13 | ||
| 14 | --Fake event to make stuff like Mouse.KeyDown work | |
| 15 | local function fakeEvent() | |
| 16 | local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
| |
| 17 | t.connect = t.Connect | |
| 18 | return t | |
| 19 | end | |
| 20 | ||
| 21 | --Creating fake input objects with fake variables | |
| 22 | local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
| |
| 23 | local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
| |
| 24 | local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
| |
| 25 | CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
| |
| 26 | end} | |
| 27 | --Merged 2 functions into one by checking amount of arguments | |
| 28 | CAS.UnbindAction = CAS.BindAction | |
| 29 | ||
| 30 | --This function will trigger the events that have been :Connect()'ed | |
| 31 | local function te(self,ev,...) | |
| 32 | local t = m[ev] | |
| 33 | if t and t._fakeEvent and t.Function then | |
| 34 | t.Function(...) | |
| 35 | end | |
| 36 | end | |
| 37 | m.TrigEvent = te | |
| 38 | UIS.TrigEvent = te | |
| 39 | ||
| 40 | Event.OnServerEvent:Connect(function(plr,io) | |
| 41 | if plr~=Player then return end | |
| 42 | if io.isMouse then | |
| 43 | m.Target = io.Target | |
| 44 | m.Hit = io.Hit | |
| 45 | else | |
| 46 | local b = io.UserInputState == Enum.UserInputState.Begin | |
| 47 | if io.UserInputType == Enum.UserInputType.MouseButton1 then | |
| 48 | return m:TrigEvent(b and "Button1Down" or "Button1Up") | |
| 49 | end | |
| 50 | for _,t in pairs(CAS.Actions) do | |
| 51 | for _,k in pairs(t.Keys) do | |
| 52 | if k==io.KeyCode then | |
| 53 | t.Function(t.Name,io.UserInputState,io) | |
| 54 | end | |
| 55 | end | |
| 56 | end | |
| 57 | m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower()) | |
| 58 | UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false) | |
| 59 | end | |
| 60 | end) | |
| 61 | Event.Parent = NLS([==[ | |
| 62 | local Player = game:GetService("Players").LocalPlayer
| |
| 63 | local Event = script:WaitForChild("UserInput_Event")
| |
| 64 | ||
| 65 | local UIS = game:GetService("UserInputService")
| |
| 66 | local input = function(io,a) | |
| 67 | if a then return end | |
| 68 | --Since InputObject is a client-side instance, we create and pass table instead | |
| 69 | Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
| |
| 70 | end | |
| 71 | UIS.InputBegan:Connect(input) | |
| 72 | UIS.InputEnded:Connect(input) | |
| 73 | ||
| 74 | local Mouse = Player:GetMouse() | |
| 75 | local h,t | |
| 76 | --Give the server mouse data 30 times every second, but only if the values changed | |
| 77 | --If player is not moving their mouse, client won't fire events | |
| 78 | while wait(1/30) do | |
| 79 | if h~=Mouse.Hit or t~=Mouse.Target then | |
| 80 | h,t=Mouse.Hit,Mouse.Target | |
| 81 | Event:FireServer({isMouse=true,Target=t,Hit=h})
| |
| 82 | end | |
| 83 | end]==],Player.Character) | |
| 84 | Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS | |
| 85 | end | |
| 86 | ||
| 87 | -- Crying Child Revenge script (edit) | |
| 88 | -- by Josemmoya | |
| 89 | --~Despacito lord#2929 | |
| 90 | -- why THE HELL DID I MAKE THIS | |
| 91 | owner.Character.Humanoid.MaxHealth = math.Huge | |
| 92 | warn([[ | |
| 93 | CONTROLS: | |
| 94 | e - makes u invisible | |
| 95 | r - working on it | |
| 96 | ]]) | |
| 97 | plr = owner | |
| 98 | repeat wait() until plr.Character | |
| 99 | char = plr.Character | |
| 100 | ||
| 101 | ||
| 102 | local music = Instance.new("Sound",char)
| |
| 103 | music.SoundId = "rbxassetid://2710259701" | |
| 104 | music.TimePosition = 3 | |
| 105 | music.Volume = 10 | |
| 106 | music:Play() | |
| 107 | music.Looped = true | |
| 108 | laugh = Instance.new("Sound")
| |
| 109 | laugh.Parent = char | |
| 110 | laugh.SoundId = "rbxassetid://319332735" | |
| 111 | laugh.Volume = 4 | |
| 112 | ||
| 113 | skin_Color = BrickColor.new("Pastel brown")
| |
| 114 | ||
| 115 | local Weapon = Instance.new("Model",char)
| |
| 116 | Weapon.Name = "Knife" | |
| 117 | local Part0 = Instance.new("Part",Weapon)
| |
| 118 | Part0.Name = "Handle" | |
| 119 | Part0.Size = Vector3.new(0.37, 0.57, 0.88) | |
| 120 | Part0.BrickColor = BrickColor.new("Really black")
| |
| 121 | Part0.CanCollide = false | |
| 122 | Part0.Material = Enum.Material.SmoothPlastic | |
| 123 | local Part1 = Instance.new("Part",Weapon)
| |
| 124 | Part1.Name = "TopKnife" | |
| 125 | Part1.BrickColor = BrickColor.new("Really red")
| |
| 126 | Part1.Material = Enum.Material.Neon | |
| 127 | Part1.CanCollide = false | |
| 128 | Part1.Size = Vector3.new(0.37, 0.57, 2.07) | |
| 129 | local Particle = Instance.new("ParticleEmitter",Part1)
| |
| 130 | Particle.Lifetime = NumberRange.new(0.3) | |
| 131 | Particle.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 132 | Particle.LockedToPart = true | |
| 133 | Particle.Speed = NumberRange.new(0) | |
| 134 | Particle.Rate = math.huge | |
| 135 | local Part2 = Instance.new("WedgePart",Weapon)
| |
| 136 | Part2.Size = Vector3.new(0.36, 0.6, 1.14) | |
| 137 | Part2.Material = Enum.Material.Neon | |
| 138 | Part2.BrickColor = BrickColor.new("Really red")
| |
| 139 | Part2.CanCollide = false | |
| 140 | Part2.Name = "WedgeForTopKnife" | |
| 141 | local weld = Instance.new("Weld",Part0)
| |
| 142 | weld.Part0 = Part0 | |
| 143 | weld.Part1 = Part1 | |
| 144 | weld.C0 = CFrame.new(0, 0, 1.4406805, 1, 0, 0, 0, 1, 0, 0, 0, 1) | |
| 145 | local wweld = Instance.new("Weld",Part1)
| |
| 146 | wweld.Part0 = Part1 | |
| 147 | wweld.Part1 = Part2 | |
| 148 | wweld.C0 = CFrame.new(0.00241553783, -0.0223271549, 1.57767344, 1, 0, 0, 0, -0.999996781, -0.0025379993, 0, 0.0025379993, -0.999996781) | |
| 149 | local wwweld = Instance.new("Weld",char["Right Arm"])
| |
| 150 | wwweld.Part0 = char["Right Arm"] | |
| 151 | wwweld.Part1 = Part0 | |
| 152 | wwweld.C0 = CFrame.new(0.0283082724, -1.16673839, -0.0630893707, -0.998895764, 0, -0.0469819903, 0, 0.999999881, 0, 0.0469819903, 0, -0.998895764) | |
| 153 | local Part3 = Instance.new("Part",Weapon)
| |
| 154 | Part3.CanCollide = false | |
| 155 | Part3.Size = Vector3.new(0.53, 0.8, 3.25) | |
| 156 | Part3.Transparency = 1 | |
| 157 | Part3.Name = "Hitbox" | |
| 158 | local trailattach0 = Instance.new("Attachment",Part3)
| |
| 159 | trailattach0.Position = Vector3.new(0, -0.311, -0.208) | |
| 160 | trailattach0.Orientation = Vector3.new(0, 0, -96.727) | |
| 161 | local trailattach1 = Instance.new("Attachment",Part3)
| |
| 162 | trailattach1.Position = Vector3.new(0.111, -0.352, 1.462) | |
| 163 | trailattach1.Orientation = Vector3.new(0, 0, -90.415) | |
| 164 | local trail = Instance.new("Trail",Part3)
| |
| 165 | trail.Name = "WeaponTrail" | |
| 166 | trail.Color = ColorSequence.new(BrickColor.new("Really red").Color)
| |
| 167 | trail.Lifetime = 0.5 | |
| 168 | trail.Attachment0 = trailattach0 | |
| 169 | trail.Attachment1 = trailattach1 | |
| 170 | local wwwweld = Instance.new("Weld",Part0)
| |
| 171 | wwwweld.Part0 = Part0 | |
| 172 | wwwweld.Part1 = Part3 | |
| 173 | wwwweld.C0 = CFrame.new(-0.00386536121, -0.0567215681, 2.06630421, -0.998895764, 0, 0.0469819903, 0, 0.999999762, 0, -0.0469819903, 0, -0.998895764) | |
| 174 | ||
| 175 | ||
| 176 | ||
| 177 | ||
| 178 | ||
| 179 | plr:ClearCharacterAppearance() | |
| 180 | local shirt = Instance.new("Shirt",char)
| |
| 181 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=166148446" | |
| 182 | local pants = Instance.new("Pants",char)
| |
| 183 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=166148597" | |
| 184 | local Hair = Instance.new("Part",char)
| |
| 185 | Hair.CanCollide = false | |
| 186 | local Hairm = Instance.new("FileMesh",Hair)
| |
| 187 | Hairm.MeshId = "http://www.roblox.com/asset/?id=250264520" | |
| 188 | Hairm.TextureId = "http://www.roblox.com/asset/?id=2675785344" | |
| 189 | local Hairw = Instance.new("Weld",Hair)
| |
| 190 | Hairw.Part0 = Hair | |
| 191 | Hairw.Part1 = char.Head | |
| 192 | Hairw.C0 = CFrame.new(0, -0.200000286, 0, 1, -2.96657507e-08, -8.07689048e-07, 2.96659675e-08, 1, 2.69079379e-07, 8.07689048e-07, -2.69079379e-07, 1) | |
| 193 | CanUse = false | |
| 194 | issprinting = false | |
| 195 | function onKeyDown(Key) | |
| 196 | if Key == "r" then | |
| 197 | warn("WIP")
| |
| 198 | end | |
| 199 | end | |
| 200 | function Sprint(Key) | |
| 201 | if Key == "e" then | |
| 202 | char.Humanoid.WalkSpeed = 60 | |
| 203 | trail.Enabled = false | |
| 204 | music:Pause() | |
| 205 | issprinting = true | |
| 206 | Particle.Transparency = NumberSequence.new(1) | |
| 207 | for i = 1,10 do | |
| 208 | for i,v in pairs(char:GetChildren()) do | |
| 209 | if v.ClassName == "Part" then | |
| 210 | char.Head.face.Transparency = 1 | |
| 211 | v.Transparency = v.Transparency + 1 | |
| 212 | end | |
| 213 | end | |
| 214 | Part0.Transparency = Part0.Transparency + 1 | |
| 215 | Part1.Transparency = Part1.Transparency + 1 | |
| 216 | Part2.Transparency = Part2.Transparency + 1 | |
| 217 | Part3.Transparency = Part3.Transparency + 1 | |
| 218 | wait() | |
| 219 | end | |
| 220 | end | |
| 221 | end | |
| 222 | function StopSprinting(Key) | |
| 223 | if Key == "e" then | |
| 224 | char.Humanoid.WalkSpeed = 16 | |
| 225 | trail.Enabled = true | |
| 226 | music:Resume() | |
| 227 | Particle.Transparency = NumberSequence.new(0) | |
| 228 | issprinting = false | |
| 229 | for i = 1,10 do | |
| 230 | for i,v in pairs(char:GetChildren()) do | |
| 231 | if v.ClassName == "Part" then | |
| 232 | char.Head.face.Transparency = 0 | |
| 233 | v.Transparency = v.Transparency - 1 | |
| 234 | end | |
| 235 | end | |
| 236 | Part0.Transparency = Part0.Transparency - 1 | |
| 237 | Part1.Transparency = Part1.Transparency - 1 | |
| 238 | Part2.Transparency = Part2.Transparency - 1 | |
| 239 | Part3.Transparency = Part3.Transparency - 1 | |
| 240 | wait() | |
| 241 | end | |
| 242 | end | |
| 243 | end | |
| 244 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 245 | naeeym2.AlwaysOnTop = true | |
| 246 | naeeym2.Size = UDim2.new(5,35,2,35) | |
| 247 | naeeym2.StudsOffset = Vector3.new(0,2,0) | |
| 248 | naeeym2.Adornee = hed | |
| 249 | naeeym2.Name = "Name" | |
| 250 | ||
| 251 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 252 | tecks2.BackgroundTransparency = 1 | |
| 253 | tecks2.TextScaled = true | |
| 254 | tecks2.BorderSizePixel = 0 | |
| 255 | tecks2.Text = "Laughing Jack" | |
| 256 | tecks2.Font = "Garamond" | |
| 257 | tecks2.TextSize = 30 | |
| 258 | tecks2.TextStrokeTransparency = 0 | |
| 259 | tecks2.TextColor3 = BrickColor.new('Really red').Color
| |
| 260 | tecks2.TextStrokeColor3 = BrickColor.new('Really red').Color
| |
| 261 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 262 | tecks2.Parent = naeeym2 | |
| 263 | textfag = tecks2 | |
| 264 | tecks2.Text = "Laughing Jack" | |
| 265 | function swait(num) | |
| 266 | if num == 0 or num == nil then | |
| 267 | game:service("RunService").Stepped:wait(0)
| |
| 268 | else | |
| 269 | for i = 0, num do | |
| 270 | game:service("RunService").Stepped:wait(0)
| |
| 271 | end | |
| 272 | end | |
| 273 | end | |
| 274 | coroutine.resume(coroutine.create(function() | |
| 275 | while textfag ~= nil do | |
| 276 | swait() | |
| 277 | textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3)) | |
| 278 | textfag.Rotation = math.random(-3,3) | |
| 279 | end | |
| 280 | end)) | |
| 281 | mouse.KeyDown:connect(Sprint) | |
| 282 | mouse.KeyUp:connect(StopSprinting) | |
| 283 | canattack = false | |
| 284 | local anim = Instance.new("Animation",char.Humanoid)
| |
| 285 | anim.AnimationId = "rbxassetid://186934658" | |
| 286 | local ranim = char.Humanoid:LoadAnimation(anim) | |
| 287 | local hit = Instance.new("Sound",char)
| |
| 288 | hit.SoundId = "rbxassetid://388826051" | |
| 289 | hit.Volume = 4 | |
| 290 | Part3.Touched:connect(function(part) | |
| 291 | local human = part.Parent:FindFirstChildOfClass("Humanoid")
| |
| 292 | if human and human.Parent.Name ~= char.Name and canattack then | |
| 293 | human.Health = 0 | |
| 294 | hit:Play() | |
| 295 | end | |
| 296 | end) | |
| 297 | local sound = Instance.new("Sound",char)
| |
| 298 | sound.SoundId = "rbxassetid://357417055" | |
| 299 | sound.Volume = 4 | |
| 300 | function ATTACK() | |
| 301 | ranim:Play() | |
| 302 | sound:Play() | |
| 303 | canattack = true | |
| 304 | wait(.6) | |
| 305 | canattack = false | |
| 306 | end | |
| 307 | mouse.Button1Down:connect(ATTACK) | |
| 308 | while true do | |
| 309 | wait() | |
| 310 | if music.Parent == nil then | |
| 311 | music.Parent = char | |
| 312 | end | |
| 313 | for i,v in pairs(char:GetChildren()) do | |
| 314 | if v.ClassName == "Part" then | |
| 315 | v.BrickColor = skin_Color | |
| 316 | end | |
| 317 | end | |
| 318 | canglitch = math.random(1,15) | |
| 319 | if canglitch == 1 and issprinting then | |
| 320 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 321 | tecks2.Text = "Laughing Jack" | |
| 322 | elseif canglitch == 2 and not issprinting then | |
| 323 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 324 | namemath = math.random(1,5) | |
| 325 | if namemath == 1 then | |
| 326 | tecks2.Text = "hah!" | |
| 327 | end | |
| 328 | if namemath == 2 then | |
| 329 | tecks2.Text = ": => )" | |
| 330 | end | |
| 331 | if namemath == 3 then | |
| 332 | tecks2.Text = "im coming..." | |
| 333 | end | |
| 334 | if namemath == 4 then | |
| 335 | tecks2.Text = "die..." | |
| 336 | end | |
| 337 | if namemath == 5 then | |
| 338 | tecks2.Text = "..." | |
| 339 | end | |
| 340 | music:Pause() | |
| 341 | wait() | |
| 342 | music:Resume() | |
| 343 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 344 | tecks2.Text = "Laughing Jack" | |
| 345 | end | |
| 346 | if canglitch == 3 and issprinting then | |
| 347 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 348 | tecks2.Text = "Laughing Jack" | |
| 349 | end | |
| 350 | if canglitch == 4 and issprinting then | |
| 351 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 352 | tecks2.Text = "Laughing Jack" | |
| 353 | end | |
| 354 | if canglitch == 5 and issprinting then | |
| 355 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 356 | tecks2.Text = "Laughing Jack" | |
| 357 | end | |
| 358 | if canglitch == 6 and issprinting then | |
| 359 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 360 | tecks2.Text = "Laughing Jack" | |
| 361 | end | |
| 362 | if canglitch == 7 and issprinting then | |
| 363 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 364 | tecks2.Text = "Laughing Jack" | |
| 365 | end | |
| 366 | if canglitch == 8 and issprinting then | |
| 367 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 368 | tecks2.Text = "Laughing Jack" | |
| 369 | end | |
| 370 | if canglitch == 9 and issprinting then | |
| 371 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 372 | tecks2.Text = "Laughing Jack" | |
| 373 | end | |
| 374 | if canglitch == 10 and issprinting then | |
| 375 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 376 | tecks2.Text = "Laughing Jack" | |
| 377 | end | |
| 378 | if canglitch == 11 and issprinting then | |
| 379 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 380 | tecks2.Text = "Laughing Jack" | |
| 381 | end | |
| 382 | if canglitch == 12 and issprinting then | |
| 383 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 384 | tecks2.Text = "Laughing Jack" | |
| 385 | end | |
| 386 | if canglitch == 13 and issprinting then | |
| 387 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 388 | tecks2.Text = "Laughing Jack" | |
| 389 | end | |
| 390 | if canglitch == 14 and issprinting then | |
| 391 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 392 | tecks2.Text = "Laughing Jack" | |
| 393 | end | |
| 394 | if canglitch == 15 and issprinting then | |
| 395 | char.Head.face.Texture = "rbxassetid://165451948" | |
| 396 | tecks2.Text = "Laughing Jack" | |
| 397 | end | |
| 398 | end |