1x1x1x1IAMbck

Fe test

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