Advertisement
samuelrichter66

sanes

May 28th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.13 KB | None | 0 0
  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
  6. print("FE Compatibility code V2 by Mokiros")
  7. local RealPlayer = RealPlayer
  8. script.Parent = RealPlayer.Character
  9.  
  10. --Fake event to make stuff like Mouse.KeyDown work
  11. local Disconnect_Function = function(this)
  12. this[1].Functions[this[2]] = nil
  13. end
  14. local Disconnect_Metatable = {__index={disconnect=Disconnect_Function,Disconnect=Disconnect_Function}}
  15. local FakeEvent_Metatable = {__index={
  16. Connect = function(this,f)
  17. local i = tostring(math.random(0,10000))
  18. while this.Functions[i] do
  19. i = tostring(math.random(0,10000))
  20. end
  21. this.Functions[i] = f
  22. return setmetatable({this,i},Disconnect_Metatable)
  23. end
  24. }}
  25. FakeEvent_Metatable.__index.connect = FakeEvent_Metatable.__index.Connect
  26. local function fakeEvent()
  27. return setmetatable({Functions={}},FakeEvent_Metatable)
  28. end
  29.  
  30. --Creating fake input objects with fake variables
  31. local FakeMouse = {Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
  32. FakeMouse.keyUp = FakeMouse.KeyUp
  33. FakeMouse.keyDown = FakeMouse.KeyDown
  34. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  35. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  36. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  37. end}
  38. --Merged 2 functions into one by checking amount of arguments
  39. CAS.UnbindAction = CAS.BindAction
  40.  
  41. --This function will trigger the events that have been :Connect()'ed
  42. local function TriggerEvent(self,ev,...)
  43. for _,f in pairs(self[ev].Functions) do
  44. f(...)
  45. end
  46. end
  47. FakeMouse.TriggerEvent = TriggerEvent
  48. UIS.TriggerEvent = TriggerEvent
  49.  
  50. --Client communication
  51. local Event = Instance.new("RemoteEvent")
  52. Event.Name = "UserInput_Event"
  53. Event.OnServerEvent:Connect(function(plr,io)
  54. if plr~=RealPlayer then return end
  55. FakeMouse.Target = io.Target
  56. FakeMouse.Hit = io.Hit
  57. if not io.isMouse then
  58. local b = io.UserInputState == Enum.UserInputState.Begin
  59. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  60. return FakeMouse:TriggerEvent(b and "Button1Down" or "Button1Up")
  61. end
  62. if io.UserInputType == Enum.UserInputType.MouseButton2 then
  63. return FakeMouse:TriggerEvent(b and "Button2Down" or "Button2Up")
  64. end
  65. for _,t in pairs(CAS.Actions) do
  66. for _,k in pairs(t.Keys) do
  67. if k==io.KeyCode then
  68. t.Function(t.Name,io.UserInputState,io)
  69. end
  70. end
  71. end
  72. FakeMouse:TriggerEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  73. UIS:TriggerEvent(b and "InputBegan" or "InputEnded",io,false)
  74. end
  75. end)
  76. Event.Parent = NLS([==[local Event = script:WaitForChild("UserInput_Event")
  77. local Mouse = owner:GetMouse()
  78. local UIS = game:GetService("UserInputService")
  79. local input = function(io,RobloxHandled)
  80. if RobloxHandled then return end
  81. --Since InputObject is a client-side instance, we create and pass table instead
  82. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  83. end
  84. UIS.InputBegan:Connect(input)
  85. UIS.InputEnded:Connect(input)
  86.  
  87. local h,t
  88. --Give the server mouse data every second frame, but only if the values changed
  89. --If player is not moving their mouse, client won't fire events
  90. local HB = game:GetService("RunService").Heartbeat
  91. while true do
  92. if h~=Mouse.Hit or t~=Mouse.Target then
  93. h,t=Mouse.Hit,Mouse.Target
  94. Event:FireServer({isMouse=true,Target=t,Hit=h})
  95. end
  96. --Wait 2 frames
  97. for i=1,2 do
  98. HB:Wait()
  99. end
  100. end]==],script)
  101.  
  102. ----Sandboxed game object that allows the usage of client-side methods and services
  103. --Real game object
  104. local RealGame = game
  105.  
  106. --Metatable for fake service
  107. local FakeService_Metatable = {
  108. __index = function(self,k)
  109. local s = rawget(self,"_RealService")
  110. if s then
  111. return typeof(s[k])=="function"
  112. and function(_,...)return s[k](s,...)end or s[k]
  113. end
  114. end,
  115. __newindex = function(self,k,v)
  116. local s = rawget(self,"_RealService")
  117. if s then s[k]=v end
  118. end
  119. }
  120. local function FakeService(t,RealService)
  121. t._RealService = typeof(RealService)=="string" and RealGame:GetService(RealService) or RealService
  122. return setmetatable(t,FakeService_Metatable)
  123. end
  124.  
  125. --Fake game object
  126. local FakeGame = {
  127. GetService = function(self,s)
  128. return rawget(self,s) or RealGame:GetService(s)
  129. end,
  130. Players = FakeService({
  131. LocalPlayer = FakeService({GetMouse=function(self)return FakeMouse end},Player)
  132. },"Players"),
  133. UserInputService = FakeService(UIS,"UserInputService"),
  134. ContextActionService = FakeService(CAS,"ContextActionService"),
  135. RunService = FakeService({
  136. _btrs = {},
  137. RenderStepped = RealGame:GetService("RunService").Heartbeat,
  138. BindToRenderStep = function(self,name,_,fun)
  139. self._btrs[name] = self.Heartbeat:Connect(fun)
  140. end,
  141. UnbindFromRenderStep = function(self,name)
  142. self._btrs[name]:Disconnect()
  143. end,
  144. },"RunService")
  145. }
  146. rawset(FakeGame.Players,"localPlayer",FakeGame.Players.LocalPlayer)
  147. FakeGame.service = FakeGame.GetService
  148. FakeService(FakeGame,game)
  149. --Changing owner to fake player object to support owner:GetMouse()
  150. game,owner = FakeGame,FakeGame.Players.LocalPlayer
  151. end
  152.  
  153.  
  154. --// CREATED BY 1x1x1x1IAMbck \\--
  155. --\\ THX TO GOODGUYAIDEN FOR HELPING //--
  156.  
  157. --// Main
  158.  
  159. player = game:GetService("Players").LocalPlayer
  160. chara = player.Character
  161. chara.Humanoid.MaxHealth = 1
  162. chara.Humanoid.Health = 1
  163. debby = game.Debris
  164. wait(1)
  165. plr = game.Players.LocalPlayer
  166. char = plr.Character
  167. mouse = plr:GetMouse()
  168. whitecolor = Color3.new(1,1,1)
  169. epicmode = false
  170. normal = true
  171. local ColorArray = {ColorSequenceKeypoint.new(0, Color3.new(0/0,0/255,0/255)),ColorSequenceKeypoint.new(1, Color3.new(0/0,0/0,0/0))}
  172. local Player = game.Players.LocalPlayer
  173. local Character = Player.Character
  174. local torso = Character.Torso
  175. local hed = Character.Head
  176. local p = game.Players.LocalPlayer
  177. local char = p.Character
  178.  
  179. --// Short keys
  180.  
  181. RArm = Character["Right Arm"]
  182. LArm = Character["Left Arm"]
  183. RLeg = Character["Right Leg"]
  184. LLeg = Character["Left Leg"]
  185.  
  186. --// Sounds
  187.  
  188. local trumpet = Instance.new("Sound",char.Torso)
  189. trumpet.SoundId = "rbxassetid://885599310"
  190. trumpet.Volume = 4
  191. trumpet.Looped = false
  192.  
  193. --// Controls
  194.  
  195. --// Controls \\--
  196.  
  197. if 1 then
  198. local MovesGui=Instance.new("ScreenGui",p:FindFirstChildOfClass("PlayerGui"))
  199. local Frm=Instance.new("Frame",MovesGui)Frm.BackgroundColor3=Color3.new()Frm.BorderSizePixel=0
  200. Frm.BackgroundTransparency=.5 Frm.Size=UDim2.new(.3,0,.5,0)local Show=true Frm.Position=UDim2.new(.7,0,.5,0)
  201. local idk=Instance.new("TextButton",Frm)idk.Size=UDim2.new(.5,0,.1,0)idk.Position=UDim2.new(-.5,0,.8,0)
  202. idk.Text="Hide"idk.TextStrokeTransparency=0 idk.BackgroundTransparency=.5 idk.BackgroundColor3=Color3.new()
  203. idk.BorderSizePixel=0 idk.TextColor3=Color3.new(1,1,1)
  204. idk.MouseButton1Click:connect(function()Show=not Show idk.Text=Show and "Hide"or"Show"end)
  205. local normal=Instance.new("TextLabel",Frm)normal.Size=UDim2.new(1,0,1,0)normal.TextStrokeTransparency=0
  206. normal.BackgroundTransparency=1 normal.TextColor3=Color3.new(1,1,1)
  207. normal.TextXAlignment="Left"normal.TextYAlignment="Top"
  208. normal.Text=[[Hey kiddo... Wanna hear some jokes?
  209. ----------------------------------
  210. *Q : Puns
  211. *E : Puns
  212. *R : Puns
  213. *F : Teleport
  214.  
  215.  
  216. Created By 1x1x1x1IAMbck
  217. Help by GoodGuyAiden
  218. ]]
  219. spawn(function()
  220. while game:service'RunService'.RenderStepped:wait()do
  221. Frm.Position=Frm.Position:lerp(UDim2.new(not Show and 1 or .7,0,.5,0),.1)
  222. end end)
  223. end
  224. --------------------------------------------------------
  225.  
  226.  
  227. --// Destroy and Grab Clothes
  228.  
  229. for i,v in pairs(char:GetChildren()) do
  230. if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "ShirtGraphic" then
  231. v:Destroy()
  232. end
  233. end
  234. local shirt = Instance.new("Shirt",char)
  235. shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=302011210"
  236. local pants = Instance.new("Pants",char)
  237. pants.PantsTemplate = "http://www.roblox.com/asset/?id=305718140"
  238. local bdycolors = char["Body Colors"]
  239. bdycolors.HeadColor3 = whitecolor
  240. bdycolors.LeftArmColor3 = whitecolor
  241. bdycolors.LeftLegColor3 = whitecolor
  242. bdycolors.RightArmColor3 = whitecolor
  243. bdycolors.RightLegColor3 = whitecolor
  244. bdycolors.TorsoColor3 = whitecolor
  245. for i,v in pairs(char:GetChildren()) do
  246. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  247. v:Destroy()
  248. end
  249. end
  250.  
  251. --// Face
  252. char.Head.face.Texture = "http://www.roblox.com/asset/?id=1099475357"
  253.  
  254.  
  255. --// Clothes creation
  256.  
  257. local Hair = char:FindFirstChild("Hair_F") or Instance.new("Hat")
  258. Hair.AttachmentPos = Vector3.new(0, 0.33, 0)
  259. Hair.Name = "Hair_F"
  260. local HairHandle = Hair:FindFirstChild("Handle") or Instance.new("Part", Hair)
  261. if HairHandle.Name ~= "Handle" then
  262. HairHandle.Size = Vector3.new(1,1,1)
  263. end
  264. HairHandle.BottomSurface = 0
  265. HairHandle.Name = "Handle"
  266. HairHandle.TopSurface = 0
  267. HairHandle.Locked = 1
  268. local Mesh = Hair:FindFirstChild("Mesh") or Instance.new("SpecialMesh", HairHandle)
  269. Mesh.TextureId = ""
  270. Mesh.MeshId = "http://www.roblox.com/asset/?id=430073345"
  271. Mesh.TextureId = "http://www.roblox.com/asset/?id=430073362"
  272. Mesh.Scale = Vector3.new(1.1,1.1,1.1)
  273. Mesh.Offset = Vector3.new(0,0,0)
  274. Hair.Parent = Character
  275. HairHandle.BrickColor = BrickColor.new("Really black")
  276. HairHandle.Material = Enum.Material.Granite
  277.  
  278. local tor = Instance.new("CharacterMesh")
  279. tor.Parent = Character
  280. tor.Name = "Bones"
  281. tor.BodyPart = "Torso"
  282. tor.MeshId = "430072717"
  283. tor.OverlayTextureId = "430072723"
  284.  
  285. local tor = Instance.new("CharacterMesh")
  286. tor.Parent = Character
  287. tor.Name = "Bones"
  288. tor.BodyPart = "LeftLeg"
  289. tor.MeshId = "430069778"
  290. tor.OverlayTextureId = "430069795"
  291.  
  292. local tor = Instance.new("CharacterMesh")
  293. tor.Parent = Character
  294. tor.Name = "Bones"
  295. tor.BodyPart = "RightLeg"
  296. tor.MeshId = "430070587"
  297. tor.OverlayTextureId = "430070605"
  298.  
  299. LArm.Transparency = 1
  300. RArm.Transparency = 1
  301. hed.Transparency = 1
  302.  
  303.  
  304.  
  305. New = function(Object, Parent, Name, Data)
  306. local Object = Instance.new(Object)
  307. for Index, Value in pairs(Data or {}) do
  308. Object[Index] = Value
  309. end
  310. Object.Parent = Parent
  311. Object.Name = Name
  312. return Object
  313. end
  314.  
  315. FakeHead = New("Model",chara,"FakeHead",{})
  316. 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),})
  317. Mesh = New("SpecialMesh",MainPart,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
  318. 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),})
  319.  
  320. --// Chat \\--
  321.  
  322. local talksound = Instance.new("Sound",char.Torso)
  323. talksound.SoundId = "rbxassetid://928210219"
  324. talksound.Volume = 4
  325. function swait(num)
  326. if num==0 or num==nil then
  327. game:service'RunService'.Stepped:wait(0)
  328. else
  329. for i=0,num do
  330. game:service'RunService'.Stepped:wait(0)
  331. end
  332. end
  333. end
  334.  
  335.  
  336. function chatfunc(text)
  337. local chat = coroutine.wrap(function()
  338. if char:FindFirstChild("TalkingBillBoard") ~= nil then
  339. char:FindFirstChild("TalkingBillBoard"):Destroy()
  340. end
  341. local naeeym2 = Instance.new("BillboardGui",char)
  342. naeeym2.Size = UDim2.new(0,100,0,40)
  343. naeeym2.StudsOffset = Vector3.new(0,3,0)
  344. naeeym2.Adornee = char.Head
  345. naeeym2.Name = "TalkingBillBoard"
  346. local tecks2 = Instance.new("TextLabel",naeeym2)
  347. tecks2.BackgroundTransparency = 1
  348. tecks2.BorderSizePixel = 0
  349. tecks2.Text = ""
  350. tecks2.Font = "Fantasy"
  351. tecks2.TextSize = 30
  352. tecks2.TextStrokeTransparency = 0
  353. tecks2.TextColor3 = Color3.new(.6,0,0)
  354. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  355. tecks2.Size = UDim2.new(1,0,0.5,0)
  356. local tecks3 = Instance.new("TextLabel",naeeym2)
  357. tecks3.BackgroundTransparency = 1
  358. tecks3.BorderSizePixel = 0
  359. tecks3.Text = ""
  360. tecks3.Font = "Fantasy"
  361. tecks3.TextSize = 30
  362. tecks3.TextStrokeTransparency = 0
  363. tecks3.TextColor3 = Color3.new(0,0,0)
  364. tecks3.TextStrokeColor3 = Color3.new(1,1,1)
  365. tecks3.Size = UDim2.new(1,0,0.5,0)
  366. for i = 1,string.len(text),1 do
  367. tecks2.Text = string.sub(text,1,i)
  368. tecks3.Text = string.sub(text,1,i)
  369. talksound:Play()
  370. wait(0.01)
  371. end
  372. wait(2)
  373. for i = 1, 50 do
  374. swait()
  375. tecks2.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  376. tecks2.Rotation = tecks2.Rotation - .8
  377. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  378. tecks2.TextTransparency = tecks2.TextTransparency + .04
  379. tecks3.Position = tecks2.Position - UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
  380. tecks3.Rotation = tecks2.Rotation + .8
  381. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  382. tecks3.TextTransparency = tecks2.TextTransparency + .04
  383. end
  384. naeeym2:Destroy()
  385. end)
  386. chat()
  387. end
  388. function onChatted(msg)
  389. chatfunc(msg)
  390. end
  391. wait(0.5)
  392. chatfunc("Hey kiddo...")
  393. wait(1)
  394. chatfunc("Wanna hear a joke?")
  395. plr.Chatted:connect(onChatted)
  396.  
  397.  
  398. --// Functions
  399.  
  400. local root = char.HumanoidRootPart
  401. function teleport(key)
  402. key = key:lower()
  403. if key == "f" and not teleportlimit then
  404. root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position)
  405. wait(0)
  406. end
  407. end
  408. mouse.KeyDown:connect(teleport)
  409.  
  410. function pun1(A)
  411. if A == "q" then
  412. local chatmath = math.random(1,3)
  413. if chatmath == 1 then
  414. chatfunc("Why can't skeletons play church music?")
  415. wait(5)
  416. chatfunc("Because they have no organs.")
  417. end
  418. if chatmath == 2 then
  419. chatfunc("Why are skeletons so calm?")
  420. wait(5)
  421. chatfunc("Because nothing gets under their skin!")
  422. end
  423. if chatmath == 3 then
  424. chatfunc("What does a skeleton order at a restaurant?")
  425. wait(5)
  426. chatfunc("SPARERIBS")
  427. end
  428. end
  429. end
  430. mouse.KeyDown:connect(pun1)
  431.  
  432. function pun2(AA)
  433. if AA == "e" then
  434. local chatmath = math.random(1,3)
  435. if chatmath == 1 then
  436. chatfunc("My favorite instrument?")
  437. wait(5)
  438. chatfunc("the TromBONE, of course.")
  439. wait(0.5)
  440. trumpet:Play()
  441. end
  442. if chatmath == 2 then
  443. chatfunc("What do skeletons hate the most about wind?")
  444. wait(5)
  445. chatfunc("Nothing, it goes right through them.")
  446. end
  447. if chatmath == 3 then
  448. chatfunc("Why don't skeletons fight each other?")
  449. wait(5)
  450. chatfunc("They don't have the guts.")
  451. end
  452. end
  453. end
  454. mouse.KeyDown:connect(pun2)
  455.  
  456. function pun3(AAAA)
  457. if AAAA == "r" then
  458. local chatmath = math.random(1,3)
  459. if chatmath == 1 then
  460. chatfunc("I'm so lazy,")
  461. wait(5)
  462. chatfunc("I'm bone idle!")
  463. end
  464. if chatmath == 2 then
  465. chatfunc("Why did the skeleton want a friend?")
  466. wait(5)
  467. chatfunc("Because she was feeling bonely.")
  468. end
  469. if chatmath == 3 then
  470. chatfunc("What does a skeleton tile his roof with?")
  471. wait(5)
  472. chatfunc("Shin-gles!")
  473. end
  474. end
  475. end
  476. mouse.KeyDown:connect(pun3)
  477.  
  478. --// END? \\--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement