Advertisement
Baldeagle22

Tost (10) (textO)

Sep 12th, 2018
333
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.73 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
  2. local Player,game,owner = owner,game
  3. local RealPlayer = Player
  4. do
  5. print("FE made by SoulCah | Dennis <3")
  6. local rp = RealPlayer
  7. script.Parent = rp.Character
  8.  
  9. --RemoteEvent for communicating
  10. local Event = Instance.new("RemoteEvent")
  11. Event.Name = "UserInput_Event"
  12.  
  13. --Fake event to make stuff like Mouse.KeyDown work
  14. local function fakeEvent()
  15. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  16. t.connect = t.Connect
  17. return t
  18. end
  19.  
  20. --Creating fake input objects with fake variables
  21. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  22. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  23. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  24. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  25. end}
  26. --Merged 2 functions into one by checking amount of arguments
  27. CAS.UnbindAction = CAS.BindAction
  28.  
  29. --This function will trigger the events that have been :Connect()'ed
  30. local function te(self,ev,...)
  31. local t = m[ev]
  32. if t and t._fakeEvent then
  33. for _,f in pairs(t.Functions) do
  34. f(...)
  35. end
  36. end
  37. end
  38. m.TrigEvent = te
  39. UIS.TrigEvent = te
  40.  
  41. Event.OnServerEvent:Connect(function(plr,io)
  42. if plr~=rp then return end
  43. m.Target = io.Target
  44. m.Hit = io.Hit
  45. if not io.isMouse then
  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.  
  62. Event.Parent = NLS([==[
  63. local Player = game:GetService("Players").LocalPlayer
  64. local Event = script:WaitForChild("UserInput_Event")
  65.  
  66. local Mouse = Player:GetMouse()
  67. local UIS = game:GetService("UserInputService")
  68. local input = function(io,a)
  69. if a then return end
  70. --Since InputObject is a client-side instance, we create and pass table instead
  71. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  72. end
  73. UIS.InputBegan:Connect(input)
  74. UIS.InputEnded:Connect(input)
  75.  
  76. local h,t
  77. --Give the server mouse data 30 times every second, but only if the values changed
  78. --If player is not moving their mouse, client won't fire events
  79. while wait(1/30) do
  80. if h~=Mouse.Hit or t~=Mouse.Target then
  81. h,t=Mouse.Hit,Mouse.Target
  82. Event:FireServer({isMouse=true,Target=t,Hit=h})
  83. end
  84. end]==],Player.Character)
  85.  
  86. function chatfunc(text)
  87. local chat = coroutine.wrap(function()
  88. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  89. Character:FindFirstChild("TalkingBillBoard"):destroy()
  90. end
  91. local naeeym2 = Instance.new("BillboardGui",Character)
  92. naeeym2.Size = UDim2.new(0,100,0,40)
  93. naeeym2.StudsOffset = Vector3.new(0,3,0)
  94. naeeym2.Adornee = Character.Head
  95. naeeym2.Name = "TalkingBillBoard"
  96. local tecks2 = Instance.new("TextLabel",naeeym2)
  97. tecks2.BackgroundTransparency = 1
  98. tecks2.BorderSizePixel = 0
  99. tecks2.Text = ""
  100. tecks2.Font = "Cartoon"
  101. tecks2.TextSize = 30
  102. tecks2.TextStrokeTransparency = 0
  103. tecks2.TextColor3 = Color3.new(.6,0,0)
  104. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  105. tecks2.Size = UDim2.new(1,0,0.5,0)
  106. local tecks3 = Instance.new("TextLabel",naeeym2)
  107. tecks3.BackgroundTransparency = 1
  108. tecks3.BorderSizePixel = 0
  109. tecks3.Text = ""
  110. tecks3.Font = "Cartoon"
  111. tecks3.TextSize = 30
  112. tecks3.TextStrokeTransparency = 0
  113. tecks3.TextColor3 = BrickColor.new("Hot white").Color
  114. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  115. tecks3.Size = UDim2.new(1,0,0.5,0)
  116. spawn(function()
  117. while wait() do
  118. tecks3.TextColor3 = BrickColor.random().Color
  119. tecks2.TextColor3 = BrickColor.random().Color
  120. end
  121. end)
  122. for i = 1,string.len(text),1 do
  123. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=178104975", Character, 1, 1)
  124. tecks2.Text = string.sub(text,1,i)
  125. tecks3.Text = string.sub(text,1,i)
  126. wait(0.01)
  127. end
  128. wait(2)
  129. for i = 1, 50 do
  130. swait()
  131. tecks2.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  132. tecks2.Rotation = tecks2.Rotation - .8
  133. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  134. tecks2.TextTransparency = tecks2.TextTransparency + .04
  135. tecks3.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  136. tecks3.Rotation = tecks2.Rotation + .8
  137. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  138. tecks3.TextTransparency = tecks2.TextTransparency + .04
  139. end
  140. naeeym2:Destroy()
  141. end)
  142. chat()
  143. end
  144. function onChatted(msg)
  145. chatfunc(msg)
  146. end
  147. Player.Chatted:connect(onChatted)
  148.  
  149. abss = Instance.new("BillboardGui",Character)
  150. abss.Size = UDim2.new(10,0,10,0)
  151. abss.Enabled = false
  152. imgl = Instance.new("ImageLabel",abss)
  153. imgl.Position = UDim2.new(0,0,0,0)
  154. imgl.Size = UDim2.new(1,0,1,0)
  155. imgl.Image = "rbxassetid://183711814"
  156. imgl.BackgroundTransparency = 1
  157. imgl.ImageColor3 = Color3.new(.9,0,0)
  158. img2 = Instance.new("ImageLabel",abss)
  159. img2.Position = UDim2.new(0,0,0,0)
  160. img2.Size = UDim2.new(1,0,1,0)
  161. img2.Image = "rbxassetid://183711814"
  162. img2.BackgroundTransparency = 1
  163. img2.ImageColor3 = Color3.new(.9,0,0)
  164. spawn(function()
  165. while wait() do
  166. imgl.ImageColor3 = BrickColor.random().Color
  167. img2.ImageColor3 = BrickColor.random().Color
  168. end
  169. end)
  170.  
  171. spawn(function()
  172. chatfunc("It Has Begun")
  173. wait(3)
  174. end)
  175. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement