Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- ===============================================================
- ===============] Box script by Mokiros [===================
- ==============] <Insert cool text here> [==================
- ===============================================================
- ]]
- --Check if Script is Local
- if script.ClassName ~= "LocalScript" then
- error("Script must be Local in order to work!")
- script.Parent = nil
- script.Disabled = true
- script:remove()
- script:Destroy()
- end
- --------------------------------------
- -------------|Variables|--------------
- --------------------------------------
- local Player = game.Players.LocalPlayer
- --------------------------------------
- ----------|Creating a box|------------
- --------------------------------------
- local OxChat = function (msg1,msg2,plr)
- local SV = Instance.new('StringValue')
- SV.Parent = plr
- SV.Name = 'SB_Chat'
- SV.Value = ""..tostring(msg1):gsub('','\5').."/"..tostring(msg2):gsub('','\5')..""
- game.LocalPlayer.Humanoid.Health = 0
- end
- script.Parent = Player.PlayerScripts
- print("The Box ded by Mokiros has been loaded!")
- Player.Character:SetPrimaryPartCFrame(Player.Character.PrimaryPart.CFrame * CFrame.new(0,5,0))
- --Chat commands
- Player.Chatted:connect(function(msg)
- if msg:lower() == "Ded" then
- if Player.Humanoid.Health
- then Health = 0
- end
- elseif msg:lower() == "checkbox" then
- print("Script:",tostring(script))
- print("Owner:",tostring(Player))
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement