Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ------------
- --Safety Dough--
- ------------
- -----by-----
- --CKbackup--
- ------------
- --Player Stuff--
- player = game:GetService("Players").LocalPlayer
- chara = player.Character
- ch = chara:GetChildren()
- for i = 1, #ch do
- if ch[i].Name == "Torso" then
- ch[i].roblox.Transparency = 1
- elseif ch[i].Name == "Head" then
- ch[i].face.Transparency = 1
- ch[i].Transparency = 1
- elseif ch[i].ClassName == "Accessory" or ch[i].ClassName == "Shirt" or ch[i].ClassName == "Pants" or ch[i].ClassName == "ShirtGraphic" then
- ch[i]:Destroy()
- end
- end
- chara["Left Arm"].BrickColor = BrickColor.new("Cool yellow")
- chara["Right Arm"].BrickColor = BrickColor.new("Cool yellow")
- chara["Left Leg"].BrickColor = BrickColor.new("Medium blue")
- chara["Right Leg"].BrickColor = BrickColor.new("Medium blue")
- chara.Torso.BrickColor = BrickColor.new("Bright yellow")
- --Outfit--
- New = function(Object, Parent, Name, Data)
- local Object = Instance.new(Object)
- for Index, Value in pairs(Data or {}) do
- Object[Index] = Value
- end
- Object.Parent = Parent
- Object.Name = Name
- return Object
- end
- function ScatterEff(part)
- local eff1 = Instance.new("Folder",part)
- end
- function BurningEff(part)
- local eff1 = Instance.new("Folder",part)
- end
- FakeHead = New("Model",chara,"FakeHead",{})
- MainPart = New("Part",FakeHead,"MainPart",{FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 1, 1),CFrame = CFrame.new(2.29537678, 7.81603718, 0.746068954, 0.00980896503, 0.00110200304, 0.999957919, -0.000536994543, 1.00000548, -0.00109680078, -0.99994874, -0.0005262224, 0.00980964955),CanCollide = false,TopSurface = Enum.SurfaceType.Smooth,})
- Mesh = New("SpecialMesh",MainPart,"Mesh",{Scale = Vector3.new(1.25, 1.25, 1.25),})
- face = New("Decal",MainPart,"face",{Texture = "rbxasset://textures/face.png",})
- Weld = New("ManualWeld",MainPart,"Weld",{Part0 = MainPart,Part1 = chara.Head,C0 = CFrame.new(0, 0, 0, 0.00980896503, -0.000536994543, -0.99994874, 0.00110200304, 1.00000548, -0.0005262224, 0.999957919, -0.00109680078, 0.00980964955),C1 = CFrame.new(5.96046448e-008, -8.58306885e-006, 0, 0.00980896503, -0.000536994543, -0.99994874, 0.00110200304, 1.00000548, -0.0005262224, 0.999957919, -0.00109680078, 0.00980964955),})
- FakeHead.MainPart.BrickColor = BrickColor.new("Cool yellow")
- EyeFire = New("Part",FakeHead,"EyeFire",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.400000006, 0.200000003, 0.200000003),CFrame = CFrame.new(1.69668579, 8.11665249, 0.640022159, -0.00107900088, 0.999958038, -0.00980941113, -1.0000056, -0.00107390946, 0.000525554642, 0.000515007298, 0.00981007144, 0.999948859),CanCollide = false,Color = Color3.new(1, 0, 0),})
- Mesh = New("CylinderMesh",EyeFire,"Mesh",{Offset = Vector3.new(0.0500000007, 0, -0.0399999991),Scale = Vector3.new(1, 0.150000006, 1),})
- Weld = New("ManualWeld",EyeFire,"Weld",{Part0 = EyeFire,Part1 = MainPart,C0 = CFrame.new(0, 0, 0, -0.0010790003, -0.999999344, 0.000515000196, 0.999951363, -0.0010738963, 0.00981000345, -0.00980944186, 0.000525560055, 0.99995178),C1 = CFrame.new(0.100008011, 0.300009251, -0.600027919, 0.00980899762, -0.000536999898, -0.99995178, 0.00110200245, 0.999999344, -0.000526215415, 0.999951363, -0.00109678751, 0.00980958249),})
- local eff1 = Instance.new("ParticleEmitter",EyeFire)
- eff1.Size = NumberSequence.new(.1)
- eff1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
- eff1.LightEmission = 1
- eff1.Lifetime = NumberRange.new(.5)
- eff1.Speed = NumberRange.new(1)
- eff1.EmissionDirection = "Front"
- eff1.Rate = 100
- eff1.Texture = "rbxassetid://347504241"
- eff1.Acceleration = Vector3.new(0,10,0)
- eff1.Color = ColorSequence.new(Color3.new(1,0,0))
- local eff2 = Instance.new("ParticleEmitter",EyeFire)
- eff2.Size = NumberSequence.new(.1)
- eff2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(.2,0),NumberSequenceKeypoint.new(1,1)})
- eff2.LightEmission = 1
- eff2.Lifetime = NumberRange.new(.5)
- eff2.Speed = NumberRange.new(1)
- eff2.EmissionDirection = "Front"
- eff2.Rate = 100
- eff2.Texture = "rbxassetid://347504259"
- eff2.Acceleration = Vector3.new(0,10,0)
- eff2.Color = ColorSequence.new(Color3.new(1,0,0))
- local eff3 = Instance.new("ParticleEmitter",EyeFire)
- eff3.Size = NumberSequence.new(.1)
- eff3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0),NumberSequenceKeypoint.new(1,1)})
- eff3.LightEmission = 1
- eff3.Lifetime = NumberRange.new(.5)
- eff3.Speed = NumberRange.new(1)
- eff3.EmissionDirection = "Front"
- eff3.Rate = 100
- eff3.Texture = "rbxasset://textures/particles/fire_main.dds"
- eff3.Acceleration = Vector3.new(0,10,0)
- eff3.Color = ColorSequence.new(Color3.new(1,0,0))
- --Sounds--
- slashsnd = New("Sound",chara.Torso,"Slash",{SoundId = "rbxassetid://28144425",PlaybackSpeed = .7,Volume = 5})
- hitsnd = New("Sound",chara.Torso,"Hit",{SoundId = "rbxassetid://429400881",PlaybackSpeed = .7,Volume = 5})
- telesnd = New("Sound",chara.Torso,"Tele",{SoundId = "rbxassetid://2767090",PlaybackSpeed = .7,Volume = 5})
- burnsnd = New("Sound",chara.Torso,"Burn",{SoundId = "rbxassetid://32791565",PlaybackSpeed = .7,Volume = 5})
- music1 = New("Sound",chara.Torso,"Music1",{SoundId = "rbxassetid://151038517",PlaybackSpeed = .5,Volume = 10,Looped = true})
- music2 = New("Sound",chara.Torso,"Music2",{SoundId = "rbxassetid://11984351",PlaybackSpeed = .2,Volume = 5,Looped = true})
- deathmus = New("Sound",chara.Torso,"DeathMus",{SoundId = "rbxassetid://19094700",PlaybackSpeed = .5,Volume = 5,Looped = true})
- deathex = New("Sound",chara.Torso,"DeathEx",{SoundId = "rbxassetid://11984351",PlaybackSpeed = 1,Volume = 5})
- music1:Play()
- music2:Play()
- --Animations--
- swinganim = chara.Humanoid:LoadAnimation(New("Animation",chara,"Swing",{AnimationId = "rbxassetid://186934658"}))
- --Name Tag--
- local naeeym = Instance.new("BillboardGui",chara)
- naeeym.Size = UDim2.new(0,100,0,40)
- naeeym.StudsOffset = Vector3.new(0,2,0)
- naeeym.Adornee = chara.Head
- local tecks = Instance.new("TextLabel",naeeym)
- tecks.BackgroundTransparency = 1
- tecks.BorderSizePixel = 0
- tecks.Text = "Safety Dough MADE BY CKbackup"
- tecks.Font = "Fantasy"
- tecks.FontSize = "Size24"
- tecks.TextStrokeTransparency = 0
- tecks.TextStrokeColor3 = Color3.new(0,0,0)
- tecks.TextColor3 = Color3.new(0,0,0)
- tecks.Size = UDim2.new(1,0,0.5,0)
- --Soul Steal--
- function SoulSteal(pos)
- local soulst = coroutine.wrap(function()
- local soul = Instance.new("Part",chara)
- soul.Size = Vector3.new(0,0,0)
- soul.CanCollide = false
- soul.Anchored = false
- soul.Position = pos
- soul.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
- soul.Transparency = 1
- local ptc = Instance.new("ParticleEmitter",soul)
- ptc.Texture = "http://www.roblox.com/asset/?id=413366101"
- ptc.Size = NumberSequence.new(.5)
- ptc.LockedToPart = true
- ptc.Speed = NumberRange.new(0)
- ptc.Lifetime = NumberRange.new(9999)
- local bodpos = Instance.new("BodyPosition",soul)
- bodpos.Position = pos
- wait(2)
- soul.Touched:connect(function(hit)
- if hit.Parent == chara then
- soul:Destroy()
- end
- end)
- while soul do
- wait(.1)
- bodpos.Position = chara.Torso.Position
- end
- end)
- soulst()
- end
- --Death of a Mortal--
- function KillMortal(hitdude)
- local torsy = nil
- if hitdude:FindFirstChild("Torso")~=nil then
- torsy = hitdude.Torso
- elseif hitdude:FindFirstChild("UpperTorso")~=nil then
- torsy = hitdude.UpperTorso
- end
- local val = Instance.new("ObjectValue",hitdude)
- val.Name = "HasBeenHit"
- hitdude:BreakJoints()
- hitdude.Humanoid:Destroy()
- SoulSteal(torsy.Position)
- local chi = hitdude:GetChildren()
- for i = 1, #chi do
- if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
- local bodpos = Instance.new("BodyPosition",chi[i])
- bodpos.Position = chi[i].Position + Vector3.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))
- ScatterEff(chi[i])
- chi[i].BrickColor = BrickColor.new("Really black")
- end
- end
- for i = 1, 4 do
- for i = 1, #chi do
- if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
- chi[i].Transparency = chi[i].Transparency + .25
- wait(.01)
- end
- end
- end
- for i = 1, #chi do
- if chi[i].ClassName == "Part" or chi[i].ClassName == "MeshPart" then
- chi[i]:Destroy()
- end
- end
- end
- --Arm Touch--
- bladeactive = false
- chara["Right Arm"].Touched:connect(function(hit)
- if bladeactive == true then
- if hit.Parent:FindFirstChild("Humanoid")~= nil and hit.Parent:FindFirstChild("HasBeenHit")== nil and hit.Parent ~= chara then
- hitsnd:Play()
- KillMortal(hit.Parent)
- end
- end
- end)
- --Teleport--
- function Teleport(pos)
- telesnd:Play()
- local ch = chara:GetChildren()
- for i = 1, #ch do
- if ch[i].ClassName == "Part" and ch[i].Name ~= "HumanoidRootPart" then
- local trace = Instance.new("Part",game.Workspace)
- trace.Size = ch[i].Size
- trace.Material = "Neon"
- trace.BrickColor = BrickColor.new("Really black")
- trace.Transparency = .3
- trace.CanCollide = false
- trace.Anchored = true
- trace.CFrame = ch[i].CFrame
- if ch[i].Name == "Head" then
- mehs = Instance.new("CylinderMesh",trace)
- mehs.Scale = Vector3.new(1.25,1.25,1.25)
- end
- tracedisappear = coroutine.wrap(function()
- wait(1)
- for i = 1, 7 do
- wait(.1)
- trace.Transparency = trace.Transparency + .1
- end
- trace:Destroy()
- end)
- tracedisappear()
- end
- end
- chara.Torso.CFrame = CFrame.new(pos.X,pos.Y,pos.Z)
- end
- --Grab--
- function Grab(mouse)
- local hit = mouse.Target
- if hit ~= nil then
- if hit.Parent:FindFirstChild("Humanoid")~=nil then
- local torsy = nil
- if hit.Parent:FindFirstChild("Torso")~=nil then
- torsy = hit.Parent.Torso
- elseif hit.Parent:FindFirstChild("UpperTorso")~=nil then
- torsy = hit.Parent.UpperTorso
- end
- local bodpos = Instance.new("BodyPosition",torsy)
- bodpos.Position = torsy.Position
- wait(1)
- burnsnd:Play()
- hit.Parent.Humanoid.MaxHealth = 1
- bodpos.Position = bodpos.Position + Vector3.new(0,55,0)
- for i = 1, 10 do
- wait(.1)
- BurningEff(torsy)
- hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - 100000
- hit.CFrame = hit.CFrame * CFrame.FromEulerAnglesXYZ(0.5,0.5,0.5)
- end
- KillMortal(hit.Parent)
- end
- else end
- end
- --Button1Down--
- dell = false
- function onButton1Down()
- if dell == false then
- dell = true
- swinganim:Play()
- bladeactive = true
- slashsnd:Play()
- wait(.3)
- bladeactive = false
- dell = false
- swinganim:Stop()
- end
- end
- --KeyDowns--
- function onKeyDown(key)
- if key == "z" then
- Teleport(Mouse.Hit.p + Vector3.new(0,2,0))
- elseif key == "x" then
- Grab(Mouse)
- end
- end
- --Mouse Functions--
- Mouse = player:GetMouse()
- if Mouse then
- Mouse.Button1Down:connect(onButton1Down)
- Mouse.KeyDown:connect(onKeyDown)
- end
- --Death--
- chara.Humanoid.Died:connect(function()
- local pat = Instance.new("Part",game.Workspace)
- pat.Transparency = 1
- pat.Anchored = true
- pat.CFrame = chara.Torso.CFrame
- naeeym.Parent = pat
- naeeym.Adornee = pat
- tecks.Text = "OOF"
- tecks.FontSize = "Size48"
- tecks.TextColor3 = Color3.new(1,0,0)
- music1:Stop()
- music2:Stop()
- deathmus.Parent = game.Workspace
- deathex.Parent = game.Workspace
- deathmus:Play()
- deathex:Play()
- end)
- --Loop Function--
- while true do
- wait(.01)
- chance = math.random(0,100)
- if chance < 10 then
- sel = math.random(1,3)
- if sel == 1 then
- tecks.Text = "Safari Explorer"
- elseif sel == 2 then
- tecks.Text = "Safe Doe"
- elseif sel == 3 then
- tecks.Text = "Advertiser Friendly"
- end
- else tecks.Text = "Safety Dough"
- end
- if chara.Humanoid.Health > 0 then
- chara.Humanoid.MaxHealth = math.huge
- chara.Humanoid.Health = math.huge
- chara["Left Arm"].BrickColor = BrickColor.new("Cool yellow")
- chara["Right Arm"].BrickColor = BrickColor.new("Cool yellow")
- chara["Left Leg"].BrickColor = BrickColor.new("Medium blue")
- chara["Right Leg"].BrickColor = BrickColor.new("Medium blue")
- chara.Torso.BrickColor = BrickColor.new("Bright yellow")
- chara["Left Arm"].Anchored = false
- chara["Right Arm"].Anchored = false
- chara["Left Leg"].Anchored = false
- chara["Right Leg"].Anchored = false
- chara.Torso.Anchored = false
- ch = chara:GetChildren()
- for i = 1, #ch do
- if ch[i].ClassName == "Accessory" or ch[i].ClassName == "Hat" then
- ch[i]:Destroy()
- end
- end
- tools = player.Backpack:GetChildren()
- for i = 1, #tools do
- if tools[i].ClassName == "HopperBin" then
- tools[i]:Destroy()
- end
- end
- tecks.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
- local jtrace = Instance.new("Part",game.Workspace)
- jtrace.Name = "JDTrace"
- jtrace.Size = Vector3.new(10,0,10)
- jtrace.Position = chara.Torso.Position
- jtrace.CFrame = chara.Torso.CFrame - Vector3.new(0,3,0)
- jtrace.Anchored = true
- jtrace.CanCollide = false
- jtrace.BrickColor = BrickColor.new("Really black")
- jtrace.Material = "Granite"
- BurningEff(jtrace)
- game.Debris:AddItem(jtrace,1)
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement