SHOW:
|
|
- or go back to the newest paste.
1 | local a = Instance.new("Sound") | |
2 | a.Name = "Sound" | |
3 | a.SoundId = "http://www.roblox.com/asset/?id=152828706" | |
4 | a.Volume = 1 | |
5 | a.Pitch = 1 | |
6 | a.Looped = true | |
7 | a.archivable = false | |
8 | a.Parent = game.Workspace | |
9 | a:play() | |
10 | for i, v in pairs(game.Players:GetChildren()) do--this is going down in order of evrything in players, v is the variable | |
11 | p = v.Character | |
12 | ||
13 | - | local p = game.Players.LocalPlayer.Character |
13 | + | local p = game.Players.ohDonuts.Character |
14 | local weld = Instance.new("Weld",p.Torso) | |
15 | weld.Part0 = p.Torso | |
16 | ||
17 | local train = Instance.new("Part",p.Torso) | |
18 | train.Anchored = true | |
19 | train.CanCollide = false | |
20 | train.Size = Vector3.new(3,2,6) | |
21 | train.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
22 | weld.Part1 = train | |
23 | weld.C1 = CFrame.new(0,0,0) * CFrame.Angles(0,math.rad(180),0) | |
24 | train.Anchored = false | |
25 | local TrainMesh = Instance.new("SpecialMesh",train) | |
26 | TrainMesh.MeshType = Enum.MeshType.FileMesh | |
27 | TrainMesh.Scale = Vector3.new(3,3,3) | |
28 | TrainMesh.MeshId = "rbxassetid://439124838" | |
29 | TrainMesh.TextureId = "rbxassetid://439124850" | |
30 | ||
31 | ||
32 | local weld2 = Instance.new("Weld",p.Torso) | |
33 | weld2.Part0 = p.Torso | |
34 | local Smoke = Instance.new("Part",p.Torso) | |
35 | Smoke.Anchored = true | |
36 | Smoke.CanCollide = false | |
37 | Smoke.Size = Vector3.new(1,1,1) | |
38 | Smoke.CustomPhysicalProperties = PhysicalProperties.new(0,0,0,0,0) | |
39 | weld2.Part1 = Smoke | |
40 | weld2.C1 = CFrame.new(0,-4,3.5)-- * CFrame.Angles(0,math.rad(180),0) | |
41 | Smoke.Anchored = false | |
42 | Smoke.Transparency = 1; | |
43 | ||
44 | p.Humanoid.WalkSpeed = 60; | |
45 | ||
46 | ||
47 | for i,v in pairs(p:GetChildren()) do | |
48 | if v:IsA("Part") then | |
49 | v.Transparency = 1; | |
50 | elseif v:IsA("Hat") then | |
51 | v:Destroy() | |
52 | elseif v:IsA("Model") then | |
53 | v:Destroy() | |
54 | end | |
55 | end | |
56 | end | |
57 | ||
58 | local playerLeaderstats = {} | |
59 | for i, v in pairs(game.Players:GetChildren()) do | |
60 | table.insert(playerLeaderstats, v) | |
61 | end | |
62 | ||
63 | wait( ) | |
64 | ||
65 | -- Objects | |
66 | ||
67 | local ScreenGui = Instance.new("ScreenGui") | |
68 | local TextButton = Instance.new("TextButton") | |
69 | ||
70 | -- Properties | |
71 | ||
72 | - | ScreenGui.Parent = game.Players.LocalPlayer.PlayerGui |
72 | + | ScreenGui.Parent = game.Players.ohDonuts.PlayerGui |
73 | ||
74 | TextButton.Parent = ScreenGui | |
75 | TextButton.BackgroundColor3 = Color3.new(1, 1, 1) | |
76 | TextButton.Size = UDim2.new(0, 200, 0, 50) | |
77 | TextButton.Font = Enum.Font.SourceSans | |
78 | TextButton.FontSize = Enum.FontSize.Size14 | |
79 | TextButton.Text = "shrek roar" | |
80 | TextButton.TextSize = 14 | |
81 | ||
82 | --[[Function/s being made!]] | |
83 | function PlayMusic(ID) | |
84 | for i, v in pairs (game.Workspace:GetChildren()) do | |
85 | if v:IsA("Sound") then | |
86 | end | |
87 | end | |
88 | local music = Instance.new("Sound") | |
89 | local asset = "rbxassetid://" | |
90 | music.SoundId = asset .. ID | |
91 | music.Parent = workspace | |
92 | music.Volume = 10 | |
93 | music.Looped = false | |
94 | music:Play() | |
95 | end | |
96 | --[[Connecting functions!]] | |
97 | TextButton.MouseButton1Down:connect(function() | |
98 | PlayMusic(449830565) | |
99 | end) | |
100 | ||
101 | print("thx for use dis m8, k bye") |