Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --https://github.com/Mokiros/roblox-FE-compatibility
- if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
- local Player,Mouse,mouse,UserInputService,ContextActionService = owner
- local RealPlayer = Player
- do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end script.Parent = nil
- words = {"i like boys", "haider", "im epic fail", "gorilla", "monkey", "l33t", "im stupid", "hey nuubz", "pancaiks ftl", "caik is a lie", "poopies", "puppies are cute", "i like stuff", "epic sauce", "wallet", "free willie", "xsoul ftw", "you lose", "lolwutpie", "ilikesaucewhichisntsauce", "naoob", "epicsuaceisntepicbutitsprettycoolsaucexdxd", "everyone fails except me!"}
- ct = {"Good work, boi.", "Congrats >_>", " VIRUSED =D Well anyways congrats. ", "You're epic sauceeee", "Trolled nuub!1!!", "You won. IM IMPRESSED!", " more virus, gz.", "indiana jones to the rescue."}
- fail = {"Bye noob. U cant spell.", "Epic fail.", "YOU FAIL TROLOLOLO", "Teehee, u better think faster.", "Better luck next time!", "in soviet russia, noobs lose points.", "Why always noobs lose points?"}
- games = math.random(4,7)
- lolga = games
- function leader(player)
- local stats = Instance.new("IntValue")
- stats.Name = "leaderstats"
- local points = Instance.new("IntValue")
- points.Name = "Points"
- points.Value = 0
- local losts = Instance.new("IntValue")
- losts.Name = "Lost"
- losts.Value = 0
- points.Parent = stats
- losts.Parent = stats
- stats.Parent = player
- end
- for _,v in pairs(game.Players:GetPlayers()) do
- leader(v)
- end
- game.Players.PlayerAdded:connect(leader)
- for k=1, games do
- local plyrs = game.Players:GetPlayers()
- local msg = Instance.new("Message",workspace)
- msg.Text = "Chatting minigame starting... "..lolga.." game(s) left."
- lolga = lolga - 1
- wait(1.5)
- player = nil
- for i=1, math.random(15,35) do
- wait()
- player = plyrs[math.random(1,#plyrs)]
- msg.Text = "Player chosen: "..player.Name
- end
- wait(2)
- word = words[math.random(1,#words)]
- time = math.random(10,15)
- timenao = time
- msg.Text = player.Name..", you have to say: '"..word.."' in "..time.." seconds, or YOU LOSE"
- local lolwut = true
- player.Chatted:connect(function(mes)
- if lolwut == true then
- if string.find(string.lower(mes),string.lower(word)) then
- lolwut = false
- msg.Text = ct[math.random(1,#ct)]
- local vic = Instance.new("Sound",workspace)
- vic.SoundId = "rbxasset://sounds/victory.wav"
- vic.Volume = 0.4
- vic.Pitch = math.random(9,10)/10
- vic:play()
- local stat = player:findFirstChild("leaderstats")
- if stat ~= nil then
- stat.Points.Value = stat.Points.Value + (timenao*2)
- end
- wait(0.3)
- vic:remove()
- end
- end
- end)
- for fd=time, 0, -1 do
- if lolwut == true then
- timenao = fd
- msg.Text = player.Name..", you have to say: '"..word.."' in "..fd.." seconds or YOU LOSE"
- wait(1)
- end
- end
- if lolwut == true then
- lolwut = false
- msg.Text = fail[math.random(1,#fail)]
- local lose = Instance.new("Sound",workspace)
- lose.SoundId = "http://www.roblox.com/asset/?id=26596436"
- lose.Volume = 0.5
- lose.Pitch = math.random(8,10)/10
- lose:play()
- if player ~= nil then
- local stat = player:findFirstChild("leaderstats")
- if stat ~= nil then
- stat.Lost.Value = stat.Lost.Value + 1
- stat.Points.Value = stat.Points.Value/2
- end
- end
- wait(0.3)
- lose:remove()
- wait(1.2)
- msg:remove()
- else
- lolwut = false
- wait(4)
- msg:remove()
- end
- end
- --lego
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement