Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- This script has been converted to FE by iPxter
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- do
- print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
- script.Parent = Player.Character
- --RemoteEvent for communicating
- local Event = Instance.new("RemoteEvent")
- Event.Name = "UserInput_Event"
- --Fake event to make stuff like Mouse.KeyDown work
- local function fakeEvent()
- local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
- t.connect = t.Connect
- return t
- end
- --Creating fake input objects with fake variables
- local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
- local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
- local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
- CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
- end}
- --Merged 2 functions into one by checking amount of arguments
- CAS.UnbindAction = CAS.BindAction
- --This function will trigger the events that have been :Connect()'ed
- local function te(self,ev,...)
- local t = m[ev]
- if t and t._fakeEvent and t.Function then
- t.Function(...)
- end
- end
- m.TrigEvent = te
- UIS.TrigEvent = te
- Event.OnServerEvent:Connect(function(plr,io)
- if plr~=Player then return end
- if io.isMouse then
- m.Target = io.Target
- m.Hit = io.Hit
- else
- local b = io.UserInputState == Enum.UserInputState.Begin
- if io.UserInputType == Enum.UserInputType.MouseButton1 then
- return m:TrigEvent(b and "Button1Down" or "Button1Up")
- end
- for _,t in pairs(CAS.Actions) do
- for _,k in pairs(t.Keys) do
- if k==io.KeyCode then
- t.Function(t.Name,io.UserInputState,io)
- end
- end
- end
- m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
- UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
- end
- end)
- Event.Parent = NLS([==[
- local Player = game:GetService("Players").LocalPlayer
- local Event = script:WaitForChild("UserInput_Event")
- local UIS = game:GetService("UserInputService")
- local input = function(io,a)
- if a then return end
- --Since InputObject is a client-side instance, we create and pass table instead
- Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
- end
- UIS.InputBegan:Connect(input)
- UIS.InputEnded:Connect(input)
- local Mouse = Player:GetMouse()
- local h,t
- --Give the server mouse data 30 times every second, but only if the values changed
- --If player is not moving their mouse, client won't fire events
- while wait(1/30) do
- if h~=Mouse.Hit or t~=Mouse.Target then
- h,t=Mouse.Hit,Mouse.Target
- Event:FireServer({isMouse=true,Target=t,Hit=h})
- end
- end]==],Player.Character)
- Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
- end
- -- P̦̻͉̞̭̤̈́̋̎ͨͭo̞̅͊̑͆́͊̚ô̳̭̭̯͈̳͛ͣc̪͍̼͓͔̈ͪ͒ͤ̚h̲̝̭̤ͫ̐ͥ̋̀ḙ̠̩̠̩͉̹͓͂̿̌̾̄̂ͅ ̫̩͇̠̖̫̣͉̆͒a̯̫̺̘̱ͮ̿̆̾͂ṋ̹̝̟̞̠̩̀ͨ̐̍̋ͅd͔̫̓͋ ͔̟̙̘͎̘͎̞ͩP͙̰̰͇̭͓͈̞ͯͩ̓̇ͬ͊ͅa̬̤̣̓̃̊͑ͣn̳̜͋͂̽ͯͨs̫̞̬͙͕͕̥̮͉̋y̯͙͓̳̻̣̳̭ͦ̈́̒͌ͪ:̫͕̝̻̿ͨ ̟͇̣̜̹͉̊̂̚P̺͇̦͇͓̟͐̉̌̈͂ő̮̥͈̱̠̪̺̄̽ͪ̾̆͐̋̓ȯ̤͖̜͙̭̮̦͐c͔̞͍̟̳͉̺͚ͣͤ̌̔͗͗h̲̲͍̭̭͔̄̓͒̃ͅe̩̠͚͔̽͐ͣ ͎̩̫͇͖̙̲̍̓͒ͫ̑̃͆̌t͖̜̹̯͈̯͇̙̊̀ͅh͓͍̻̻̤̺̺͆͗ͤ̓̊e͈̦̲͈͉̙̎̿͌͊͊̓ ̣̤͈̔͑́ͦ̌d͔͈̞̺ͫ̉̐ͬ̋ô̹̗̱̲̖͆ͪ͐̍̍͒ͦg͓͍̝̬̦̑͐ͥ̃̐͑́ͭ͐
- -- by Josemmoya
- --~Despacito lord#2929
- -- why THE HELL DID I MAKE THIS
- warn([[
- CONTROLS:
- e - makes u invisible
- r - working on it
- ]])
- plr = owner
- repeat wait() until plr.Character
- char = plr.Character
- local music = Instance.new("Sound",char)
- music.SoundId = "rbxassetid://199974298"
- music.TimePosition = 3
- music.Volume = 10
- music:Play()
- music.Looped = true
- skin_Color = BrickColor.new("Rust")
- local Weapon = Instance.new("Model",char)
- Weapon.Name = "Knife"
- local Part0 = Instance.new("Part",Weapon)
- Part0.Name = "Handle"
- Part0.Size = Vector3.new(0.37, 0.57, 0.88)
- Part0.BrickColor = BrickColor.new("Really black")
- Part0.CanCollide = false
- Part0.Material = Enum.Material.SmoothPlastic
- local Part1 = Instance.new("Part",Weapon)
- Part1.Name = "TopKnife"
- Part1.BrickColor = BrickColor.new("Really red")
- Part1.Material = Enum.Material.Neon
- Part1.CanCollide = false
- Part1.Size = Vector3.new(0.37, 0.57, 2.07)
- local Particle = Instance.new("ParticleEmitter",Part1)
- Particle.Lifetime = NumberRange.new(0.3)
- Particle.Color = ColorSequence.new(BrickColor.new("Really red").Color)
- Particle.LockedToPart = true
- Particle.Speed = NumberRange.new(0)
- Particle.Rate = math.huge
- local Part2 = Instance.new("WedgePart",Weapon)
- Part2.Size = Vector3.new(0.36, 0.6, 1.14)
- Part2.Material = Enum.Material.Neon
- Part2.BrickColor = BrickColor.new("Really red")
- Part2.CanCollide = false
- Part2.Name = "WedgeForTopKnife"
- local weld = Instance.new("Weld",Part0)
- weld.Part0 = Part0
- weld.Part1 = Part1
- weld.C0 = CFrame.new(0, 0, 1.4406805, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- local wweld = Instance.new("Weld",Part1)
- wweld.Part0 = Part1
- wweld.Part1 = Part2
- wweld.C0 = CFrame.new(0.00241553783, -0.0223271549, 1.57767344, 1, 0, 0, 0, -0.999996781, -0.0025379993, 0, 0.0025379993, -0.999996781)
- local wwweld = Instance.new("Weld",char["Right Arm"])
- wwweld.Part0 = char["Right Arm"]
- wwweld.Part1 = Part0
- wwweld.C0 = CFrame.new(0.0283082724, -1.16673839, -0.0630893707, -0.998895764, 0, -0.0469819903, 0, 0.999999881, 0, 0.0469819903, 0, -0.998895764)
- local Part3 = Instance.new("Part",Weapon)
- Part3.CanCollide = false
- Part3.Size = Vector3.new(0.53, 0.8, 3.25)
- Part3.Transparency = 1
- Part3.Name = "Hitbox"
- local trailattach0 = Instance.new("Attachment",Part3)
- trailattach0.Position = Vector3.new(0, -0.311, -0.208)
- trailattach0.Orientation = Vector3.new(0, 0, -96.727)
- local trailattach1 = Instance.new("Attachment",Part3)
- trailattach1.Position = Vector3.new(0.111, -0.352, 1.462)
- trailattach1.Orientation = Vector3.new(0, 0, -90.415)
- local trail = Instance.new("Trail",Part3)
- trail.Name = "WeaponTrail"
- trail.Color = ColorSequence.new(BrickColor.new("Really red").Color)
- trail.Lifetime = 0.5
- trail.Attachment0 = trailattach0
- trail.Attachment1 = trailattach1
- local wwwweld = Instance.new("Weld",Part0)
- wwwweld.Part0 = Part0
- wwwweld.Part1 = Part3
- wwwweld.C0 = CFrame.new(-0.00386536121, -0.0567215681, 2.06630421, -0.998895764, 0, 0.0469819903, 0, 0.999999762, 0, -0.0469819903, 0, -0.998895764)
- plr:ClearCharacterAppearance()
- local Hair = Instance.new("Part",char)
- Hair.CanCollide = false
- local Hairm = Instance.new("FileMesh",Hair)
- Hairm.MeshId = "http://www.roblox.com/asset/?id=10871984"
- Hairm.TextureId = "http://www.roblox.com/asset/?id=10871968"
- local Hairw = Instance.new("Weld",Hair)
- Hairw.Part0 = Hair
- Hairw.Part1 = char.Head
- 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)
- CanUse = false
- issprinting = false
- function onKeyDown(Key)
- if Key:lower() == "r" then
- warn("WIP")
- end
- end
- function Sprint(Key)
- if Key == "e" then
- char.Humanoid.WalkSpeed = 60
- trail.Enabled = false
- music:Pause()
- issprinting = true
- Particle.Transparency = NumberSequence.new(1)
- for i = 1,10 do
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = v.Transparency + 1
- end
- end
- Part0.Transparency = Part0.Transparency + 1
- Part1.Transparency = Part1.Transparency + 1
- Part2.Transparency = Part2.Transparency + 1
- Part3.Transparency = Part3.Transparency + 1
- wait()
- end
- end
- end
- function StopSprinting(Key)
- if Key == "e" then
- char.Humanoid.WalkSpeed = 16
- trail.Enabled = true
- music:Resume()
- Particle.Transparency = NumberSequence.new(0)
- issprinting = false
- for i = 1,10 do
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.Transparency = v.Transparency - 1
- end
- end
- Part0.Transparency = Part0.Transparency - 1
- Part1.Transparency = Part1.Transparency - 1
- Part2.Transparency = Part2.Transparency - 1
- Part3.Transparency = Part3.Transparency - 1
- wait()
- end
- end
- end
- local naeeym2 = Instance.new("BillboardGui",char)
- naeeym2.AlwaysOnTop = true
- naeeym2.Size = UDim2.new(5,35,2,35)
- naeeym2.StudsOffset = Vector3.new(0,2,0)
- naeeym2.Adornee = hed
- naeeym2.Name = "Name"
- local tecks2 = Instance.new("TextLabel",naeeym2)
- tecks2.BackgroundTransparency = 1
- tecks2.TextScaled = true
- tecks2.BorderSizePixel = 0
- tecks2.Text = "Pooche"
- tecks2.Font = "Garamond"
- tecks2.TextSize = 30
- tecks2.TextStrokeTransparency = 0
- tecks2.TextColor3 = BrickColor.new('Really red').Color
- tecks2.TextStrokeColor3 = BrickColor.new('Really red').Color
- tecks2.Size = UDim2.new(1,0,0.5,0)
- tecks2.Parent = naeeym2
- textfag = tecks2
- tecks2.Text = "Pooche"
- function swait(num)
- if num == 0 or num == nil then
- game:service("RunService").Stepped:wait(0)
- else
- for i = 0, num do
- game:service("RunService").Stepped:wait(0)
- end
- end
- end
- coroutine.resume(coroutine.create(function()
- while textfag ~= nil do
- swait()
- textfag.Position = UDim2.new(math.random(-.2,.2),math.random(-3,3),.05,math.random(-3,3))
- textfag.Rotation = math.random(-3,3)
- end
- end))
- mouse.KeyDown:connect(Sprint)
- mouse.KeyUp:connect(StopSprinting)
- canattack = false
- local anim = Instance.new("Animation",char.Humanoid)
- anim.AnimationId = "rbxassetid://186934658"
- local ranim = char.Humanoid:LoadAnimation(anim)
- local hit = Instance.new("Sound",char)
- hit.SoundId = "rbxassetid://388826051"
- hit.Volume = 4
- Part3.Touched:connect(function(part)
- local human = part.Parent:FindFirstChildOfClass("Humanoid")
- if human and human.Parent.Name ~= char.Name and canattack then
- human.Health = 0
- hit:Play()
- end
- end)
- local sound = Instance.new("Sound",char)
- sound.SoundId = "rbxassetid://357417055"
- sound.Volume = 4
- function ATTACK()
- ranim:Play()
- sound:Play()
- canattack = true
- wait(.6)
- canattack = false
- end
- mouse.Button1Down:connect(ATTACK)
- while true do
- wait()
- if music.Parent == nil then
- music.Parent = char
- end
- for i,v in pairs(char:GetChildren()) do
- if v.ClassName == "Part" then
- v.BrickColor = skin_Color
- end
- end
- canglitch = math.random(1,15)
- if canglitch == 1 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- elseif canglitch == 2 and not issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- namemath = math.random(1,5)
- if namemath == 1 then
- tecks2.Text = "=)"
- end
- if namemath == 2 then
- tecks2.Text = "D̈̔ͥ͛̾҉̩͇̲̭̺̤̖̦i̢̢̥̦̗͈̰̜͔̦͐̂͢e͖͚̳ͨ̀̚͜"
- end
- if namemath == 3 then
- tecks2.Text = "..."
- end
- if namemath == 4 then
- tecks2.Text = "No forgiving"
- end
- if namemath == 5 then
- tecks2.Text = "Youre alone"
- end
- if namemath == 6 then
- tecks2.Text = "Trying to reach you =)"
- end
- music:Pause()
- wait()
- music:Resume()
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 3 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 4 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 5 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 6 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 7 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 8 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 9 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 10 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 11 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 12 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 13 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 14 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- if canglitch == 15 and issprinting then
- char.Head.face.Texture = "rbxassetid://340867792"
- tecks2.Text = "Pooche"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement