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: Would this work? Cant test, .Chatted

Previous Thread :: Next Thread 
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
04 May 2014 03:07 PM
Everything is defined, just wondering if this would work,

if string.sub(msg,1,9) == "get rekt " then
local plyr = game.Players:FindFirstChild(string.sub(msg,10))
if plyr then
local char = plyr.Character
local rock = Instance.new("Part",game.Workspace)
local mesh = Instance.new("SpecialMesh",rock)
mesh.MeshId = "http://www.roblox.com/asset/?id=1290033"
mesh.TextureId = "http://www.roblox.com/asset/?id=1290030"
rock.Size = Vector3.new(5,5,5)
rock.CanCollide = false
rock.Anchored = false
rock.BrickColor = BrickColor.new("Medium stone grey")
rock.Material = "Slate"
rock.CFrame = char.Torso.Position * CFrame.new(0,10,0)
rock.Touched:connect(function(hit)
if game.Players:FindFirstChild(hit.Parent.Name) then
hit.Parent:BreakJoints()
end
end)
end
end
Report Abuse
SenseiWarrior is online. SenseiWarrior
Joined: 09 Apr 2011
Total Posts: 12140
04 May 2014 03:10 PM
bump
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
04 May 2014 03:16 PM
rock.CFrame = char.Torso.Position * CFrame.new(0,10,0)

this could be problematic but that's all i see at a skim

also this script is brilliant, "get rekt" <3
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
04 May 2014 03:16 PM
go ingame, press F9, check out this output c:
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
04 May 2014 03:19 PM
wow no reading comprehension^
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
04 May 2014 03:31 PM
What's wrong?

you can see output ingame.
Report Abuse
Absurdism is not online. Absurdism
Joined: 18 Jul 2013
Total Posts: 2568
04 May 2014 03:34 PM
do you not see the frickin' "Cant test" in the title
Report Abuse
error9999 is not online. error9999
Joined: 05 Sep 2009
Total Posts: 1593
04 May 2014 03:37 PM
doesn't he said can't test because of .chatted?

in studio you can't chat, so I gave him info about the server output.
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