SHOW:
|
|
- or go back to the newest paste.
| 1 | --https://github.com/Mokiros/roblox-FE-compatibility | |
| 2 | if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
| |
| 3 | local Player,game,owner = owner,game | |
| 4 | local RealPlayer = Player | |
| 5 | do print("FE Compatibility code V2 by Mokiros")local RealPlayer=RealPlayer;script.Parent=RealPlayer.Character;local a=function(b)b[1].f[b[2]]=nil end;local c={__index={disconnect=a,Disconnect=a}}local d={__index={Connect=function(b,e)local f=tostring(math.random(0,10000))while b.f[f]do f=tostring(math.random(0,10000))end;b.f[f]=e;return setmetatable({b,f},c)end}}d.__index.connect=d.__index.Connect;local function g()return setmetatable({f={}},d)end;local h={Hit=CFrame.new(),KeyUp=g(),KeyDown=g(),Button1Up=g(),Button1Down=g(),Button2Up=g(),Button2Down=g()}h.keyUp=h.KeyUp;h.keyDown=h.KeyDown;local i={InputBegan=g(),InputEnded=g()}local CAS={Actions={},BindAction=function(self,j,k,l,...)CAS.Actions[j]=k and{Name=j,Function=k,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function m(self,n,...)for o,e in pairs(self[n].f)do e(...)end end;h.T=m;i.T=m;local p=Instance.new("RemoteEvent")p.Name="UserInput_Event"p.OnServerEvent:Connect(function(q,r)if q~=RealPlayer then return end;h.Target=r.e;h.Hit=r.d;if not r.f then local s=r.c==Enum.UserInputState.Begin;if r.b==Enum.UserInputType.MouseButton1 then return h:T(s and"Button1Down"or"Button1Up")end;if r.b==Enum.UserInputType.MouseButton2 then return h:T(s and"Button2Down"or"Button2Up")end;for o,t in pairs(CAS.Actions)do for o,u in pairs(t.Keys)do if u==r.a then t.Function(t.Name,r.c,r)end end end;h:T(s and"KeyDown"or"KeyUp",r.a.Name:lower())i:T(s and"InputBegan"or"InputEnded",r,false)end end)p.Parent=NLS([==[local a=script:WaitForChild("UserInput_Event")local b=owner:GetMouse()local c=game:GetService("UserInputService")local d=function(e,f)if f then return end;a:FireServer({a=e.KeyCode,b=e.UserInputType,c=e.UserInputState,d=b.Hit,e=b.Target})end;c.InputBegan:Connect(d)c.InputEnded:Connect(d)local g,h;local i=game:GetService("RunService").Heartbeat;while true do if g~=b.Hit or h~=b.Target then g,h=b.Hit,b.Target;a:FireServer({f=1,Target=h,d=g})end;for j=1,2 do i:Wait()end end]==],script)local v=game;local w={__index=function(self,u)local x=rawget(self,"_RealService")if x then return typeof(x[u])=="function"and function(o,...)return x[u](x,...)end or x[u]end end,__newindex=function(self,u,y)local x=rawget(self,"_RealService")if x then x[u]=y end end}local function z(t,A)t._RealService=typeof(A)=="string"and v:GetService(A)or A;return setmetatable(t,w)end;local B={GetService=function(self,x)return rawget(self,x)or v:GetService(x)end,Players=z({LocalPlayer=z({GetMouse=function(self)return h end},Player)},"Players"),UserInputService=z(i,"UserInputService"),ContextActionService=z(CAS,"ContextActionService"),RunService=z({_btrs={},RenderStepped=v:GetService("RunService").Heartbeat,BindToRenderStep=function(self,j,o,k)self._btrs[j]=self.Heartbeat:Connect(k)end,UnbindFromRenderStep=function(self,j)self._btrs[j]:Disconnect()end},"RunService")}rawset(B.Players,"localPlayer",B.Players.LocalPlayer)B.service=B.GetService;z(B,game)game,owner=B,B.Players.LocalPlayer end
| |
| 6 | ||
| 7 | --[[ | |
| 8 | Controls: | |
| 9 | LCTRL: Fire a friendliness pellet | |
| 10 | K: Evil laugh | |
| 11 | Z: Angry flowy | |
| 12 | J: Spooky flowy theme | |
| 13 | G: Normal flowy theme | |
| 14 | F: Stop music | |
| 15 | X: Remove dialogue box | |
| 16 | ||
| 17 | ]]-- | |
| 18 | dot = false | |
| 19 | shoot = true | |
| 20 | des = false | |
| 21 | local ChatService = game:GetService("Chat")
| |
| 22 | for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do | |
| 23 | if v:IsA('Part') then v.Transparency = 1
| |
| 24 | if v:IsA('Hat') then v.Handle.Transparency = 1
| |
| 25 | ||
| 26 | end | |
| 27 | end | |
| 28 | end | |
| 29 | local player = game.Players.LocalPlayer | |
| 30 | player.Character.Head.face:Remove() | |
| 31 | ||
| 32 | m=player:GetMouse() | |
| 33 | bb = Instance.new("BillboardGui",player.Character.Head)
| |
| 34 | bb.Enabled = true | |
| 35 | bb.AlwaysOnTop = true | |
| 36 | ||
| 37 | bb.Size = UDim2.new(0,200,0,50) | |
| 38 | bb.StudsOffset = Vector3.new(-0.5,-0.5,0) | |
| 39 | fl = Instance.new("Part",player.Character)
| |
| 40 | ||
| 41 | fl.FormFactor = 3 | |
| 42 | fl.Size = Vector3.new(3,3,0.01) | |
| 43 | fl.Transparency = 1 | |
| 44 | aa = 0.075 | |
| 45 | fl.CanCollide = false | |
| 46 | dec = Instance.new("Decal",fl)
| |
| 47 | dec.Face = "Front" | |
| 48 | dec.Texture = "rbxassetid://379128237" | |
| 49 | dec1 = Instance.new("Decal",fl)
| |
| 50 | dec1.Face = "Back" | |
| 51 | dec1.Texture = "rbxassetid://379128324" | |
| 52 | wel = Instance.new("Weld",fl)
| |
| 53 | wel.Part0=fl | |
| 54 | wel.Part1=player.Character.Torso | |
| 55 | wel.C0 = CFrame.new(0,2,0) | |
| 56 | gui=Instance.new("TextBox",bb)
| |
| 57 | gui.Text = "* " | |
| 58 | gui.Size = UDim2.new(0,266,0,90) | |
| 59 | ||
| 60 | gui.Position=UDim2.new(0,94,0,-60) | |
| 61 | gui.TextColor3 = Color3.new(255,255,255) | |
| 62 | gui.BackgroundColor3=Color3.new(0,0,0) | |
| 63 | gui.TextWrapped = true | |
| 64 | gui.TextScaled = true | |
| 65 | gui.TextXAlignment = "Left" | |
| 66 | gui.TextYAlignment = "Top" | |
| 67 | gui.Visible = false | |
| 68 | gui.BorderColor3 = Color3.new(0,0,0) | |
| 69 | ||
| 70 | gui1=Instance.new("TextButton",bb)
| |
| 71 | gui1.Position=UDim2.new(0,5,0,-66) | |
| 72 | gui1.Size = UDim2.new(0,380,0,102) | |
| 73 | ||
| 74 | gui1.TextColor3 = Color3.new(255,255,255) | |
| 75 | gui1.BackgroundColor3=Color3.new(255,255,255) | |
| 76 | ||
| 77 | gui1.Visible = false | |
| 78 | img = Instance.new("ImageLabel",bb)
| |
| 79 | img.Size = UDim2.new(0,92,0,94) | |
| 80 | img.Position = UDim2.new(0,15,0,-62) | |
| 81 | img.Image = "rbxassetid://340492116" | |
| 82 | img.BorderColor3 = Color3.new(0,0,0) | |
| 83 | img.Visible = false | |
| 84 | sid = "379851665" | |
| 85 | asd = Instance.new("Sound",player.Character.Torso)
| |
| 86 | asd.SoundId = "http://www.roblox.com/asset/?id =379851665" | |
| 87 | ||
| 88 | asd1 = Instance.new("Sound",player.Character.Torso)
| |
| 89 | asd1.SoundId = "http://www.roblox.com/asset/?id =379851665" | |
| 90 | ||
| 91 | asd2 = Instance.new("Sound",player.Character.Torso)
| |
| 92 | asd2.SoundId = "http://www.roblox.com/asset/?id = 317393485" | |
| 93 | asd2.Looped = true | |
| 94 | asd3 = Instance.new("Sound",player.Character.Torso)
| |
| 95 | asd3.SoundId = "http://www.roblox.com/asset/?id = 316014309" | |
| 96 | asd3.Looped = true | |
| 97 | asd4 = Instance.new("Sound",player.Character.Torso)
| |
| 98 | asd4.SoundId = "http://www.roblox.com/asset/?id = 370435986" | |
| 99 | asd4.Looped = true | |
| 100 | asd5 = Instance.new("Sound",player.Character.Torso)
| |
| 101 | asd5.SoundId = "http://www.roblox.com/asset/?id = 379865908" | |
| 102 | asd5.Looped = true | |
| 103 | asd6 = Instance.new("Sound",player.Character.Torso)
| |
| 104 | asd6.SoundId = "http://www.roblox.com/asset/?id = 379865908" | |
| 105 | asd7 = Instance.new("Sound",player.Character.Torso)
| |
| 106 | asd7.SoundId = "http://www.roblox.com/asset/?id = 379874748" | |
| 107 | asd7.Looped = true | |
| 108 | m.KeyDown:connect(function(k) | |
| 109 | ||
| 110 | if k == string.char(50) then | |
| 111 | if shoot == true then | |
| 112 | shoot = false | |
| 113 | b = Instance.new("Part",workspace)
| |
| 114 | b.CFrame = fl.CFrame * CFrame.new(0,0,1) | |
| 115 | b.BrickColor = BrickColor.new("asd")
| |
| 116 | b.TopSurface = "Universal" | |
| 117 | b.BottomSurface = "Universal" | |
| 118 | b.LeftSurface = 0 | |
| 119 | b.RightSurface = 0 | |
| 120 | b.FrontSurface = 0 | |
| 121 | b.BackSurface = 0 | |
| 122 | b.FormFactor = 3 | |
| 123 | b.Size = Vector3.new(0.2,0.2,0.5) | |
| 124 | b.Material = "Neon" | |
| 125 | b.Anchored = false | |
| 126 | b.CanCollide = false | |
| 127 | b.Reflectance = 0 | |
| 128 | ||
| 129 | b.Velocity = CFrame.new(b.Position,player:GetMouse().Hit.p).lookVector * 200 | |
| 130 | b.Touched:connect(function(h) | |
| 131 | if h.Parent.Name ==game.Players.LocalPlayer.Name then | |
| 132 | x = h.Parent:findFirstChild("Humanoid")
| |
| 133 | x:TakeDamage(0) | |
| 134 | else x = h.Parent:findFirstChild("Humanoid")
| |
| 135 | if x then | |
| 136 | ||
| 137 | x:TakeDamage(15) | |
| 138 | ||
| 139 | ||
| 140 | ||
| 141 | end end end) | |
| 142 | wait(0.3) | |
| 143 | b:Remove() | |
| 144 | shoot = true | |
| 145 | ||
| 146 | ||
| 147 | ||
| 148 | ||
| 149 | end | |
| 150 | end | |
| 151 | end) | |
| 152 | ||
| 153 | ||
| 154 | ||
| 155 | ||
| 156 | function play(play) | |
| 157 | asd:Play() | |
| 158 | ||
| 159 | asd1:Play() | |
| 160 | end | |
| 161 | eye = Instance.new("Part",player.Character)
| |
| 162 | eye.BrickColor = BrickColor.new("Toothpaste")
| |
| 163 | eye.Material = "Neon" | |
| 164 | eye.FormFactor = 3 | |
| 165 | eye.Shape = "Ball" | |
| 166 | eye.Size = Vector3.new(0.37,0.37,0.1) | |
| 167 | weld = Instance.new("Weld",eye)
| |
| 168 | weld.Part0 = eye | |
| 169 | weld.Part1 = player.Character.Head | |
| 170 | weld.C0 = CFrame.new(0.1,-0.2,0.45) | |
| 171 | eye.Transparency = 1 | |
| 172 | -- listen for their chatting | |
| 173 | player.Chatted:connect(function(message) | |
| 174 | a = string.len(message) | |
| 175 | gui.Text = "* " | |
| 176 | gui.Visible = true | |
| 177 | gui1.Visible = true | |
| 178 | des = false | |
| 179 | img.Visible = true | |
| 180 | print(a) | |
| 181 | if dot == false then | |
| 182 | for i = 1,string.len(message) do wait(aa) | |
| 183 | gui.Text =gui.Text..message:sub(i,i) | |
| 184 | play() | |
| 185 | ||
| 186 | end | |
| 187 | end | |
| 188 | ||
| 189 | ||
| 190 | des = true | |
| 191 | end) | |
| 192 | m.KeyDown:connect(function(k) | |
| 193 | if k == "g" then | |
| 194 | asd2:Play() | |
| 195 | eye.Transparency = 1 | |
| 196 | ||
| 197 | end | |
| 198 | end) | |
| 199 | ||
| 200 | ||
| 201 | ||
| 202 | m.KeyDown:connect(function(k) | |
| 203 | if k == "z" then | |
| 204 | aa = 0.08 | |
| 205 | asd1.SoundId = "http://www.roblox.com/asset/?id =379862308" | |
| 206 | asd.SoundId = "http://www.roblox.com/asset/?id =379862308" | |
| 207 | img.Image = "rbxassetid://311067910" | |
| 208 | end | |
| 209 | end) | |
| 210 | m.KeyDown:connect(function(k) | |
| 211 | if k == "c" then | |
| 212 | aa=0.075 | |
| 213 | asd1.SoundId = "http://www.roblox.com/asset/?id =379851665" | |
| 214 | asd.SoundId = "http://www.roblox.com/asset/?id =379851665" | |
| 215 | img.Image = "rbxassetid://340492116" | |
| 216 | end | |
| 217 | end) | |
| 218 | m.KeyDown:connect(function(k) | |
| 219 | if k == "n" then | |
| 220 | sid = "379851665" | |
| 221 | --img.Image = "rbxassetid://379880202" | |
| 222 | end | |
| 223 | end) | |
| 224 | m.KeyDown:connect(function(k) | |
| 225 | if k == "b" then | |
| 226 | --img.Image = "rbxassetid://379866291" | |
| 227 | end | |
| 228 | end) | |
| 229 | m.KeyDown:connect(function(k) | |
| 230 | if k == "m" then | |
| 231 | --img.Image = "rbxassetid://379866374" | |
| 232 | end | |
| 233 | end) | |
| 234 | m.KeyDown:connect(function(k) | |
| 235 | if k == "v" then | |
| 236 | --img.Image = "rbxassetid://378619540" | |
| 237 | end | |
| 238 | end) | |
| 239 | m.KeyDown:connect(function(k) | |
| 240 | if k == "k" then | |
| 241 | asd6:Play() | |
| 242 | end | |
| 243 | end) | |
| 244 | m.KeyDown:connect(function(k) | |
| 245 | if k == "j" then | |
| 246 | asd7:Play() | |
| 247 | end | |
| 248 | end) | |
| 249 | ||
| 250 | m.KeyDown:connect(function(k) | |
| 251 | if k == "x" then | |
| 252 | if des == true then | |
| 253 | gui.Visible = false | |
| 254 | gui.Text = "* " | |
| 255 | gui1.Visible = false | |
| 256 | img.Visible = false | |
| 257 | end | |
| 258 | end | |
| 259 | end) | |
| 260 | m.KeyDown:connect(function(k) | |
| 261 | if k == "f" then | |
| 262 | asd3:Stop() | |
| 263 | asd2:Stop() | |
| 264 | asd7:Stop() | |
| 265 | asd4:Stop() | |
| 266 | eye.Transparency = 1 | |
| 267 | asd5:Stop() | |
| 268 | end | |
| 269 | end) |