Advertisement
Animescapetower

Shirt And Pants Asset Logger

Nov 29th, 2018
436
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.72 KB | None | 0 0
  1. -- If you want the non fe version : https://paste.ee/r/Iaxvp/0
  2.  
  3. --I Forget to put who made it.
  4.  
  5. -- And this was made by Anime and yes you guess it anyways this is alot different from other loggers
  6.  
  7. -- This script has been converted to FE by iPxter
  8. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  9. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  10. do
  11. print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
  12. script.Parent = Player.Character
  13.  
  14. --RemoteEvent for communicating
  15. local Event= Instance.new("RemoteEvent")
  16. Event.Name = "UserInput_Event"
  17.  
  18. --Fake event to make stuff like Mouse.KeyDown work
  19. local function fakeEvent()
  20. local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
  21. t.connect = t.Connect
  22. return t
  23. end
  24.  
  25. --Creating fake input objects with fake variables
  26. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  27. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  28. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  29. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  30. end}
  31. --Merged 2 functions into one by checking amount of arguments
  32. CAS.UnbindAction = CAS.BindAction
  33.  
  34. --This function will trigger the events that have been :Connect()'ed
  35. local function te(self,ev,...)
  36. local t = m[ev]
  37. if t and t._fakeEvent and t.Function then
  38. t.Function(...)
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=Player then return end
  46. if io.isMouse then
  47. m.Target = io.Target
  48. m.Hit = io.Hit
  49. else
  50. local b = io.UserInputState == Enum.UserInputState.Begin
  51. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  52. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  53. end
  54. for _,t in pairs(CAS.Actions) do
  55. for _,k in pairs(t.Keys) do
  56. if k==io.KeyCode then
  57. t.Function(t.Name,io.UserInputState,io)
  58. end
  59. end
  60. end
  61. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  62. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  63. end
  64. end)
  65. Event.Parent = NLS([==[
  66. local Player = game:GetService("Players").LocalPlayer
  67. local Event = script:WaitForChild("UserInput_Event")
  68.  
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local Mouse = Player:GetMouse()
  79. local h,t
  80. --Give the server mouse data 30 times every second, but only if the values changed
  81. --If player is not moving their mouse, client won't fire events
  82. while wait(1/30) do
  83. if h~=Mouse.Hit or t~=Mouse.Target then
  84. h,t=Mouse.Hit,Mouse.Target
  85. Event:FireServer({isMouse=true,Target=t,Hit=h})
  86. end
  87. end]==],Player.Character)
  88. Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
  89. end
  90.  
  91.  
  92.  
  93. ScreenGui0 = Instance.new("ScreenGui")
  94. Frame1 = Instance.new("Frame")
  95. TextButton2 = Instance.new("TextButton")
  96. TextLabel3 = Instance.new("TextLabel")
  97. TextLabel4 = Instance.new("TextLabel")
  98. LocalScript5 = Instance.new("LocalScript")
  99. ScreenGui0.Parent = owner.PlayerGui
  100. Frame1.Parent = ScreenGui0
  101. Frame1.Size = UDim2.new(0, 415, 0, 532)
  102. Frame1.BackgroundColor = BrickColor.new("Institutional white")
  103. Frame1.BackgroundColor3 = Color3.new(1, 1, 1)
  104. Frame1.BorderSizePixel = 0
  105. TextButton2.Name = "Wear"
  106. TextButton2.Parent = Frame1
  107. TextButton2.Position = UDim2.new(0.0234375, 0, 0.766101718, 0)
  108. TextButton2.Size = UDim2.new(0, 391, 0, 34)
  109. TextButton2.BackgroundColor = BrickColor.new("Pastel Blue")
  110. TextButton2.BackgroundColor3 = Color3.new(0.529412, 0.796079, 0.796079)
  111. TextButton2.Font = Enum.Font.SourceSans
  112. TextButton2.FontSize = Enum.FontSize.Size14
  113. TextButton2.Text = "Wear"
  114. TextButton2.TextColor = BrickColor.new("Really black")
  115. TextButton2.TextColor3 = Color3.new(0, 0, 0)
  116. TextButton2.TextScaled = true
  117. TextButton2.TextSize = 14
  118. TextButton2.TextWrap = true
  119. TextButton2.TextWrapped = true
  120. TextLabel3.Name = "Pants"
  121. TextLabel3.Parent = Frame1
  122. TextLabel3.Position = UDim2.new(0.0234375, 0, 0.0320072025, 0)
  123. TextLabel3.Size = UDim2.new(0, 391, 0, 118)
  124. TextLabel3.BackgroundColor = BrickColor.new("Pastel light blue")
  125. TextLabel3.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  126. TextLabel3.Font = Enum.Font.SourceSans
  127. TextLabel3.FontSize = Enum.FontSize.Size14
  128. TextLabel3.Text = "PantsID > 0"
  129. TextLabel3.TextColor = BrickColor.new("Really black")
  130. TextLabel3.TextColor3 = Color3.new(0, 0, 0)
  131. TextLabel3.TextScaled = true
  132. TextLabel3.TextSize = 14
  133. TextLabel3.TextWrap = true
  134. TextLabel3.TextWrapped = true
  135. TextLabel4.Name = "Shirt"
  136. TextLabel4.Parent = Frame1
  137. TextLabel4.Position = UDim2.new(0.0234375, 0, 0.499803752, 0)
  138. TextLabel4.Size = UDim2.new(0, 391, 0, 55)
  139. TextLabel4.BackgroundColor = BrickColor.new("Pastel light blue")
  140. TextLabel4.BackgroundColor3 = Color3.new(0.666667, 1, 1)
  141. TextLabel4.Font = Enum.Font.SourceSans
  142. TextLabel4.FontSize = Enum.FontSize.Size14
  143. TextLabel4.Text = "ShirtID > 0"
  144. TextLabel4.TextColor = BrickColor.new("Really black")
  145. TextLabel4.TextColor3 = Color3.new(0, 0, 0)
  146. TextLabel4.TextScaled = true
  147. TextLabel4.TextSize = 14
  148. TextLabel4.TextWrap = true
  149. TextLabel4.TextWrapped = true
  150. LocalScript5.Parent = Frame1
  151.  
  152. Players = owner
  153. T1 = TextLabel4
  154. T2 = TextLabel3
  155. Char = Players.Character
  156. de1 = true
  157. de2 = true
  158.  
  159. Mouse.Button1Down:Connect(function()
  160. de1 = true
  161. de2 = true
  162. if de1 == true then
  163. de1 = false
  164. local Target = Mouse.Target
  165. if Target.Parent.ClassName == "Model" then
  166. local Shirt = Target.Parent:WaitForChild("Shirt")
  167. local Pants = Target.Parent:WaitForChild("Pants")
  168. T1.Text = "ShirtID > ".. Shirt.ShirtTemplate
  169. T2.Text = "PantsID > ".. Pants.PantsTemplate
  170. TextButton2.MouseButton1Click:Connect(function()
  171. if de2 == true then
  172. de2 = false
  173. local Shirt2 = Char:WaitForChild("Shirt")
  174. local Pant2s = Char:WaitForChild("Pants")
  175. Shirt2.ShirtTemplate = Shirt.ShirtTemplate
  176. Pant2s.PantsTemplate = Pants.PantsTemplate
  177. end
  178. end)
  179. end
  180. end
  181. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement