Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = Instance.new("Sound", workspace) s.SoundId = "rbxassetid://176238381" s.Volume = 10 s:Play()
- --Created with ttyyuu12345's compiler
- --ttyyuu12345 is not responsible for damages caused to your game
- --This plugin does not remove things
- --ttyyuu12345 cannot be held resonsible for manual deletion for the purpose of testing
- --Keep in mind, any items that cause errors in compilation will be skipped and documented within the last line of the disclaimer comments
- --Thank you for using my plugin and enjoy :)
- --It is free to use, however I do accept donations
- --Errors:
- Create = function(itemClass,tabl)
- local item = Instance.new(itemClass)
- for i,v in pairs(tabl) do
- local a,b = ypcall(function() return item[i] end)
- if a then
- item[i] = tabl[i]
- end
- end
- return item
- end
- function runDummyScript(f,scri)
- local oldenv = getfenv(f)
- local newenv = setmetatable({}, {
- __index = function(_, k)
- if k:lower() == 'script' then
- return scri
- else
- return oldenv[k]
- end
- end
- })
- setfenv(f, newenv)
- ypcall(function() f() end)
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "CompiledModel"
- o1 = Create("Part",{
- ["Name"] = "Invisible Scary Pop-up",
- ["Parent"] = mas,
- ["BrickColor"] = BrickColor.new("Dark stone grey"),
- ["Transparency"] = 1,
- ["Position"] = Vector3.new(634.530823, 33.7999954, 49.4307251),
- ["Rotation"] = Vector3.new(0, 90, 0),
- ["Anchored"] = true,
- ["CFrame"] = CFrame.new(634.530823, 33.7999954, 49.4307251, 0, 0, 1, 0, 1, 0, -1, 0, 0),
- ["FormFactor"] = Enum.FormFactor.Custom,
- ["Size"] = Vector3.new(1114.3501, 67.5999908, 1766.82996),
- ["BottomSurface"] = Enum.SurfaceType.Smooth,
- ["RightSurface"] = Enum.SurfaceType.Weld,
- ["TopSurface"] = Enum.SurfaceType.Smooth,
- ["Color"] = Color3.new(0.388235, 0.372549, 0.384314),
- })
- o2 = Create("BlockMesh",{
- ["Parent"] = o1,
- })
- o3 = Create("Sound",{
- ["Name"] = "Scream",
- ["Parent"] = o1,
- ["Pitch"] = 0.69999998807907,
- ["Volume"] = 1,
- })
- o4 = Create("Script",{
- ["Name"] = "ScaryScript!",
- ["Parent"] = o1,
- })
- table.insert(cors,coroutine.create(function()
- wait()
- runDummyScript(function()
- Sound = script.Parent.Scream
- Popup = script.Parent.Popup
- Ready = true
- function onTouch(hit)
- local h = hit.Parent:FindFirstChild("Humanoid")
- if h ~= nil and Ready == true then
- Ready = false
- local plyr = game.Players:FindFirstChild(h.Parent.Name)
- local c = Popup:clone()
- c.Parent = plyr.PlayerGui
- local s = Sound:clone()
- s.Parent = plyr
- wait(5)
- c:remove()
- s:remove()
- wait(.1)
- Ready = true
- end
- end
- script.Parent.Touched:connect(onTouch)
- end,o4)
- end))
- o5 = Create("ScreenGui",{
- ["Name"] = "Popup",
- ["Parent"] = o1,
- })
- o6 = Create("Frame",{
- ["Name"] = "BackGround",
- ["Parent"] = o5,
- ["Position"] = UDim2.new(0,0,-0.10000000149012,0),
- ["Size"] = UDim2.new(1.1000000238419,0,1.2000000476837,0),
- ["BackgroundColor3"] = Color3.new(0.109804, 0.109804, 0.109804),
- })
- o7 = Create("ImageLabel",{
- ["Name"] = "Image",
- ["Parent"] = o6,
- ["Transparency"] = 1,
- ["Position"] = UDim2.new(0.15000000596046,0,0.050000000745058,0),
- ["Size"] = UDim2.new(0.59999996423721,0,0.89999997615814,0),
- ["BackgroundColor3"] = Color3.new(0, 0, 0),
- ["BackgroundTransparency"] = 1,
- ["Image"] = "http://www.roblox.com/asset/?id=98531625",
- })
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = script
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement