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
 

Would this work?

Previous Thread :: Next Thread 
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
19 Jan 2014 03:35 AM
I'm assuming not, I've yet to learn onChatted functionalities.. This is just a personal little admin filled with onTouched sequences. Revision is more than likely needed I'm guessing. Please do so?


function onChatted(msg,recipient,speaker)
msg = string.lower(msg)

if msg == "Eat Mode" then
function hit(p)
h = Instance.new("Hint", game.Workspace)
if p:IsA("BasePart") then
h.Text = "Mmmm.. " .. p.Name .. " was so nummy in Goulstem's tummy :3"
p.Transparency = .1 wait(.15) p.Transparency = .2 wait(.15) p.Transparency = .3 wait(.15) p.Transparency = .4 wait(.15) p.Transparency = .5 wait(.15) p.Transparency = .6 wait(.15) p.Transparency = .7 wait(.15) p.Transparency = .8 wait(.15) p.Transparency = .9 wait(.15) p.Transparency = 1 wait(.15)
wait(.1)
p:Destroy() h:Destroy()
game.Workspace.Goulstem.Torso.Touched:connect(hit)
game.Workspace.Goulstem.Head.Touched:connect(hit)

elseif msg == "Kick Mode" then
function onTouched()
g = game.Workspace.Goulstem.Torso
p = p.Parent.Parent.Parent
if g:FindFirstChild("Humanoid") ~= nil then
p:Destroy()
game.Workspace.Goulstem.Torso.Touched:connect(onTouched)

elseif msg == "Fling Mode" then
g = game.Workspace.Goulstem.Torso
p = p.Parent.Parent.Parent
if g:FindFirstChild("Humanoid") ~= nil then
v = Instance.new("Velocity", p.Character.Torso) v = Vector3.new(200,200,0)
game.Workspace.Goulstem.Torso.Touched:connect(onTouched)

elseif msg == "Kill Mode" then
g = game.Workspace.Goulstem.Torso
p = p.Parent.Parent.Parent
if g:FindFirstChild("Humanoid") ~= nil then
p:BreakJoints()
game.Workspace.Goulstem.Torso.Touched:connect(onTouched)

elseif msg == "Freeze Mode" then
g = game.Workspace.Goulstem.Torso
p = p.Parent.Parent.Parent
if g:FindFirstChild("Humanoid") ~= nil then
p.Character.Torso.Anchored = true
game.Workspace.Goulstem.Torso.Touched:connect(onTouched)

elseif msg == "Fire Mode" then
g = game.Workspace.Goulstem.Torso
p = p.Parent.Parent.Parent
if g:FindFirstChild("Humanoid") ~= nil then
f = Instance.new("Fire", p.Character.Torso) f.Size = 99 f.Color = Color3.new("Really Black")
game.Workspace.Goulstem.Torso.Touched:connect(onTouched)

elseif msg == "Commands" then
h = Instance.new("Hint", game.Workspace)
h.Text = "Eat Mode" wait(1) h.Text = "Kick Mode" wait(1) h.Text = "Fling Mode" h.Text = "Kill Mode" wait(1) h.Text = "Freeze Mode" wait(1) h.Text = "Fire Mode"
wait(1)
h:Destroy()
end end end end end end end end end end

game.Players.Goulstem.Chatted:connect(onChatted)
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
19 Jan 2014 04:33 PM
Bump
Report Abuse
Goulstem is not online. Goulstem
Joined: 04 Jul 2012
Total Posts: 7177
19 Jan 2014 04:47 PM
Derp, Bump
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