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")
- Script2 = Instance.new("Script")
- Tool0.Parent = mas
- Part1.Name = "Handle"
- Part1.Parent = Tool0
- Part1.BrickColor = BrickColor.new("Teal")
- Part1.Reflectance = 0.20000000298023
- Part1.Rotation = Vector3.new(0, -90, 0)
- Part1.Size = Vector3.new(4, 1.20000005, 4)
- Part1.CFrame = CFrame.new(-6.22000122, 5.15922642, -11.9199982, 0, 0, -1, 0, 1, -0, 1, 0, -0)
- Part1.TopSurface = Enum.SurfaceType.Smooth
- Part1.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Part1.Position = Vector3.new(-6.22000122, 5.15922642, -11.9199982)
- Part1.Orientation = Vector3.new(0, -90, 0)
- Part1.Color = Color3.new(0.0705882, 0.933333, 0.831373)
- Script2.Parent = Part1
- table.insert(cors,sandbox(Script2,function()
- function teleportPlayer(pos, Head)
- local char = Head
- sound = Instance.new("Sound")
- sound.SoundId = "rbxasset://sounds\\HalloweenLightning.wav"
- sound.Parent = char
- sound.PlayOnRemove = true
- sound:remove()
- char.CFrame = CFrame.new(Vector3.new(pos.x, pos.y + 7, pos.z))
- sound = Instance.new("Sound")
- sound.SoundId = "rbxasset://sounds\\HalloweenThunder.wav"
- sound.Parent = char
- sound.PlayOnRemove = true
- sound:remove()
- end
- function onTouched(part)
- if part.Parent ~= nil then
- local h = part.Parent:findFirstChild("Humanoid")
- if h~=nil then
- teleportPlayer(Vector3.new(-6.22, -744.571, 134.742), part.Parent.Head)
- end
- end
- end
- script.Parent.Touched:connect(onTouched)
- 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
Add Comment
Please, Sign In to add comment