Advertisement
Baldeagle22

Tost (1)

Sep 12th, 2018
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.94 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.  
  39. function chatfunc(text)
  40. local chat = coroutine.wrap(function()
  41. if Character:FindFirstChild("TalkingBillBoard")~= nil then
  42. Character:FindFirstChild("TalkingBillBoard"):destroy()
  43. end
  44. local naeeym2 = Instance.new("BillboardGui",Character)
  45. naeeym2.Size = UDim2.new(0,100,0,40)
  46. naeeym2.StudsOffset = Vector3.new(0,3,0)
  47. naeeym2.Adornee = Character.Head
  48. naeeym2.Name = "TalkingBillBoard"
  49. local tecks2 = Instance.new("TextLabel",naeeym2)
  50. tecks2.BackgroundTransparency = 1
  51. tecks2.BorderSizePixel = 0
  52. tecks2.Text = ""
  53. tecks2.Font = "Cartoon"
  54. tecks2.TextSize = 30
  55. tecks2.TextStrokeTransparency = 0
  56. tecks2.TextColor3 = Color3.new(.6,0,0)
  57. tecks2.TextStrokeColor3 = Color3.new(0,0,0)
  58. tecks2.Size = UDim2.new(1,0,0.5,0)
  59. local tecks3 = Instance.new("TextLabel",naeeym2)
  60. tecks3.BackgroundTransparency = 1
  61. tecks3.BorderSizePixel = 0
  62. tecks3.Text = ""
  63. tecks3.Font = "Cartoon"
  64. tecks3.TextSize = 30
  65. tecks3.TextStrokeTransparency = 0
  66. tecks3.TextColor3 = BrickColor.new("Hot white").Color
  67. tecks3.TextStrokeColor3 = Color3.new(0,0,0)
  68. tecks3.Size = UDim2.new(1,0,0.5,0)
  69. spawn(function()
  70. while wait() do
  71. tecks3.TextColor3 = BrickColor.random().Color
  72. tecks2.TextColor3 = BrickColor.random().Color
  73. end
  74. end)
  75. for i = 1,string.len(text),1 do
  76. CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=178104975", Character, 1, 1)
  77. tecks2.Text = string.sub(text,1,i)
  78. tecks3.Text = string.sub(text,1,i)
  79. wait(0.01)
  80. end
  81. wait(2)
  82. for i = 1, 50 do
  83. swait()
  84. tecks2.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  85. tecks2.Rotation = tecks2.Rotation - .8
  86. tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  87. tecks2.TextTransparency = tecks2.TextTransparency + .04
  88. tecks3.Position = tecks2.Position - UDim2.new(math.random(-1,1),math.random(-5,5),.05,math.random(-5,5))
  89. tecks3.Rotation = tecks2.Rotation + .8
  90. tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
  91. tecks3.TextTransparency = tecks2.TextTransparency + .04
  92. end
  93. naeeym2:Destroy()
  94. end)
  95. chat()
  96. end
  97. function onChatted(msg)
  98. chatfunc(msg)
  99. end
  100. Player.Chatted:connect(onChatted)
  101.  
  102. abss = Instance.new("BillboardGui",Character)
  103. abss.Size = UDim2.new(10,0,10,0)
  104. abss.Enabled = false
  105. imgl = Instance.new("ImageLabel",abss)
  106. imgl.Position = UDim2.new(0,0,0,0)
  107. imgl.Size = UDim2.new(1,0,1,0)
  108. imgl.Image = "rbxassetid://183711814"
  109. imgl.BackgroundTransparency = 1
  110. imgl.ImageColor3 = Color3.new(.9,0,0)
  111. img2 = Instance.new("ImageLabel",abss)
  112. img2.Position = UDim2.new(0,0,0,0)
  113. img2.Size = UDim2.new(1,0,1,0)
  114. img2.Image = "rbxassetid://183711814"
  115. img2.BackgroundTransparency = 1
  116. img2.ImageColor3 = Color3.new(.9,0,0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement