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 = owner
- 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
- --[[
- ROBLOX - ░▒▓█►─═ 𝙏𝙝𝙚 𝙂𝙝𝙤𝙨𝙩 ═─◄█▓▒░
- Made by Indencito (https://www.roblox.com/users/176124016/profile)
- CONTROLS: R - to Disable kill mode.
- E - to Enable kill mode.
- F - to be fast.
- g - to revert to original walkspeed
- t - to jump high
- y - to revert to original jumppower
- -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
- HOWTO: kill - touch target.
- pass walls - walk through a wall.
- 𝙀𝙉𝘿
- 𝙀𝙉𝘿.𝙀𝙉𝘿
- 𝙀𝙉𝘿.𝙀𝙉𝘿.𝙀𝙉𝘿
- --]]
- wait(4)
- local Name1=game.Workspace
- local Player=Name1["Indencito"]--You're name here
- local Name2=Player.Name
- local Halfway=0.50
- local attackin=Instance.new("BoolValue")
- attackin.Parent=Player.Head
- attackin.Value=true
- local UT=Player:FindFirstChild("Upper Torso")
- if (UT~=nil) then
- wait()
- Player:BreakJoints()
- end
- Player.Humanoid.Name=("Ghostly")
- local Shirt=Player:FindFirstChild("Shirt")
- if (Shirt~=nil) then
- Player.Shirt:Destroy()
- print("Shirt Removed")
- else
- print("Error removing Shirt")
- end
- local hmn=Player.Ghostly
- local TShirt=Player:FindFirstChild("Shirt Graphic")
- if (TShirt~=nil) then
- Player["Shirt Graphic"]:Destroy()
- print("T-Shirt Removed")
- else
- print("Error removing T-Shirt")
- end
- local Pants=Player:FindFirstChild("Pants")
- if (Pants~=nil) then
- Player.Pants:Destroy()
- print("Pants Removed")
- else
- print("Error removing Pants")
- end
- wait()
- Player.Head.BrickColor=BrickColor.new("White")
- Player.Torso.BrickColor=BrickColor.new("White")
- Player["Left Arm"].BrickColor=BrickColor.new("White")
- Player["Right Arm"].BrickColor=BrickColor.new("White")
- Player["Right Leg"].BrickColor=BrickColor.new("White")
- Player["Left Leg"].BrickColor=BrickColor.new("White")
- wait()
- Player.Torso.Transparency=Halfway
- Player.Head.Transparency=Halfway
- Player["Left Arm"].Transparency=Halfway
- Player["Right Arm"].Transparency=Halfway
- Player["Right Leg"].Transparency=Halfway
- Player["Left Leg"].Transparency=Halfway
- wait(1/5)
- local Sound=Instance.new("Sound")
- Sound.SoundId="rbxassetid://182390761"
- Sound.Volume=5
- Sound.Parent=Player.Head
- Sound.Playing=true
- Sound.Looped=true
- local v=Instance.new("Sound")
- v.Parent=Player.Head
- v.MaxDistance=40
- v.Volume=5
- v.SoundId="rbxassetid://1787893952"
- function onTouch(hit)
- local PV=hit:FindFirstChild("Humanoid")
- if (PV~=nil) then
- v.Playing=true
- wait(1)
- v.Playing=false
- end
- end
- Player.Torso.Touched:Connect(onTouch)
- Player.Ghostly.MaxHealth=("inf")
- Player.Ghostly.HealthDisplayType=("AlwaysOff")
- Player.Ghostly.WalkSpeed=100
- Player.Ghostly.JumpPower=200
- function onTouch(hit)
- local human=hit.Parent:FindFirstChild("Humanoid")
- if (human~=nil) then
- wait()
- if attackin.Value == false then
- hit.Parent:BreakJoints()
- end
- end
- end
- Player.Torso.Touched:Connect(onTouch)
- g=Instance.new("SurfaceLight")
- g.Parent=Player.Torso
- g.Angle=180
- g.Brightness=10
- g.Color=Color3.new(255,255,255)
- g.Face=("Top")
- g.Range=60
- wait(1/60)
- local load=Player:FindFirstChild("Torso")
- if (load~=nil) then
- print(Name2.." is now a spookay ghost")
- else
- print("This script will only work with r6")
- end
- function onTouch(hit)
- local block=hit.Parent:FindFirstChild("Part")
- if (block~=nil) then
- hit.CanCollide=false
- hit.Anchored=true
- wait(1)
- hit.CanCollide=true
- else
- hit.CanCollide=true
- end
- end
- Player.Torso.Touched:Connect(onTouch)
- function onTouch(hit)
- local block=hit.Parent:FindFirstChild("Part")
- if (block~=nil) then
- hit.CanCollide=false
- hit.Anchored=true
- wait(1)
- hit.CanCollide=true
- else
- hit.CanCollide=true
- end
- end
- Player.Head.Touched:Connect(onTouch)
- function onTouch(hit)
- local base=hit:FindFirstChild("Baseplate")
- if (base~=nil) then
- hit.CanCollide=true
- hit.Anchored=true
- end
- end
- Player.Torso.Touched:Connect(onTouch)
- wait(1)
- local gui=Instance.new("BillboardGui")
- gui.Parent=Player.Head
- gui.Adornee=Player.Head
- gui.MaxDistance = 100
- gui.Size=UDim2.new(3,0,3,0)
- gui.StudsOffset=Vector3.new(0.5,2,0)
- local text=Instance.new("TextLabel")
- text.Text = ("Ghost")
- text.Font = "Arcade"
- text.TextColor3 = Color3.new("White")
- text.Size=UDim2.new(1,0,1,0)
- text.FontSize = 'Size32'
- text.Position=UDim2.new(-0.125,0,-0.25,0)
- text.BackgroundTransparency = 1
- text.Parent=gui
- function onTouch(hit)
- local person=hit.Parent:FindFirstChild("Humanoid")
- if (person~=nil) then
- wait()
- if attackin.Value == false then
- text.Text=(hit.Parent.Name.." has been rekt by "..Name2)
- wait(2)
- text.Text=("Ghost")
- end
- end
- end
- Player.Torso.Touched:Connect(onTouch)
- function onDeath()
- text.Text=("RIP... "..Name2.." has died")
- game.SoundService.Sound:Destroy()
- script:Destroy()
- end
- Player.Ghostly.Died:Connect(onDeath)
- m.KeyDown:connect(function(key)
- if key:lower() == "r" then
- attackin.Value=false
- end
- end)
- m.KeyDown:connect(function(key)
- if key:lower() == "e" then
- attackin.Value=true
- end
- end)
- m.KeyDown:connect(function(key)
- if key:lower() == "f" then
- hmn.WalkSpeed=100
- end
- end)
- m.KeyDown:connect(function(key)
- if key:lower() == "g" then
- hmn.WalkSpeed=16
- end
- end)
- m.KeyDown:connect(function(key)
- if key:lower() == "t" then
- hmn.JumpPower=200
- end
- end)
- m.KeyDown:connect(function(key)
- if key:lower() == "y" then
- hmn.JumpPower=50
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement