Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Created by PenguinAnonymous (ttyyuu12345) Editied by Dittoide
- --What's Added To M2S with Dittoide's Edit?
- --/ Better dummy script function to improve compatibility (makes it like you are running the code inside the script.)
- --/ Removed Gui In Bottom-Left for when you are making guis.
- --/ Removed "Inserting Map Please Wait" gui when selected Workspace as Place to export.
- --Credit: PenguinAnonymous for making original script, i just wanted to iron it out to my liking.
- --Errors:
- local runDummyScript = function(f,scri)
- if (not scri:IsA('Script')) or (not scri:IsA('LocalScript')) then return false; end;
- local Dummy_CoRoutine = coroutine.create(function()
- getfenv().script = scri
- ypcall(function() f() end)
- end)
- table.insert(cors,Dummy_CoRoutine);
- coroutine.resume(Dummy_CoRoutine);
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- mas.Name = "M2S_Model"
- o1 = Instance.new("Tool")
- o2 = Instance.new("Part")
- o3 = Instance.new("Script")
- o4 = Instance.new("Decal")
- o5 = Instance.new("LocalScript")
- o1.Parent = mas
- o2.Name = "Handle"
- o2.Parent = o1
- o2.Material = Enum.Material.Neon
- o2.BrickColor = BrickColor.new("Really red")
- o2.Position = Vector3.new(-16, 0.500001013, 5)
- o2.Shape = Enum.PartType.Ball
- o2.Size = Vector3.new(4, 4, 4)
- o2.CFrame = CFrame.new(-16, 0.500001013, 5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
- o2.BottomSurface = Enum.SurfaceType.Smooth
- o2.TopSurface = Enum.SurfaceType.Smooth
- o2.Color = Color3.new(1, 0, 0)
- o2.Position = Vector3.new(-16, 0.500001013, 5)
- o3.Name = "Damage Script"
- o3.Parent = o2
- runDummyScript(function()
- -- useless comment
- function onTouched(hit)
- if not hit or not hit.Parent then return end
- local human = hit.Parent:findFirstChild("Humanoid")
- if human and human:IsA("Humanoid") then
- human:TakeDamage(20)
- end
- end
- script.Parent.Touched:connect(onTouched)
- end,o3)
- o4.Name = "fist "
- o4.Parent = o2
- o4.Texture = "http://www.roblox.com/asset/?id=60056142"
- o4.Face = Enum.NormalId.Top
- o5.Parent = o1
- runDummyScript(function()
- tool = script.Parent
- player = game.Player.LocalPlayer
- tool.Activated:connect(function)
- function onTouched(hit)
- if not hit or not hit.Parent then return end
- local human = hit.Parent:findFirstChild("Humanoid")
- if human and human:IsA("Humanoid") then
- human:TakeDamage(20)
- end
- end
- script.Parent.Touched:connect(onTouched)
- end)
- end,o5)
- mas.Parent = workspace
- mas:MakeJoints()
- local mas1 = mas:GetChildren()
- for i=1,#mas1 do
- mas1[i].Parent = game:GetService("Players").LocalPlayer.Backpack
- ypcall(function() mas1[i]:MakeJoints() end)
- end
- mas:Destroy()
- for i=1,#cors do
- coroutine.resume(cors[i])
- end
- game:GetService("Lighting").Ambient = Color3.new(0, 0, 0)
- game:GetService("Lighting").Brightness = 2
- game:GetService("Lighting").ColorShift_Bottom = Color3.new(0, 0, 0)
- game:GetService("Lighting").ColorShift_Top = Color3.new(0, 0, 0)
- game:GetService("Lighting").GlobalShadows = true
- game:GetService("Lighting").OutdoorAmbient = Color3.new(0.501961, 0.501961, 0.501961)
- game:GetService("Lighting").Outlines = false
- game:GetService("Lighting").GeographicLatitude = 41.733299255371
- game:GetService("Lighting").TimeOfDay = "14:00:00"
- game:GetService("Lighting").FogColor = Color3.new(0.752941, 0.752941, 0.752941)
- game:GetService("Lighting").FogEnd = 100000
- game:GetService("Lighting").FogStart = 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement