Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --Converted with ttyyuu12345's model to script plugin v4
- function sandbox(var,func)
- local env = getfenv(func)
- local newenv = setmetatable({},{
- __index = function(self,k)
- if k=="script" then
- return var
- else
- return env[k]
- end
- end,
- })
- setfenv(func,newenv)
- return func
- end
- cors = {}
- mas = Instance.new("Model",game:GetService("Lighting"))
- Tool0 = Instance.new("Tool")
- Part1 = Instance.new("Part")
- RemoteEvent2 = Instance.new("RemoteEvent")
- LocalScript3 = Instance.new("LocalScript")
- Script4 = Instance.new("Script")
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.Rotation = Vector3.new(-1.00999999, -24.3099995, -0.409999996)
- Part1.CanCollide = false
- Part1.Size = Vector3.new(4, 1, 2)
- Part1.CFrame = CFrame.new(64.7745438, 6.61639404, -20.1945419, 0.911313713, 0.00659958506, -0.411659986, -1.54633962e-14, 0.999871492, 0.0160295814, 0.411712885, -0.0146079771, 0.911196589)
- Part1.Position = Vector3.new(64.7745438, 6.61639404, -20.1945419)
- Part1.Orientation = Vector3.new(-0.919999957, -24.3099995, 0)
- RemoteEvent2.Parent = Tool0
- LocalScript3.Parent = Tool0
- table.insert(cors,sandbox(LocalScript3,function()
- local play = game.Players.LocalPlayer
- local mouse = play:GetMouse()
- mouse.Button1Down:connect(function()
- local point = mouse.Hit.p
- local expl = Instance.new("Explosion")
- expl.Position = point
- expl.Parent = game.Workspace
- script.Parent.RemoteEvent:FireServer(point)
- end)
- end))
- Script4.Parent = Tool0
- table.insert(cors,sandbox(Script4,function()
- script.Parent.RemoteEvent.OnServerEvent:connect(function(player,p)
- local expl = Instance.new("Explosion")
- expl.Position = p
- expl.Parent = game.Workspace
- end)
- end))
- for i,v in pairs(mas:GetChildren()) do
- v.Parent = game:GetService("Players").LocalPlayer.Backpack
- pcall(function() v:MakeJoints() end)
- end
- mas:Destroy()
- for i,v in pairs(cors) do
- spawn(function()
- pcall(v)
- end)
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement