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 print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 6 | ||
| 7 | --// CREATED BY 1x1x1x1IAMbck \\-- | |
| 8 | --\\ THX TO GOODGUYAIDEN FOR HELPING //-- | |
| 9 | ||
| 10 | --// Main | |
| 11 | ||
| 12 | player = game:GetService("Players").LocalPlayer
| |
| 13 | chara = player.Character | |
| 14 | chara.Humanoid.MaxHealth = 1 | |
| 15 | chara.Humanoid.Health = 1 | |
| 16 | debby = game.Debris | |
| 17 | wait(1) | |
| 18 | plr = game.Players.LocalPlayer | |
| 19 | char = plr.Character | |
| 20 | mouse = plr:GetMouse() | |
| 21 | whitecolor = Color3.new(1,1,1) | |
| 22 | epicmode = false | |
| 23 | normal = true | |
| 24 | local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/0,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(0/0,0/0,0/0))}
| |
| 25 | local Player = game.Players.LocalPlayer | |
| 26 | local Character = Player.Character | |
| 27 | local torso = Character.Torso | |
| 28 | local hed = Character.Head | |
| 29 | local p = game.Players.LocalPlayer | |
| 30 | local char = p.Character | |
| 31 | ||
| 32 | --// Short keys | |
| 33 | ||
| 34 | RArm = Character["Right Arm"] | |
| 35 | LArm = Character["Left Arm"] | |
| 36 | RLeg = Character["Right Leg"] | |
| 37 | LLeg = Character["Left Leg"] | |
| 38 | ||
| 39 | --// Sounds | |
| 40 | ||
| 41 | local trumpet = Instance.new("Sound",char.Torso)
| |
| 42 | trumpet.SoundId = "rbxassetid://885599310" | |
| 43 | trumpet.Volume = 4 | |
| 44 | trumpet.Looped = false | |
| 45 | ||
| 46 | --// Controls | |
| 47 | ||
| 48 | --// Controls \\-- | |
| 49 | ||
| 50 | if 1 then | |
| 51 | local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
| |
| 52 | local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
| |
| 53 | Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0) | |
| 54 | local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0)
| |
| 55 | idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new() | |
| 56 | idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1) | |
| 57 | idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end) | |
| 58 | local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0
| |
| 59 | normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1) | |
| 60 | normal.TextXAlignment="Left"normal.TextYAlignment="Top" | |
| 61 | normal.Text=[[Hey kiddo... Wanna hear some jokes? | |
| 62 | ---------------------------------- | |
| 63 | *Q : Puns | |
| 64 | *E : Puns | |
| 65 | *R : Puns | |
| 66 | *F : Teleport | |
| 67 | ||
| 68 | ||
| 69 | Created By 1x1x1x1IAMbck | |
| 70 | Help by GoodGuyAiden | |
| 71 | ]] | |
| 72 | spawn(function() | |
| 73 | while game:service'RunService'.RenderStepped:wait()do | |
| 74 | Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1) | |
| 75 | end end) | |
| 76 | end | |
| 77 | -------------------------------------------------------- | |
| 78 | ||
| 79 | ||
| 80 | --// Destroy and Grab Clothes | |
| 81 | ||
| 82 | for i,v in pairs(char:GetChildren()) do | |
| 83 | if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then | |
| 84 | v:Destroy() | |
| 85 | end | |
| 86 | end | |
| 87 | local shirt = Instance.new("Shirt",char)
| |
| 88 | shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=302011210" | |
| 89 | local pants = Instance.new("Pants",char)
| |
| 90 | pants.PantsTemplate = "http://www.roblox.com/asset/?id=305718140" | |
| 91 | local bdycolors = char["Body Colors"] | |
| 92 | bdycolors.HeadColor3 = whitecolor | |
| 93 | bdycolors.LeftArmColor3 = whitecolor | |
| 94 | bdycolors.LeftLegColor3 = whitecolor | |
| 95 | bdycolors.RightArmColor3 = whitecolor | |
| 96 | bdycolors.RightLegColor3 = whitecolor | |
| 97 | bdycolors.TorsoColor3 = whitecolor | |
| 98 | for i,v in pairs(char:GetChildren()) do | |
| 99 | if v.ClassName == "Hat" or v.ClassName == "Accessory" then | |
| 100 | v:Destroy() | |
| 101 | end | |
| 102 | end | |
| 103 | ||
| 104 | --// Face | |
| 105 | char.Head.face.Texture = "http://www.roblox.com/asset/?id=1099475357" | |
| 106 | ||
| 107 | ||
| 108 | --// Clothes creation | |
| 109 | ||
| 110 | local Hair = char:FindFirstChild("Hair_F") or Instance.new("Hat")
| |
| 111 | Hair.AttachmentPos = Vector3.new(0, 0.33, 0) | |
| 112 | Hair.Name = "Hair_F" | |
| 113 | local HairHandle = Hair:FindFirstChild("Handle") or Instance.new("Part", Hair)
| |
| 114 | if HairHandle.Name ~= "Handle" then | |
| 115 | HairHandle.Size = Vector3.new(1,1,1) | |
| 116 | end | |
| 117 | HairHandle.BottomSurface = 0 | |
| 118 | HairHandle.Name = "Handle" | |
| 119 | HairHandle.TopSurface = 0 | |
| 120 | HairHandle.Locked = 1 | |
| 121 | local Mesh = Hair:FindFirstChild("Mesh") or Instance.new("SpecialMesh", HairHandle)
| |
| 122 | Mesh.TextureId = "" | |
| 123 | Mesh.MeshId = "http://www.roblox.com/asset/?id=430073345" | |
| 124 | Mesh.TextureId = "http://www.roblox.com/asset/?id=430073362" | |
| 125 | Mesh.Scale = Vector3.new(1.1,1.1,1.1) | |
| 126 | Mesh.Offset = Vector3.new(0,0,0) | |
| 127 | Hair.Parent = Character | |
| 128 | HairHandle.BrickColor = BrickColor.new("Really black")
| |
| 129 | HairHandle.Material = Enum.Material.Granite | |
| 130 | ||
| 131 | local tor = Instance.new("CharacterMesh")
| |
| 132 | tor.Parent = Character | |
| 133 | tor.Name = "Bones" | |
| 134 | tor.BodyPart = "Torso" | |
| 135 | tor.MeshId = "430072717" | |
| 136 | tor.OverlayTextureId = "430072723" | |
| 137 | ||
| 138 | local tor = Instance.new("CharacterMesh")
| |
| 139 | tor.Parent = Character | |
| 140 | tor.Name = "Bones" | |
| 141 | tor.BodyPart = "LeftLeg" | |
| 142 | tor.MeshId = "430069778" | |
| 143 | tor.OverlayTextureId = "430069795" | |
| 144 | ||
| 145 | local tor = Instance.new("CharacterMesh")
| |
| 146 | tor.Parent = Character | |
| 147 | tor.Name = "Bones" | |
| 148 | tor.BodyPart = "RightLeg" | |
| 149 | tor.MeshId = "430070587" | |
| 150 | tor.OverlayTextureId = "430070605" | |
| 151 | ||
| 152 | LArm.Transparency = 1 | |
| 153 | RArm.Transparency = 1 | |
| 154 | hed.Transparency = 1 | |
| 155 | ||
| 156 | ||
| 157 | ||
| 158 | New = function(Object, Parent, Name, Data) | |
| 159 | local Object = Instance.new(Object) | |
| 160 | for Index, Value in pairs(Data or {}) do
| |
| 161 | Object[Index] = Value | |
| 162 | end | |
| 163 | Object.Parent = Parent | |
| 164 | Object.Name = Name | |
| 165 | return Object | |
| 166 | end | |
| 167 | ||
| 168 | FakeHead = New("Model",chara,"FakeHead",{})
| |
| 169 | MainPart = New("Part",FakeHead,"MainPart",{BrickColor = BrickColor.new("Institutional white"),Transparency = 1,Size = Vector3.new(2, 1, 1),CFrame = CFrame.new(18, 4.50000381, -6.5, -1, 0, 0, 0, 1, 0, 0, 0, -1),CanCollide = false,Color = Color3.new(0.972549, 0.972549, 0.972549),})
| |
| 170 | Mesh = New("SpecialMesh",MainPart,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
| |
| 171 | Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara.Head,C0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),C1 = CFrame.new(0, 3.81469727e-006, 0, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
| |
| 172 | ||
| 173 | --// Chat \\-- | |
| 174 | ||
| 175 | local talksound = Instance.new("Sound",char.Torso)
| |
| 176 | talksound.SoundId = "rbxassetid://928210219" | |
| 177 | talksound.Volume = 4 | |
| 178 | function swait(num) | |
| 179 | if num==0 or num==nil then | |
| 180 | game:service'RunService'.Stepped:wait(0) | |
| 181 | else | |
| 182 | for i=0,num do | |
| 183 | game:service'RunService'.Stepped:wait(0) | |
| 184 | end | |
| 185 | end | |
| 186 | end | |
| 187 | ||
| 188 | ||
| 189 | function chatfunc(text) | |
| 190 | local chat = coroutine.wrap(function() | |
| 191 | if char:FindFirstChild("TalkingBillBoard") ~= nil then
| |
| 192 | char:FindFirstChild("TalkingBillBoard"):Destroy()
| |
| 193 | end | |
| 194 | local naeeym2 = Instance.new("BillboardGui",char)
| |
| 195 | naeeym2.Size = UDim2.new(0,100,0,40) | |
| 196 | naeeym2.StudsOffset = Vector3.new(0,3,0) | |
| 197 | naeeym2.Adornee = char.Head | |
| 198 | naeeym2.Name = "TalkingBillBoard" | |
| 199 | local tecks2 = Instance.new("TextLabel",naeeym2)
| |
| 200 | tecks2.BackgroundTransparency = 1 | |
| 201 | tecks2.BorderSizePixel = 0 | |
| 202 | tecks2.Text = "" | |
| 203 | tecks2.Font = "Fantasy" | |
| 204 | tecks2.TextSize = 30 | |
| 205 | tecks2.TextStrokeTransparency = 0 | |
| 206 | tecks2.TextColor3 = Color3.new(.6,0,0) | |
| 207 | tecks2.TextStrokeColor3 = Color3.new(0,0,0) | |
| 208 | tecks2.Size = UDim2.new(1,0,0.5,0) | |
| 209 | local tecks3 = Instance.new("TextLabel",naeeym2)
| |
| 210 | tecks3.BackgroundTransparency = 1 | |
| 211 | tecks3.BorderSizePixel = 0 | |
| 212 | tecks3.Text = "" | |
| 213 | tecks3.Font = "Fantasy" | |
| 214 | tecks3.TextSize = 30 | |
| 215 | tecks3.TextStrokeTransparency = 0 | |
| 216 | tecks3.TextColor3 = Color3.new(0,0,0) | |
| 217 | tecks3.TextStrokeColor3 = Color3.new(1,1,1) | |
| 218 | tecks3.Size = UDim2.new(1,0,0.5,0) | |
| 219 | for i = 1,string.len(text),1 do | |
| 220 | tecks2.Text = string.sub(text,1,i) | |
| 221 | tecks3.Text = string.sub(text,1,i) | |
| 222 | talksound:Play() | |
| 223 | wait(0.01) | |
| 224 | end | |
| 225 | wait(2) | |
| 226 | for i = 1, 50 do | |
| 227 | swait() | |
| 228 | tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 229 | tecks2.Rotation = tecks2.Rotation - .8 | |
| 230 | tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 231 | tecks2.TextTransparency = tecks2.TextTransparency + .04 | |
| 232 | tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5)) | |
| 233 | tecks3.Rotation = tecks2.Rotation + .8 | |
| 234 | tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04 | |
| 235 | tecks3.TextTransparency = tecks2.TextTransparency + .04 | |
| 236 | end | |
| 237 | naeeym2:Destroy() | |
| 238 | end) | |
| 239 | chat() | |
| 240 | end | |
| 241 | function onChatted(msg) | |
| 242 | chatfunc(msg) | |
| 243 | end | |
| 244 | wait(0.5) | |
| 245 | chatfunc("Hey kiddo...")
| |
| 246 | wait(1) | |
| 247 | chatfunc("Wanna hear a joke?")
| |
| 248 | plr.Chatted:connect(onChatted) | |
| 249 | ||
| 250 | ||
| 251 | --// Functions | |
| 252 | ||
| 253 | local root = char.HumanoidRootPart | |
| 254 | function teleport(key) | |
| 255 | key = key:lower() | |
| 256 | if key == "f" and not teleportlimit then | |
| 257 | root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position) | |
| 258 | wait(0) | |
| 259 | end | |
| 260 | end | |
| 261 | mouse.KeyDown:connect(teleport) | |
| 262 | ||
| 263 | function pun1(A) | |
| 264 | if A == "q" then | |
| 265 | local chatmath = math.random(1,3) | |
| 266 | if chatmath == 1 then | |
| 267 | chatfunc("Why can't skeletons play church music?")
| |
| 268 | wait(5) | |
| 269 | chatfunc("Because they have no organs.")
| |
| 270 | end | |
| 271 | if chatmath == 2 then | |
| 272 | chatfunc("Why are skeletons so calm?")
| |
| 273 | wait(5) | |
| 274 | chatfunc("Because nothing gets under their skin!")
| |
| 275 | end | |
| 276 | if chatmath == 3 then | |
| 277 | chatfunc("What does a skeleton order at a restaurant?")
| |
| 278 | wait(5) | |
| 279 | chatfunc("SPARERIBS")
| |
| 280 | end | |
| 281 | end | |
| 282 | end | |
| 283 | mouse.KeyDown:connect(pun1) | |
| 284 | ||
| 285 | function pun2(AA) | |
| 286 | if AA == "e" then | |
| 287 | local chatmath = math.random(1,3) | |
| 288 | if chatmath == 1 then | |
| 289 | chatfunc("My favorite instrument?")
| |
| 290 | wait(5) | |
| 291 | chatfunc("the TromBONE, of course.")
| |
| 292 | wait(0.5) | |
| 293 | trumpet:Play() | |
| 294 | end | |
| 295 | if chatmath == 2 then | |
| 296 | chatfunc("What do skeletons hate the most about wind?")
| |
| 297 | wait(5) | |
| 298 | chatfunc("Nothing, it goes right through them.")
| |
| 299 | end | |
| 300 | if chatmath == 3 then | |
| 301 | chatfunc("Why don't skeletons fight each other?")
| |
| 302 | wait(5) | |
| 303 | chatfunc("They don't have the guts.")
| |
| 304 | end | |
| 305 | end | |
| 306 | end | |
| 307 | mouse.KeyDown:connect(pun2) | |
| 308 | ||
| 309 | function pun3(AAAA) | |
| 310 | if AAAA == "r" then | |
| 311 | local chatmath = math.random(1,3) | |
| 312 | if chatmath == 1 then | |
| 313 | chatfunc("I'm so lazy,")
| |
| 314 | wait(5) | |
| 315 | chatfunc("I'm bone idle!")
| |
| 316 | end | |
| 317 | if chatmath == 2 then | |
| 318 | chatfunc("Why did the skeleton want a friend?")
| |
| 319 | wait(5) | |
| 320 | chatfunc("Because she was feeling bonely.")
| |
| 321 | end | |
| 322 | if chatmath == 3 then | |
| 323 | chatfunc("What does a skeleton tile his roof with?")
| |
| 324 | wait(5) | |
| 325 | chatfunc("Shin-gles!")
| |
| 326 | end | |
| 327 | end | |
| 328 | end | |
| 329 | mouse.KeyDown:connect(pun3) | |
| 330 | ||
| 331 | --// END? \\-- |