SHOW:
|
|
- or go back to the newest paste.
| 1 | plr = game.Players.LocalPlayer | |
| 2 | - | local lovecounter = false |
| 2 | + | mouse = plr:GetMouse() |
| 3 | - | local love = 99 |
| 3 | + | part = nil |
| 4 | - | local sprint = false |
| 4 | + | bp = nil |
| 5 | - | local done = false |
| 5 | + | particles = nil |
| 6 | - | local canheal = false |
| 6 | + | |
| 7 | - | local deathchat1 = false |
| 7 | + | function clerp(a,b,c,d) |
| 8 | - | local once = true |
| 8 | + | for i = 0,d,.01 do |
| 9 | - | local breakjoints = true |
| 9 | + | a.CFrame = CFrame.new(b:lerp(c,i)) |
| 10 | - | local dead = false |
| 10 | + | |
| 11 | - | local candie = true |
| 11 | + | |
| 12 | - | local deathchat = false |
| 12 | + | |
| 13 | - | local canattack = true |
| 13 | + | function slerp(a2,b2,c2,d2) |
| 14 | - | local colorred = 0 |
| 14 | + | for i2 = 0,d2,.01 do |
| 15 | - | local lala = true |
| 15 | + | a2.CFrame = CFrame.new(b2:lerp(c2,i2)) |
| 16 | - | local idleon = true |
| 16 | + | |
| 17 | - | local walking = true |
| 17 | + | |
| 18 | - | local idle1 = true |
| 18 | + | |
| 19 | - | local canchange = false |
| 19 | + | |
| 20 | - | local idle = true |
| 20 | + | |
| 21 | - | local p = game.Players.LocalPlayer |
| 21 | + | |
| 22 | - | local char = p.Character |
| 22 | + | if key == "e" and plr.Character.Parent == workspace then |
| 23 | - | local mouse = p:GetMouse() |
| 23 | + | plr.Character.Parent = workspace.Camera |
| 24 | - | local larm = char["Left Arm"] |
| 24 | + | plr.Character.Archivable = true |
| 25 | - | local rarm = char["Right Arm"] |
| 25 | + | Instance.new("ForceField",plr.Character).Visible = false
|
| 26 | - | local lleg = char["Left Leg"] |
| 26 | + | for y,t in pairs(plr.Character:GetChildren()) do |
| 27 | - | local rleg = char["Right Leg"] |
| 27 | + | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
|
| 28 | - | local hed = char.Head |
| 28 | + | t.Transparency = 1 |
| 29 | - | local torso = char.Torso |
| 29 | + | if t.Name == "Head" and t:FindFirstChild("face") then
|
| 30 | - | local hum = char.Humanoid |
| 30 | + | t.face.Transparency = 1 |
| 31 | end | |
| 32 | - | um = Instance.new("Part",char)
|
| 32 | + | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
|
| 33 | - | um.Name = "Immune" |
| 33 | + | t.Handle.Transparency = 1 |
| 34 | - | um.CanCollide = false |
| 34 | + | |
| 35 | - | um.Anchored = true |
| 35 | + | |
| 36 | - | um.Transparency = 1 |
| 36 | + | elseif key == "z" and plr.Character.Parent == workspace.Camera and part == nil then |
| 37 | - | dead = true |
| 37 | + | plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p) |
| 38 | - | local cam = game.Workspace.CurrentCamera |
| 38 | + | elseif key == "x" and plr.Character.Parent == workspace.Camera and part == nil then |
| 39 | - | local root = char.HumanoidRootPart |
| 39 | + | if plr.Character.Torso.Anchored == true then |
| 40 | - | local deb = false |
| 40 | + | for y,t in pairs(plr.Character:GetChildren()) do |
| 41 | - | local shot = 0 |
| 41 | + | if t:IsA("Part") then
|
| 42 | - | local debris=game:service"Debris" |
| 42 | + | t.Anchored = false |
| 43 | - | local l = game:GetService("Lighting")
|
| 43 | + | |
| 44 | - | local rs = game:GetService("RunService").RenderStepped
|
| 44 | + | |
| 45 | - | local Create = LoadLibrary("RbxUtility").Create
|
| 45 | + | else |
| 46 | - | ff = Instance.new("ForceField",char)
|
| 46 | + | for y,t in pairs(plr.Character:GetChildren()) do |
| 47 | - | ff.Visible = false |
| 47 | + | if t:IsA("Part") then
|
| 48 | - | ArtificialHB = Create("BindableEvent", script){
|
| 48 | + | t.Anchored = true |
| 49 | - | Parent = script, |
| 49 | + | |
| 50 | - | Name = "Heartbeat", |
| 50 | + | |
| 51 | - | } |
| 51 | + | |
| 52 | - | CFuncs = {
|
| 52 | + | elseif key == "c" and plr.Character.Parent == workspace.Camera and part ~= nil then |
| 53 | - | |
| 53 | + | local clone = part:Clone() |
| 54 | - | |
| 54 | + | clone.Parent = workspace |
| 55 | - | ["Sound"] = {
|
| 55 | + | clone.Anchored = false |
| 56 | - | Create = function(id, par, vol, pit) |
| 56 | + | clone:ClearAllChildren() |
| 57 | - | coroutine.resume(coroutine.create(function() |
| 57 | + | clone.CanCollide = true |
| 58 | - | local S = Create("Sound"){
|
| 58 | + | bp.Parent = clone |
| 59 | - | Volume = vol, |
| 59 | + | particles.Parent = clone |
| 60 | - | Pitch = pit or 1, |
| 60 | + | if part.Parent:FindFirstChildOfClass("Humanoid") then
|
| 61 | - | SoundId = id, |
| 61 | + | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false
|
| 62 | - | Parent = par or workspace, |
| 62 | + | |
| 63 | - | } |
| 63 | + | part:Destroy() |
| 64 | - | wait() |
| 64 | + | part = clone |
| 65 | - | S:play() |
| 65 | + | elseif key == "t" and plr.Character.Parent == workspace.Camera and part == nil then |
| 66 | - | game:GetService("Debris"):AddItem(S, 6)
|
| 66 | + | plr.Character.Parent = workspace |
| 67 | - | end)) |
| 67 | + | plr.Character.Archivable = false |
| 68 | - | end; |
| 68 | + | plr.Character:FindFirstChildOfClass("ForceField"):Remove()
|
| 69 | - | }; |
| 69 | + | for y,t in pairs(plr.Character:GetChildren()) do |
| 70 | - | |
| 70 | + | if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
|
| 71 | - | |
| 71 | + | t.Transparency = 0 |
| 72 | - | |
| 72 | + | if t.Name == "Head" and t:FindFirstChild("face") then
|
| 73 | - | CreateTemplate = {
|
| 73 | + | t.face.Transparency = 0 |
| 74 | - | |
| 74 | + | |
| 75 | - | }; |
| 75 | + | elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
|
| 76 | - | } |
| 76 | + | t.Handle.Transparency = 0 |
| 77 | - | function swait(num) |
| 77 | + | |
| 78 | - | if num == 0 or num == nil then |
| 78 | + | |
| 79 | - | ArtificialHB.Event:wait() |
| 79 | + | |
| 80 | - | else |
| 80 | + | |
| 81 | - | for i = 0, num do |
| 81 | + | mouse.Button1Down:connect(function() |
| 82 | - | ArtificialHB.Event:wait() |
| 82 | + | if plr.Character.Parent == workspace.Camera then |
| 83 | - | end |
| 83 | + | if mouse ~= nil then |
| 84 | - | end |
| 84 | + | if mouse.Target ~= nil then |
| 85 | part = mouse.Target | |
| 86 | - | ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
|
| 86 | + | bp = Instance.new("BodyPosition",part)
|
| 87 | - | function lerp(a, b, t) -- Linear interpolation |
| 87 | + | bp.MaxForce = Vector3.new(math.huge,math.huge,math.huge) |
| 88 | - | return a + (b - a)*t |
| 88 | + | bp.Position = part.Position |
| 89 | particles = Instance.new("ParticleEmitter",part)
| |
| 90 | - | |
| 90 | + | particles.Color = ColorSequence.new(Color3.new(255,255,255)) |
| 91 | - | function slerp(a, b, t) --Spherical interpolation |
| 91 | + | particles.Size = NumberSequence.new(1) |
| 92 | - | dot = a:Dot(b) |
| 92 | + | particles.Texture = "rbxassetid://292289455" |
| 93 | - | if dot > 0.99999 or dot < -0.99999 then |
| 93 | + | particles.VelocitySpread = 360 |
| 94 | - | return t <= 0.5 and a or b |
| 94 | + | particles.Speed = NumberRange.new(0) |
| 95 | - | else |
| 95 | + | particles.RotSpeed = NumberRange.new(0) |
| 96 | - | r = math.acos(dot) |
| 96 | + | particles.Rotation = NumberRange.new(0) |
| 97 | - | return (a*math.sin((1 - t)*r) + b*math.sin(t*r)) / math.sin(r) |
| 97 | + | particles.Rate = 250 |
| 98 | - | end |
| 98 | + | particles.Lifetime = NumberRange.new(.2,.4) |
| 99 | particles.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1,0),NumberSequenceKeypoint.new(.12,.688,0),NumberSequenceKeypoint.new(.891,.887,0),NumberSequenceKeypoint.new(1,1,0)})
| |
| 100 | - | function matrixInterpolate(a, b, t) |
| 100 | + | dwn = true |
| 101 | - | local ax, ay, az, a00, a01, a02, a10, a11, a12, a20, a21, a22 = a:components() |
| 101 | + | |
| 102 | - | local bx, by, bz, b00, b01, b02, b10, b11, b12, b20, b21, b22 = b:components() |
| 102 | + | |
| 103 | - | local v0 = lerp(Vector3.new(ax, ay, az), Vector3.new(bx , by , bz), t) -- Position |
| 103 | + | while dwn == true do |
| 104 | - | local v1 = slerp(Vector3.new(a00, a01, a02), Vector3.new(b00, b01, b02), t) -- Vector right |
| 104 | + | wait() |
| 105 | - | local v2 = slerp(Vector3.new(a10, a11, a12), Vector3.new(b10, b11, b12), t) -- Vector up |
| 105 | + | bp.Position = mouse.hit.p |
| 106 | - | local v3 = slerp(Vector3.new(a20, a21, a22), Vector3.new(b20, b21, b22), t) -- Vector back |
| 106 | + | if part then |
| 107 | - | local t = v1:Dot(v2) |
| 107 | + | if part.Parent:FindFirstChildOfClass("Humanoid") then
|
| 108 | - | if not (t < 0 or t == 0 or t > 0) then -- Failsafe |
| 108 | + | part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
|
| 109 | - | return CFrame.new() |
| 109 | + | |
| 110 | - | end |
| 110 | + | |
| 111 | - | return CFrame.new( |
| 111 | + | |
| 112 | - | v0.x, v0.y, v0.z, |
| 112 | + | |
| 113 | - | v1.x, v1.y, v1.z, |
| 113 | + | |
| 114 | - | v2.x, v2.y, v2.z, |
| 114 | + | mouse.Button1Up:connect(function() |
| 115 | - | v3.x, v3.y, v3.z) |
| 115 | + | dwn = false |
| 116 | if part then if part.Parent:FindFirstChildOfClass("Humanoid") then part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = false end part = nil end
| |
| 117 | - | ---------------------------------------------------- |
| 117 | + | if bp then bp:Destroy() end |
| 118 | - | function genWeld(a,b) |
| 118 | + | if particles then particles:Destroy() end |
| 119 | - | local w = Instance.new("Weld",a)
|
| 119 | + | |
| 120 | - | w.Part0 = a |
| 120 | + | base = Instance.new("ScreenGui",plr.PlayerGui)
|
| 121 | - | w.Part1 = b |
| 121 | + | bbg = Instance.new("BillboardGui",plr.Character.Head)
|
| 122 | - | return w |
| 122 | + | bbg.Size = UDim2.new(0,200,50) |
| 123 | bbg.StudsOffset = Vector3.new(0,3,0) | |
| 124 | - | function weld(a, b) |
| 124 | + | bbgTl = Instance.new("TextLabel",bbg)
|
| 125 | - | local weld = Instance.new("Weld")
|
| 125 | + | bbgTl.BackgroundTransparency = 1 |
| 126 | - | weld.Name = "W" |
| 126 | + | bbgTl.Size = UDim2.new(10,0,1,0) |
| 127 | - | weld.Part0 = a |
| 127 | + | bbgTl.Position = UDim2.new(-4.5,0,0,0) |
| 128 | - | weld.Part1 = b |
| 128 | + | bbgTl.Font = "Antique" |
| 129 | - | weld.C0 = a.CFrame:inverse() * b.CFrame |
| 129 | + | bbgTl.Text = " " |
| 130 | - | weld.Parent = a |
| 130 | + | bbgTl.TextSize = 40 |
| 131 | - | return weld; |
| 131 | + | bbgTl.TextStrokeColor3 = Color3.new(0,0,0) |
| 132 | bbgTl.TextColor3 = Color3.new(255,255,255) | |
| 133 | - | ---------------------------------------------------- |
| 133 | + | bbgTl.TextStrokeTransparency = 0 |
| 134 | - | function Lerp(c1,c2,al) |
| 134 | + | bbgTl.TextWrapped = true |
| 135 | - | local com1 = {c1.X,c1.Y,c1.Z,c1:toEulerAnglesXYZ()}
|
| 135 | + | plr.Chatted:connect(function(msg) |
| 136 | - | local com2 = {c2.X,c2.Y,c2.Z,c2:toEulerAnglesXYZ()}
|
| 136 | + | bbgTl.Text = msg |
| 137 | - | for i,v in pairs(com1) do |
| 137 | + | wait(5) |
| 138 | - | com1[i] = v+(com2[i]-v)*al |
| 138 | + | if bbgTl.Text == msg then |
| 139 | bbgTl.Text = " " | |
| 140 | - | return CFrame.new(com1[1],com1[2],com1[3]) * CFrame.Angles(select(4,unpack(com1))) |
| 140 | + | |
| 141 | end) | |
| 142 | - | ---------------------------------------------------- |
| 142 | + | touchCounter = 0 |
| 143 | - | newWeld = function(wp0, wp1, wc0x, wc0y, wc0z) |
| 143 | + | while wait() do |
| 144 | - | local wld = Instance.new("Weld", wp1)
|
| 144 | + | if plr.Character.Parent == workspace.Camera then |
| 145 | - | wld.Part0 = wp0 |
| 145 | + | local c = plr.Character:Clone() |
| 146 | - | wld.Part1 = wp1 |
| 146 | + | |
| 147 | for y,t in pairs(c:GetChildren()) do | |
| 148 | - | wld.C0 = CFrame.new(wc0x, wc0y, wc0z) |
| 148 | + | |
| 149 | t.CanCollide = false | |
| 150 | - | ---------------------------------------------------- |
| 150 | + | |
| 151 | - | function weld5(part0, part1, c0, c1) |
| 151 | + | t.Transparency = .6 |
| 152 | - | weeld=Instance.new("Weld", part0)
|
| 152 | + | t.TopSurface = "SmoothNoOutlines" |
| 153 | - | weeld.Part0=part0 |
| 153 | + | t.BottomSurface = "SmoothNoOutlines" |
| 154 | - | weeld.Part1=part1 |
| 154 | + | t.RightSurface = "SmoothNoOutlines" |
| 155 | - | weeld.C0=c0 |
| 155 | + | t.LeftSurface = "SmoothNoOutlines" |
| 156 | - | weeld.C1=c1 |
| 156 | + | t.FrontSurface = "SmoothNoOutlines" |
| 157 | - | return weeld |
| 157 | + | t.BackSurface = "SmoothNoOutlines" |
| 158 | t.Material = "Neon" | |
| 159 | - | ---------------------------------------------------- |
| 159 | + | t.BrickColor = BrickColor.new("Institutional white")
|
| 160 | - | function HasntTouched(plrname) |
| 160 | + | if t.Name == "Head" and t:FindFirstChild("face") then
|
| 161 | - | local ret = true |
| 161 | + | t.face:Remove() |
| 162 | - | for _, v in pairs(Touche) do |
| 162 | + | elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
|
| 163 | - | if v == plrname then |
| 163 | + | t.roblox:Remove() |
| 164 | - | ret = false |
| 164 | + | elseif t.Name == "HumanoidRootPart" then |
| 165 | t:Remove() | |
| 166 | end | |
| 167 | - | return ret |
| 167 | + | |
| 168 | t:Remove() | |
| 169 | - | newWeld(torso, larm, -1.5, 0.5, 0) |
| 169 | + | |
| 170 | - | larm.Weld.C1 = CFrame.new(0, 0.5, 0) |
| 170 | + | |
| 171 | - | newWeld(torso, rarm, 1.5, 0.5, 0) |
| 171 | + | |
| 172 | - | rarm.Weld.C1 = CFrame.new(0, 0.5, 0) |
| 172 | + | |
| 173 | - | newWeld(torso, hed, 0, 1.5, 0) |
| 173 | + | |
| 174 | - | newWeld(torso, lleg, -0.5, -1, 0) |
| 174 | + | end |