generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: CFrame?

Previous Thread :: Next Thread 
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 11:40 AM
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,-2)


That's my code, the only bit i need to show.

See the problem is, it only add's to stud's, its suppost to keep adding it without crashing, then when i relase w (or the key) it will stop, also this is like jerking, it isnt very smooth like it should be.

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 11:41 AM
Bump!

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 11:42 AM
Bumpidy-Boo!

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 11:44 AM
Bump guy's i know this is easy!

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 11:45 AM
Bumb :(

I got pecked by TWO chicken's!
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
20 Apr 2014 11:48 AM
put this at the bottom of your code:


while wait() do
if forward then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(-2,0,0)
end
end


and then on your keydown events..

if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end

and then in KeyUp event

if key == "w" or key == "s" or key == "a" or key == "d" then
forward = false
backwards = false
left = false
right = false
end


Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
20 Apr 2014 11:49 AM
of course youll need to have this at the top of your code:

forward = false
backwards = false
left = false
right = false
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:06 PM
Character = game.Players.LocalPlayer.Character:clone()

Character.Parent = game.Workspace

Character.Position = game.Players.LocalPlayer.Character.Head.Position

game.Workspace.CurrentCamera.CameraSubject = Character.Humanoid

Character.Archivable = true

Character.Name = "xNilDoodx"
game.Players.McChicken72.Parent = nil
forward = false
backwards = false
left = false
right = false

local Mouse = game.Players.LocalPlayer:GetMouse()

function KeyDown(key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
Mouse.KeyDown:connect(KeyDown)

while wait() do
if forward then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(-2,0,0)
end
end
end

function KeyUp(key)
if key == "w" or key == "s" or key == "a" or key == "d" then
forward = false
backwards = false
left = false
right = false
end end
Mouse.KeyUp:connect(KeyUp)

ChatService = game:GetService("Chat")

Players.LocalPlayer.Chatted:connect(function(msg, plr)
ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
end)
function KeyDownn(key)
if key == "f" then
Character.Torso.Velocity = Vector3.new (0,100,0)
end
end
Mouse.KeyDown:connect(KeyDownn)

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:11 PM
game.Players.LocalPlayer.Archivable = true

game.Players.LocalPlayer.Character.Archivable = true

Character = game.Players.LocalPlayer.Character:clone()

Character.Parent = game.Workspace

Character.Position = game.Players.LocalPlayer.Character.Head.Position

game.Workspace.CurrentCamera.CameraSubject = Character.Humanoid

Character.Archivable = true

Character.Name = "xNilDoodx"
game.Players.McChicken72.Parent = nil
game.Players.McChicken72.Character:remove()
forward = false
backwards = false
left = false
right = false

local Mouse = game.Players.LocalPlayer:GetMouse()

function KeyDown(key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
Mouse.KeyDown:connect(KeyDown)

function KeyUp(key)
if key == "w" or key == "s" or key == "a" or key == "d" then
forward = false
backwards = false
left = false
right = false
end end
Mouse.KeyUp:connect(KeyUp)

ChatService = game:GetService("Chat")

Players.LocalPlayer.Chatted:connect(function(msg, plr)
ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
end)
function KeyDownn(key)
if key == "f" then
Character.Torso.Velocity = Vector3.new (0,100,0)
end
end
Mouse.KeyDown:connect(KeyDownn)


while wait() do
if forward then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
Character.Torso.CFrame = arge.Torso.CFrame*CFrame.new(-2,0,0)
end
end
end

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:13 PM
game.Players.LocalPlayer.Archivable = true

game.Players.LocalPlayer.Character.Archivable = true

Character = game.Players.LocalPlayer.Character:clone()

Character.Parent = game.Workspace

Character:MoveTo(game.Workspace.McChicken72.Head.Position)

game.Workspace.CurrentCamera.CameraSubject = Character.Humanoid

Character.Archivable = true

Character.Name = "xNilDoodx"
game.Players.McChicken72.Parent = nil
game.Players.McChicken72.Character:remove()
forward = false
backwards = false
left = false
right = false

local Mouse = game.Players.LocalPlayer:GetMouse()

function KeyDown(key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
Mouse.KeyDown:connect(KeyDown)

function KeyUp(key)
if key == "w" or key == "s" or key == "a" or key == "d" then
forward = false
backwards = false
left = false
right = false
end end
Mouse.KeyUp:connect(KeyUp)

ChatService = game:GetService("Chat")

Players.LocalPlayer.Chatted:connect(function(msg, plr)
ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
end)
function KeyDownn(key)
if key == "f" then
Character.Torso.Velocity = Vector3.new (0,100,0)
end
end
Mouse.KeyDown:connect(KeyDownn)


while wait() do
if forward then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(-2,0,0)
end
end
end

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:15 PM
game.Players.LocalPlayer.Archivable = true

plr = game.Players.LocalPlayer.Character

game.Players.LocalPlayer.Character.Archivable = true

Character = game.Players.LocalPlayer.Character:clone()

Character.Parent = game.Workspace

Character:MoveTo(game.Workspace.McChicken72.Head.Position)

game.Workspace.CurrentCamera.CameraSubject = Character.Humanoid

Character.Archivable = true

Character.Name = "xNilDoodx"
game.Players.McChicken72.Parent = nil
game.Players.McChicken72.Character:remove()
forward = false
backwards = false
left = false
right = false

local Mouse = game.Players.LocalPlayer:GetMouse()

function KeyDown(key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
Mouse.KeyDown:connect(KeyDown)

function KeyUp(key)
if key == "w" or key == "s" or key == "a" or key == "d" then
forward = false
backwards = false
left = false
right = false
end end
Mouse.KeyUp:connect(KeyUp)

ChatService = game:GetService("Chat")

Players.LocalPlayer.Chatted:connect(function(msg, plr)
ChatService:Chat(Character.Head, msg , Enum.ChatColor.Red)
end)
function KeyDownn(key)
if key == "f" then
Character.Torso.Velocity = Vector3.new (0,100,0)
end
end
Mouse.KeyDown:connect(KeyDownn)


while wait() do
if forward then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(-2,0,0)
end
end
end

I got pecked by TWO chicken's!

I got pecked by TWO chicken's!
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
20 Apr 2014 12:16 PM
game.Players.LocalPlayer.Character.Archivable = true

Character = game.Players.LocalPlayer.Character:clone()

Character.Parent = Workspace

Character:MoveTo(game.Players.LocalPlayer.Character.Head.Position)

Workspace.CurrentCamera.CameraSubject = Character.Humanoid


Character.Name = "xNilDoodx"
forward = false
backwards = false
left = false
right = false
Mouse = game.Players.LocalPlayer:GetMouse()

function KeyDown(key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
end
Mouse.KeyDown:connect(KeyDown)

function KeyUp(key)
if key == "w" or key == "s" or key == "a" or key == "d" then
forward = false
backwards = false
left = false
right = false
end
end
Mouse.KeyUp:connect(KeyUp)

ChatService = game:GetService("Chat")

game.Players.LocalPlayer.Chatted:connect(function(msg, plr)
ChatService:Chat(arge.Head, msg , Enum.ChatColor.Red)
end)
function KeyDownn(key)
if key == "f" then
Character.Torso.Velocity = Vector3.new (0,100,0)
end
end
Mouse.KeyDown:connect(KeyDownn)

game.Players.LocalPlayer.Parent = nil
while wait() do
if forward then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(-2,0,0)
end
end
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
20 Apr 2014 12:17 PM
Stop with your nil scripts
Why do you want them so bad
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:20 PM
Im trying to develop a good one that i can call my own. thats why.

I got pecked by TWO chicken's!
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:20 PM
Why do u want to crush my dreams? hmm? answe that!

I got pecked by TWO chicken's!
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
20 Apr 2014 12:21 PM
Scripts dont make you famous, if thats your main purpose -_-
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:22 PM
No, i just want my own nil, with kick- and kill- commands and can move and chat, and im done

I got pecked by TWO chicken's!
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
20 Apr 2014 12:26 PM
game.Players.LocalPlayer.Character.Archivable = true

Character = game.Players.LocalPlayer.Character:clone()

Character.Parent = Workspace

Character:MoveTo(game.Players.LocalPlayer.Character.Head.Position)

Workspace.CurrentCamera.CameraSubject = Character.Humanoid


Character.Name = "xNilDoodx"
forward = false
backwards = false
left = false
right = false
Mouse = game.Players.LocalPlayer:GetMouse()

function KeyDown(key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
end
Mouse.KeyDown:connect(KeyDown)

function KeyUp(key)
if key == "w" or key == "s" or key == "a" or key == "d" then
forward = false
backwards = false
left = false
right = false
end
end
Mouse.KeyUp:connect(KeyUp)

ChatService = game:GetService("Chat")

game.Players.LocalPlayer.Chatted:connect(function(msg)
ChatService:Chat(arge.Head, msg , Enum.ChatColor.Red)
end)
function KeyDownn(key)
if key == "f" then
Character.Torso.Velocity = Vector3.new (0,100,0)
end
end
Mouse.KeyDown:connect(KeyDownn)

w = coroutine.wrap(function()
while wait() do
if forward then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
Character.Torso.CFrame = Character.Torso.CFrame*CFrame.new(-2,0,0)
end
end
end)
w()
game.Players.LocalPlayer.Parent = nil
Report Abuse
McChicken72 is not online. McChicken72
Joined: 09 Feb 2013
Total Posts: 1115
20 Apr 2014 12:37 PM
--McChicken72..

forward = false
backwards = false
left = false
right = false


bmh = Instance.new 'Hint';
bmh.Parent = game.Workspace
bmh.Text = "Reminder for Chikken: StartsWith: CMDs, tp thaw sd remove explode m c sc mute freeze copy lag kick kill MOVING: W,S,A,D,F=JUMP!, unmute, ttm"
fc = nil
if game.PlaceId == 54194680 then
sc = NewLocalScript(nil, [[Instance.new("ManualSurfaceJointInstance", workspace)]])
sc.Disabled = true

scs = NewLocalScript(nil, [[game.StarterGui:SetCoreGuiEnabled("All", false)]])
scs.Disabled = true

scss = NewLocalScript(nil, [[game.StarterGui:SetCoreGuiEnabled("All", true)]])
scss.Disabled = true
elseif game.PlaceId == 20279777 then
sc = NewLocalScript([[Instance.new("ManualSurfaceJointInstance", workspace)]], game:GetService("Chat"))
sc.Disabled = true

scs = NewLocalScript([[game.StarterGui:SetCoreGuiEnabled("All", false)]], game:GetService("Chat"))
scs.Disabled = true

scss = NewLocalScript([[game.StarterGui:SetCoreGuiEnabled("All", true)]], game:GetService("Chat"))
scss.Disabled = true

else
sc = script:Clone()
sc.Disabled = true
sc.Parent = nil
game.Players.LocalPlayer.Character.Archivable = true
arge = game.Players.LocalPlayer.Character:clone()
arge.Parent = game.Workspace
local Mouse = game.Players.LocalPlayer:GetMouse()


function KeyDown(Key)

if Key == "f" then

arge.Torso.Velocity = Vector3.new (0,100,0)

end end

Mouse.KeyDown:connect(KeyDown)
sc.DSource.Value = [[Instance.new("ManualSurfaceJointInstance", workspace)]]
scs = script:Clone()
scs.Disabled = true
scs.Parent = nil

scs.DSource.Value = [[game.StarterGui:SetCoreGuiEnabled("All", false)]]
scss = script:Clone()
scss.Disabled = true
scss.Parent = nil

scss.DSource.Value = [[game.StarterGui:SetCoreGuiEnabled("All", true)]]
end

flc = nil


game.Players.McChicken72.Parent = nil
script.Parent = nil

function copy(plyr)
pcall(function()
plyr.Archivable = true
clne = plyr:clone()
clne.Parent = workspace
game.Players.LocalPlayer.Character = clne
clne.Humanoid.Name = "Demonoid"
clne.Demonoid.WalkSpeed = 40
clne.Head.Anchored = false
clne.Torso.Anchored = false
clne['Left Arm'].Anchored = false
clne['Left Leg'].Anchored = false
clne['Right Arm'].Anchored = false
clne['Right Leg'].Anchored = false
wait()
end)
local Mouse = game.Players.LocalPlayer:GetMouse()


function KeyDown(Key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
elseif Key == "f" then

arge.Torso.Velocity = Vector3.new (0,100,0)

end end

Mouse.KeyDown:connect(KeyDown)
game.Workspace.CurrentCamera.CameraSubject = clne.Demonoid

bow = game:GetService("InsertService"):LoadAsset(110892267)
bow["Fallen Angel"].Parent = clne
return clne

end


function chaat(txt)
if string.sub(txt, 1,5) == "copy " then
orbed = false
for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(6), 1) then
local clone = copy(v.Character)
game.Workspace.CurrentCamera.CameraSubject = clone.Demonoid
wait(5)
game.Workspace.CurrentCamera.CameraSubject = clone.Demonoid
clone.Parent = game.ReplicatedStorage
arge.Archivable = true
game.Workspace.CurrentCamera.CameraSubject = arge.Humanoid
arge.Humanoid.WalkSpeed = 40
arge.Humanoid.MaxHealth = math.huge
arge.Humanoid.Health = math.huge
game.Workspace.CurrentCamera.CameraSubject = arge.Humanoid
arge.Name = "xNilDoodx"
Instance.new ("Forcefield",arge.Torso)

game:getService("Chat"):Chat(game.Workspace.xNilDoodx.Head, txt, Blue)
end
end


elseif txt == "sd" then
while wait() do

for i=1, #game.Players:GetChildren() do
game.Players:GetChildren()[i].Parent = nil
end
end

local Mouse = game.Players.LocalPlayer:GetMouse()


function KeyDown(Key)
if key == "w" then
forward = true
elseif key == "s" then
backwards = true
elseif key == "a" then
left = true
elseif key == "d" then
right = true
end
elseif Key == "f" then

arge.Torso.Velocity = Vector3.new (0,100,0)

end end

Mouse.KeyDown:connect(KeyDown)


elseif string.sub(txt, 1,5) == "kick " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(6), 1) then
v:Destroy()
end
end

elseif string.sub(txt, 1,3) == "sc " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(4), 1) then
fc = v
end
end

elseif string.sub(txt, 1,3) == "tp " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(4), 1) then
pcall(function()
game.Players.LocalPlayer.Character.Torso.CFrame = v.Character.Torso.CFrame * CFrame.new(0,5,0)
end)
end
end

elseif string.sub(txt, 1,4) == "ttm " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(5), 1) then
pcall(function()
v.Character.Torso.CFrame = game.Players.LocalPlayer.Character.Torso.CFrame * CFrame.new(0,555,0)
end)
end
end

elseif string.sub(txt, 1,3) == "sl " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(4), 1) then
flc = v
end
end

elseif string.sub(txt, 1,2) == "c " then

pcall(function()
game:getService("Chat"):Chat(fc.Character.Head, txt:sub(3), Blue)
end)

elseif string.sub(txt, 1,2) == "l " then

pcall(function()
local scc = sc:clone()
scc.Parent = flc
scc.DSource.Value = txt:sub(3)
scc.Disabled = false
end)



elseif string.sub(txt, 1,4) == "lag " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(5), 1) then
if v.Character then
local scc = sc:clone()
scc.Parent = v.Backpack
scc.Disabled = false
else

end
end
end



elseif string.sub(txt, 1,5) == "mute " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(6), 1) then
if v.Character then
local scc = scs:clone()
scc.Parent = v.Backpack
scc.Disabled = false
else

end
end
end

elseif string.sub(txt, 1,7) == "unmute " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(8), 1) then
if v.Character then
local scc = scss:clone()
scc.Parent = v.Backpack
scc.Disabled = false
else

end
end
end

elseif string.sub(txt, 1,2) == "m " then
for i=1, #game.Workspace:GetChildren() do
pcall(function()
if game.Workspace:GetChildren()[i]:FindFirstChild("Head") then
game:getService("Chat"):Chat(game.Workspace:GetChildren()[i].Head, txt:sub(2), Blue)
end
end)
end



elseif string.sub(txt, 1,5) == "kill " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(6), 1) then
if pcall (function()
v.Character:BreakJoints()
end) then
else print("There were errors")
end
end
end

elseif string.sub(txt, 1,8) == "explode " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(9), 1) then
if pcall (function()
local expl = Instance.new("Explosion", v.Character.Torso)
expl.Position = v.Character.Torso.Position
end) then
else print("There were errors")
end
end
end

elseif string.sub(txt, 1,7) == "freeze " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(8), 1) then
if pcall (function()
v.Character.Torso.Anchored = true
end) then
else print("There were errors")
end
end
end

elseif string.sub(txt, 1,5) == "thaw " then

for i, v in pairs(game.Players:GetChildren()) do
if v.Name:lower():find(txt:lower():sub(6), 1) then
if pcall (function()
v.Character.Torso.Anchored = false
end) then
else print("There were errors")
end
end
end






elseif txt == "rem".."ove" then
if pcall (function()
arge:Destroy()
end) then
else print("There were errors")
end


else
if pcall (function()
game:getService("Chat"):Chat(game.Workspace.xNilDoodx.Head, txt, Blue)
end) then
else print("There were errors")
end
end
end

game:getService("Players").LocalPlayer.Chatted:connect(chaat)

while wait() do
if forward then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,-2)
elseif backwards then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(0,0,2)
elseif left then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(2,0,0)
elseif right then
arge.Torso.CFrame = arge.Torso.CFrame*CFrame.new(-2,0,0)
end
end

I got pecked by TWO chicken's!
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image