Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local audio = Instance.new("Sound")
- local obj = Instance.new("Part")
- local tool = Instance.new("Tool")
- local handle = Instance.new("Part")
- handle.Name = "Handle"
- handle.Parent = tool
- tool.RequiresHandle = true
- tool.Enabled = true
- tool.Parent = game.ReplicatedStorage
- local touching = false
- obj.Size = Vector3.new(1.63, 1, 1.67)
- obj.Anchored = true
- obj.CFrame = game.Workspace.Rezkiy787.Head.CFrame
- audio.Parent = obj
- audio.SoundId = "rbxassetid://14271941117"
- audio.Volume = 1
- local bg = Instance.new("BillboardGui")
- bg.Adornee = obj
- bg.Enabled = true
- bg.Size = UDim2.new(0,100,0,100)
- local il = Instance.new("ImageLabel")
- il.Parent = bg
- il.Size = UDim2.new(0,100,0,100)
- il.Image = "http://www.roblox.com/asset/?id=14271904476"
- il.BackgroundTransparency = 1
- local sp = Instance.new("SpecialMesh")
- sp.Parent = obj
- sp.MeshId = "rbxassetid://582280634"
- sp.TextureId = "rbxassetid://582281250"
- sp.Scale = Vector3.new(0.3, 0.3, 0.3)
- local rs = game:GetService("RunService")
- rs.Heartbeat:Connect(function()
- obj.Orientation += Vector3.new(0,1,0)
- end)
- obj.Touched:Connect(function()
- print("hi")
- touching = true
- if touching == true then
- obj:Destroy()
- audio:Play()
- tool.Parent = game.Workspace.Rezkiy787
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement