afunny

Run Settings
LanguageLua
Language Version
Run Command
local player = owner function mesh(i, t) local m = Instance.new("SpecialMesh", i) m.MeshType = Enum.MeshType.FileMesh if t == "Head" then m.MeshId = "rbxasset://fonts/head.mesh" end if t == "Torso" then m.MeshId = "rbxasset://fonts/torso.mesh" end if t == "Limb" then m.MeshId = "rbxasset://fonts/leftarm.mesh" end end local pp = PhysicalProperties.new(Enum.Material.Plastic) function normalize(p) p.CustomPhysicalProperties = pp end local character = player.Character local rig = loadstring(game:GetService("HttpService"):GetAsync("https://glot.io/snippets/gml0iakdtd/raw/dio.lua"))() rig.Parent = workspace rig.HumanoidRootPart.Anchored = true rig.HumanoidRootPart.CFrame = CFrame.new(9e9, 9e9, 9e9) local model = Instance.new("Model", workspace) local head = Instance.new("Part", model) head.Size = Vector3.new(2, 1, 1) head.Color = Color3.new(0.1,0.1,0.1) head.CFrame = character.HumanoidRootPart.CFrame local chatsound = Instance.new("Sound", head) chatsound.Volume = 2 chatsound.SoundId = "rbxasset://sounds/bass.wav" local throwsound = Instance.new("Sound", head) throwsound.Volume = 2 throwsound.SoundId = "rbxasset://sounds/splat.wav" local movesound = Instance.new("Sound", head) movesound.Volume = 2 movesound.SoundId = "rbxasset://sounds/clickfast.wav" movesound.Looped = true movesound:Play() local hitsound = Instance.new("Sound", head) hitsound.Volume = 2 hitsound.SoundId = "rbxasset://sounds/Kid saying Ouch.wav" local torso = Instance.new("Part", model) torso.Name = "part" torso.Color = Color3.new(0.1,0.1,0.1) torso.Size = Vector3.new(2, 2, 1) torso.CFrame = character.HumanoidRootPart.CFrame local leg = Instance.new("Part", model) leg.Name = "leg" leg.Color = Color3.new(0.1,0.1,0.1) leg.Size = Vector3.new(1, 2, 1) leg.CFrame = character.HumanoidRootPart.CFrame local otherleg = Instance.new("Part", model) otherleg.Name = "otherleg" otherleg.Color = Color3.new(0.1,0.1,0.1) otherleg.Size = Vector3.new(1, 2, 1) otherleg.CFrame = character.HumanoidRootPart.CFrame otherleg.Material = Enum.Material.ForceField leg.Material = Enum.Material.ForceField head.Material = Enum.Material.ForceField torso.Material = Enum.Material.ForceField normalize(otherleg) normalize(leg) normalize(torso) normalize(head) local at0 = Instance.new("Attachment", head) at0.CFrame = CFrame.new(0, -0.5, 0, 0, 1, -0, -1, 0, 0, 0, 0, 1) local at1 = Instance.new("Attachment", torso) at1.CFrame = CFrame.new(0, 1, 0, 0, 1, -0, -1, 0, 0, 0, 0, 1) local socket = Instance.new("BallSocketConstraint", head) socket.Attachment0 = at0 socket.Attachment1 = at1 local at0 = Instance.new("Attachment", leg) at0.CFrame = CFrame.new(0, 1, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1) local at1 = Instance.new("Attachment", torso) at1.CFrame = CFrame.new(0.5, -1, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1) local socket = Instance.new("BallSocketConstraint", leg) socket.Attachment0 = at0 socket.Attachment1 = at1 local at0 = Instance.new("Attachment", otherleg) at0.CFrame = CFrame.new(0, 1, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1) local at1 = Instance.new("Attachment", torso) at1.CFrame = CFrame.new(-0.5, -1, 0, 0, -1, 0, 1, 0, -0, 0, 0, 1) local socket = Instance.new("BallSocketConstraint", otherleg) socket.Attachment0 = at0 socket.Attachment1 = at1 model.PrimaryPart = head Instance.new("Decal", head).Texture = "rbxasset://Textures/face.png" player.Character = model local ram = Instance.new("RemoteEvent", player.Character) ram.Name = "Ram" local grab = Instance.new("RemoteEvent", player.Character) grab.Name = "Grab" local ograb = Instance.new("RemoteEvent", player.Character) ograb.Name = "OtherGrab" local nograb = Instance.new("RemoteEvent", player.Character) nograb.Name = "noGrab" local whatever = Instance.new("RemoteEvent", player.Character) whatever.Name = "whatever" local te = Instance.new("RemoteEvent", player.Character) te.Name = "tool" local grab0 = nil local grab1 = nil local grabc = nil local grab2 = nil local grab3 = nil local graboc = nil grab.OnServerEvent:Connect(function(p, part, cframe) local c = leg:FindFirstChildWhichIsA("UniversalConstraint") if c then c:Destroy() end local c = leg:FindFirstChild("grab") if c then c:Destroy() end grab0 = Instance.new("Attachment", leg) grab0.Name = "grab" grab1 = Instance.new("Attachment", part) grab0.CFrame = CFrame.new(0, -1, 0, 0, 1, -0, -1, 0, 0, 0, 0, 1) grab1.WorldCFrame = cframe grabc = Instance.new("UniversalConstraint", leg) grabc.Attachment0 = grab0 grabc.Attachment1 = grab1 end) ograb.OnServerEvent:Connect(function(p, part, cframe) local c = otherleg:FindFirstChildWhichIsA("UniversalConstraint") if c then c:Destroy() end local c = otherleg:FindFirstChild("grab") if c then c:Destroy() end grab2 = Instance.new("Attachment", otherleg) grab2.Name = "grab" grab3 = Instance.new("Attachment", part) grab2.CFrame = CFrame.new(0, -1, 0, 0, 1, -0, -1, 0, 0, 0, 0, 1) grab3.WorldCFrame = cframe graboc = Instance.new("UniversalConstraint", otherleg) graboc.Attachment0 = grab2 graboc.Attachment1 = grab3 end) nograb.OnServerEvent:Connect(function() if grab0 then grab0:Destroy() end if grab1 then grab1:Destroy() end if grabc then grabc:Destroy() end if grab2 then grab2:Destroy() end if grab3 then grab3:Destroy() end if graboc then graboc:Destroy() end end) ram.OnServerEvent:Connect(function() throwsound:Play() local connection = head.Touched:Connect(function(part) local humanoid = part.Parent:FindFirstChildWhichIsA("Humanoid") if humanoid then hitsound:Play() humanoid:TakeDamage(head.Velocity.Magnitude / 4) end end) task.wait(3) connection:Disconnect() end) function snd(id, pos, vol) local s = Instance.new("Sound", torso) s.SoundId = id s.TimePosition = pos s.Volume = vol s.PlayOnRemove = true s:Destroy() end whatever.OnServerEvent:Connect(function() task.defer(function() snd("rbxassetid://8397760941", 0.9, 1) local explosion = Instance.new("Explosion", workspace) explosion.Position = head.Position end) end) task.defer(function() local h = 0 while true do h += 1/180 if h > 1 then h -= 1 end local c = Color3.fromHSV(h, 1, 1) head.Color, torso.Color, leg.Color, otherleg.Color = c,c,c,c task.wait() end end) function weld(handle: Part, leg: Part, grip: CFrame) local w = Instance.new("Weld", handle) w.Name = "ToolWeld" w.Part0 = handle w.Part1 = leg w.C0 = grip end local currenttool = nil function wraptool(tool: Tool) tool.Equipped:Connect(function() tool.Parent = rig if tool.RequiresHandle == true then tool.Handle.CustomPhysicalProperties = PhysicalProperties.new(0, 0.3, 0, 0, 0) weld(tool.Handle, otherleg, tool.Grip) end currenttool = tool end) tool.Unequipped:Connect(function() if tool.RequiresHandle == true then tool.Handle.ToolWeld:Destroy() end tool.Parent = player.Backpack task.wait() currenttool = nil end) end te.OnServerEvent:Connect(function() if currenttool then currenttool:Activate() end end) local bp = player.Backpack for i, v in bp:GetChildren() do if v:IsA("Tool") then wraptool(v) end end bp.ChildAdded:Connect(function(v) if v:IsA("Tool") then wraptool(v) end end) player.Chatted:Connect(function(chat) chatsound:Play() for i, object in head:GetChildren() do if object:IsA("BillboardGui") then object.StudsOffset = object.StudsOffset + Vector3.new(0, 1.1, 0) end end local gui = Instance.new("BillboardGui", head) gui.Size = UDim2.new(5, 0, 1, 0) gui.StudsOffset = Vector3.new(0, 2, 0) if chat.lower(chat) == "better call saul" then chatsound.SoundId = "rbxassetid://9106904975" local text = Instance.new("TextBox", gui) text.Size = UDim2.new(1, 0, 1, 0) text.BackgroundTransparency = 1 text.Font = Enum.Font.Arcade text.TextStrokeTransparency = 0 text.TextColor3 = Color3.new(1, 1, 1) text.TextScaled = true text.Text = chat game:GetService("Debris"):AddItem(gui, 5) task.wait(5) chatsound.SoundId = "rbxasset://sounds/bass.wav" elseif chat.lower(chat) == "is nice" then chatsound.SoundId = "rbxassetid://5570758643" local text = Instance.new("TextBox", gui) text.Size = UDim2.new(1, 0, 1, 0) text.BackgroundTransparency = 1 text.Font = Enum.Font.Arcade text.TextStrokeTransparency = 0 text.TextColor3 = Color3.new(1, 1, 1) text.TextScaled = true text.Text = chat game:GetService("Debris"):AddItem(gui, 5) task.wait(5) chatsound.SoundId = "rbxasset://sounds/bass.wav" elseif chat.lower(chat) == "boom" then chatsound.SoundId = "rbxassetid://8397760941" local text = Instance.new("TextBox", gui) text.Size = UDim2.new(1, 0, 1, 0) text.BackgroundTransparency = 1 text.Font = Enum.Font.Arcade text.TextStrokeTransparency = 0 text.TextColor3 = Color3.new(1, 1, 1) text.TextScaled = true text.Text = chat game:GetService("Debris"):AddItem(gui, 1) task.wait(1) local explosion = Instance.new("Explosion", workspace) explosion.Position = head.Position task.wait(3) chatsound.SoundId = "rbxasset://sounds/bass.wav" elseif chat.lower(chat) == "zzzzz" or chat.lower(chat) == "a mimir" then chatsound.SoundId = "rbxassetid://7067277738" local text = Instance.new("TextBox", gui) text.Size = UDim2.new(1, 0, 1, 0) text.BackgroundTransparency = 1 text.Font = Enum.Font.Arcade text.TextStrokeTransparency = 0 text.TextColor3 = Color3.new(1, 1, 1) text.TextScaled = true text.Text = chat game:GetService("Debris"):AddItem(gui, 11) task.wait(11) chatsound.SoundId = "rbxasset://sounds/bass.wav" else local text = Instance.new("TextBox", gui) text.Size = UDim2.new(1, 0, 1, 0) text.BackgroundTransparency = 1 text.Font = Enum.Font.Arcade text.TextStrokeTransparency = 0 text.TextColor3 = Color3.new(1, 1, 1) text.TextScaled = true text.Text = chat game:GetService("Debris"):AddItem(gui, #chat / 2) end end) NLS([[ local player = game.Players.LocalPlayer local canmove = true local ramming = false local character = player.Character local camera = workspace.CurrentCamera camera.CameraSubject = character.Part local ramevent = character:FindFirstChild("Ram") if ramevent then print("found ramevent") end local grabevent = character:FindFirstChild("Grab") if grabevent then print("found grabevent") end local othergrabevent = character:FindFirstChild("OtherGrab") if othergrabevent then print("found othergrabevent") end local nograbevent = character:FindFirstChild("noGrab") if nograbevent then print("found nograbevent") end local whatever = character:FindFirstChild("whatever") if whatever then print("found dumbevent") end local toolevent = character:FindFirstChild("tool") if toolevent then print("found toolevent") end local mouse = player:GetMouse() local UserInputService = game:GetService("UserInputService") UserInputService.InputBegan:Connect(function(input, position) if UserInputService:GetFocusedTextBox() == nil then if input.UserInputType == Enum.UserInputType.Keyboard then if canmove == true then if ramming == false then if input.KeyCode == Enum.KeyCode.W then local velocity = Instance.new("BodyForce", character.Part) velocity.Force = camera.CFrame.LookVector * 500 velocity.Name = "ForwardsVelocity" end if input.KeyCode == Enum.KeyCode.A then local velocity = Instance.new("BodyForce", character.Part) local cframe = camera.CFrame * CFrame.Angles(0, math.rad(90), 0) velocity.Force = cframe.LookVector * 500 velocity.Name = "LeftVelocity" end if input.KeyCode == Enum.KeyCode.S then local velocity = Instance.new("BodyForce", character.Part) velocity.Force = camera.CFrame.LookVector * -500 velocity.Name = "BackwardsVelocity" end if input.KeyCode == Enum.KeyCode.D then local velocity = Instance.new("BodyForce", character.Part) local cframe = camera.CFrame * CFrame.Angles(0, math.rad(-90), 0) velocity.Force = cframe.LookVector * 500 velocity.Name = "RightVelocity" end if input.KeyCode == Enum.KeyCode.Space then canmove = false local velocity = Instance.new("BodyForce", character.Part) velocity.Force = Vector3.new(0, 5000, 0) game:GetService("Debris"):AddItem(velocity, 0.1) task.wait(0.2) canmove = true end if input.KeyCode == Enum.KeyCode.F then canmove = false ramming = true local v = mouse.Hit.LookVector * 100 + character.Part.Velocity local velocity = Instance.new("BodyVelocity", character.Part) velocity.MaxForce = Vector3.new(math.huge, math.huge, math.huge) velocity.Velocity = v game:GetService("Debris"):AddItem(velocity, 0.05) ramevent:FireServer() task.wait(3) canmove = true ramming = false end end end if input.KeyCode == Enum.KeyCode.Z and ramming == false then if canmove == true then canmove = false else canmove = true end end if input.KeyCode == Enum.KeyCode.E and ramming == false then if mouse.Target then grabevent:FireServer(mouse.Target, mouse.Hit) end end if input.KeyCode == Enum.KeyCode.Q and ramming == false then if mouse.Target then othergrabevent:FireServer(mouse.Target, mouse.Hit) end end if input.KeyCode == Enum.KeyCode.X then if mouse.Target then nograbevent:FireServer() end end if input.KeyCode == Enum.KeyCode.C then whatever:FireServer() end end end end) UserInputService.InputEnded:Connect(function(input) if UserInputService:GetFocusedTextBox() == nil then if input.UserInputType == Enum.UserInputType.Keyboard then if input.KeyCode == Enum.KeyCode.W then local velocity = character.Part:FindFirstChild("ForwardsVelocity") if velocity then velocity:Destroy() end end if input.KeyCode == Enum.KeyCode.A then local velocity = character.Part:FindFirstChild("LeftVelocity") if velocity then velocity:Destroy() end end if input.KeyCode == Enum.KeyCode.S then local velocity = character.Part:FindFirstChild("BackwardsVelocity") if velocity then velocity:Destroy() end end if input.KeyCode == Enum.KeyCode.D then local velocity = character.Part:FindFirstChild("RightVelocity") if velocity then velocity:Destroy() end end end end end) player.Chatted:Connect(function(chat) if chat.lower(chat) == "zzzzz" or chat.lower(chat) == "a mimir" then canmove = false task.wait(11) if canmove == false then canmove = true end end end) local mouse = owner:GetMouse() mouse.Button1Down:Connect(function() toolremote:FireServer() end) local bodyforce = Instance.new("BodyForce", character.Part) bodyforce.Force = Vector3.new(0, 1000, 0) local bodygyro = Instance.new("BodyGyro", character.Part) bodygyro.MaxTorque = Vector3.new(math.huge, math.huge, math.huge) while true do bodygyro.CFrame = camera.CFrame if canmove == false then bodyforce.Parent = nil bodygyro.Parent = nil else bodyforce.Parent = character.Part bodygyro.Parent = character.Part end task.wait() end ]], player.PlayerGui) while true do movesound.PlaybackSpeed = head.Velocity.Magnitude / 10 if head.Velocity.Magnitude > 10 then movesound.Volume = 0.5 else movesound.Volume = 0 end task.wait() end
Editor Settings
Theme
Key bindings
Full width
Lines