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 » Scripters
Home Search
 

Re: What did I do wrong here?

Previous Thread :: Next Thread 
BillingInformation is not online. BillingInformation
Joined: 20 Feb 2011
Total Posts: 4899
27 May 2015 05:00 PM

I'm trying to make it where if you kill an enemy you tp to a position
It didn't work
I would paste the script here but for some reason it said it was breaking rules?
Here's the script:
http://www.roblox.com/TP-script-item?id=252812666


Report Abuse
BillingInformation is not online. BillingInformation
Joined: 20 Feb 2011
Total Posts: 4899
27 May 2015 05:10 PM

local player = game.Players:GetPlayerFromCharacter()
local Humanoid = script.Parent.Enemy
function PwntX_X()
local tag = Humanoid:FindFirstChild("creator")
if tag ~= nil then
if tag.Value ~= nil then
player.Character.Humanoid.Torso.CFrame = CFrame.new(-------)

wait(0.1)
script:Remove()
end
end
end

Humanoid.Died:connect(PwntX_X)
Report Abuse
amanda is not online. amanda
Joined: 21 Nov 2006
Total Posts: 5925
27 May 2015 05:12 PM
Why do you check if the tag value is not nil?

If it is a bool value, it can only be true and false.
Report Abuse
Anticodist is not online. Anticodist
Joined: 05 Feb 2014
Total Posts: 1191
27 May 2015 05:12 PM
You and your free models need to leave this forum.
(╯°□°)╯︵ ┻━┻



-𝒩 | Anticodist, Scripter
Report Abuse
wjp02 is not online. wjp02
Joined: 02 Feb 2011
Total Posts: 46
27 May 2015 05:15 PM
Could you post what error you're getting, or at least tell us what isn't working.
Anyways my advice would be to look at what parts work until you reach what doesn't.
Report Abuse
BillingInformation is not online. BillingInformation
Joined: 20 Feb 2011
Total Posts: 4899
27 May 2015 05:23 PM
"You and your free models need to leave this forum."
If it was free modes then why didn't it work?
And there are no models on the free model list like it.

I am clueless when t comes to scripting
Report Abuse
BillingInformation is not online. BillingInformation
Joined: 20 Feb 2011
Total Posts: 4899
27 May 2015 05:27 PM
I got it working, thanks
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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