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
- --[Script Kiddie]--
- --Created by alpha / bop#0002, whitelisted for the kiddies
- --[Varibles]--
- local character = game.Workspace:WaitForChild("aIphabox")
- --[Tag]--
- local Tag = Instance.new("BillboardGui")
- Tag.LightInfluence = 0
- Tag.Name = "Tag"
- Tag.Size = UDim2.new(10, 0, 2, 0)
- Tag.StudsOffset = Vector3.new(0, 2, 0)
- Tag.Parent = character:WaitForChild("Head")
- local Text = Instance.new("TextLabel")
- Text.BackgroundTransparency = 1
- Text.Name = "Text"
- Text.Size = UDim2.new(1, 0, 1, 0)
- Text.Font = Enum.Font.Cartoon
- Text.Text = ""
- Text.TextColor3 = Color3.fromRGB(255, 226, 0)
- Text.TextScaled = true
- Text.TextStrokeColor3 = Color3.fromRGB(0, 136, 255)
- Text.TextStrokeTransparency = 0
- Text.Parent = Tag
- --[Open speech]--
- wait(3)
- local Line = "scripted by alpha"
- for i = 1, #Line do
- Text.Text = string.sub(Line, 1, i)
- wait()
- end
- wait(1)
- for i = #Line, 0, -1 do
- Text.Text = string.sub(Line, 1, i)
- wait()
- end
- wait(1)
- local Line = "script kiddie"
- for i = 1, #Line do
- Text.Text = string.sub(Line, 1, i)
- wait()
- end
- --[Character]--
- character.Shirt.ShirtTemplate = "rbxassetid://553865259"
- character.Pants.PantsTemplate = "rbxassetid://454930932"
- local Accessorys = character:GetChildren()
- for i = 1, #Accessorys do
- local Accessory = Accessorys[i]
- if Accessory:IsA("Accessory") then
- Accessory:Destroy()
- end
- if Accessory:IsA("ShirtGraphic") then
- Accessory:Destroy()
- end
- end
- local Cap = Instance.new("Accessory")
- Cap.Parent = character
- Cap.Name = "Cap"
- local CapPart = Instance.new("Part")
- CapPart.Parent = Cap
- CapPart.Name = "Handle"
- local Attatchment = Instance.new("Attachment")
- Attatchment.Name = "HatAttachment"
- Attatchment.Parent = CapPart
- Attatchment.Position = Vector3.new(0, 0.4, 0)
- local Mesh = Instance.new("SpecialMesh")
- Mesh.Parent = CapPart
- Mesh.MeshId = "http://www.roblox.com/asset/?id=1028604"
- Mesh.Scale = Vector3.new(1.05, 1.05, 1.05)
- Mesh.TextureId = "http://www.roblox.com/asset/?id=1028605"
- Mesh.VertexColor = Vector3.new(1, 1, 1)
- Mesh.Offset = Vector3.new(0, 0.65, -0.15)
- local Weld = Instance.new("Weld")
- Weld.Part0 = CapPart
- Weld.Part1 = character.Head
- Weld.Parent = CapPart
- local BatPart = Instance.new("Part")
- BatPart.Name = "Bat"
- BatPart.Parent = character
- local Weld2 = Instance.new("Weld")
- Weld2.Part0 = BatPart
- Weld2.Part1 = character["Right Arm"]
- Weld2.Parent = BatPart
- Weld2.C0 = Weld2.C0 * CFrame.Angles(math.rad(180), 0, 0)
- local Mesh2 = Instance.new("SpecialMesh")
- Mesh2.Parent = BatPart
- Mesh2.MeshId = "http://www.roblox.com/asset/?id=54983181"
- Mesh2.Scale = Vector3.new(3, 3, 1.8)
- Mesh2.TextureId = "http://www.roblox.com/asset/?id=54983107"
- Mesh2.VertexColor = Vector3.new(1, 1, 1)
- Mesh2.Offset = Vector3.new(0, 0.65, 1.4)
- Mouse.Button1Down:Connect(function()
- print("yeet")
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement