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: Help please.

Previous Thread :: Next Thread 
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
18 Sep 2011 04:36 PM
How do I make this were it only works for the player who touched it, And it dosent get all the others.
Report Abuse
joshrocks101 is not online. joshrocks101
Joined: 07 Jun 2011
Total Posts: 1712
18 Sep 2011 04:37 PM
function onTouch(Part)
x = game.Workspace.Sword1
p = game.Workspace.Sword2
j = game.Workspace.Sword3
r = game.Workspace.Sword4
for i, v in pairs(game.Players:GetChildren()) do
v.Character.Torso.Anchored = true
v.Character.Torso.CFrame = CFrame.new(0.3862, 4.799, -13.78)
p.CFrame = CFrame.new(6.936, 4.591, -12.02)
x.CFrame = CFrame.new(6.393, 3.592, -13.18)
j.CFrame = CFrame.new(6.612, 1.692, -14.98)
r.CFrame = CFrame.new(6.288, 6.49, -11.1)
wait(1)
x.CFrame = CFrame.new(7.039, 2.885, -13.46)
p.CFrame = CFrame.new(8.936, 4.591, -12.02)
j.CFrame = CFrame.new(13.61, 2.892, -14.98)
r.CFrame = CFrame.new(8.288, 6.49, -11.1)
wait(1)
x.CFrame = CFrame.new(7.039, 2.885, -13.46)
x.CFrame = CFrame.new(7.039, 2.885, -13.46)
x.CFrame = CFrame.new(7.039, 110.1, -13.46)
p.CFrame = CFrame.new(10.94, 4.591, -12.02)
j.CFrame = CFrame.new(15.61, 2.892, -14.98)
r.CFrame = CFrame.new(10.29, 6.49, -11.1)
wait(1)
p.CFrame = CFrame.new(10.94, 4.591, -12.02)
j.CFrame = CFrame.new(15.61, 2.892, -14.98)
r.CFrame = CFrame.new(12.29, 6.49, -11.1)
r.CFrame = CFrame.new(9.288, 6.49, -11.1)
wait(1)
p.CFrame = CFrame.new(5.936, 4.591, -12.02)
j.CFrame = CFrame.new(4.612, 2.892, -14.98)
r.CFrame = CFrame.new(6.288, 6.49, -11.1)
wait(1)
j.CFrame = CFrame.new(3.612, 2.892, -14.98)
p.CFrame = CFrame.new(0.9356, 4.591, -12.02)
r.CFrame = CFrame.new(1.288, 6.49, -11.1)
wait(1)
p.CFrame = CFrame.new(-0.6928, 4.591, -12.62)
r.CFrame = CFrame.new(1.699, 4.69, -13.58)
j.CFrame = CFrame.new(2.136, 2.892, -14.72)
wait(1)
x.CFrame = CFrame.new(-1.345, 5.917, -14.18)
j.CFrame = CFrame.new(0.5, 9.1, -13.6)
wait(1)
v.Character.Humanoid.Health = 0
x.CFrame = CFrame.new(-11.5, 57.3, 86.5)
p.CFrame = CFrame.new(-24.5, 57.1, 100.5)
j.CFrame = CFrame.new(-10.5, 57, 91.4)
r.CFrame = CFrame.new(-22.5, 56.7, 114.5)
end
end

script.Parent.Touched:connect(onTouch)
Report Abuse
MrGamer100 is not online. MrGamer100
Joined: 06 Jun 2008
Total Posts: 72
18 Sep 2011 05:31 PM
Hm... try this:


function onTouch(Part)
local person = part.Parent;
x = game.Workspace.Sword1
p = game.Workspace.Sword2
j = game.Workspace.Sword3
r = game.Workspace.Sword4
person.Torso.Anchored = true
person.Torso.CFrame = CFrame.new(0.3862, 4.799, -13.78)
p.CFrame = CFrame.new(6.936, 4.591, -12.02)
x.CFrame = CFrame.new(6.393, 3.592, -13.18)
j.CFrame = CFrame.new(6.612, 1.692, -14.98)
r.CFrame = CFrame.new(6.288, 6.49, -11.1)
wait(1)
x.CFrame = CFrame.new(7.039, 2.885, -13.46)
p.CFrame = CFrame.new(8.936, 4.591, -12.02)
j.CFrame = CFrame.new(13.61, 2.892, -14.98)
r.CFrame = CFrame.new(8.288, 6.49, -11.1)
wait(1)
x.CFrame = CFrame.new(7.039, 2.885, -13.46)
x.CFrame = CFrame.new(7.039, 2.885, -13.46)
x.CFrame = CFrame.new(7.039, 110.1, -13.46)
p.CFrame = CFrame.new(10.94, 4.591, -12.02)
j.CFrame = CFrame.new(15.61, 2.892, -14.98)
r.CFrame = CFrame.new(10.29, 6.49, -11.1)
wait(1)
p.CFrame = CFrame.new(10.94, 4.591, -12.02)
j.CFrame = CFrame.new(15.61, 2.892, -14.98)
r.CFrame = CFrame.new(12.29, 6.49, -11.1)
r.CFrame = CFrame.new(9.288, 6.49, -11.1)
wait(1)
p.CFrame = CFrame.new(5.936, 4.591, -12.02)
j.CFrame = CFrame.new(4.612, 2.892, -14.98)
r.CFrame = CFrame.new(6.288, 6.49, -11.1)
wait(1)
j.CFrame = CFrame.new(3.612, 2.892, -14.98)
p.CFrame = CFrame.new(0.9356, 4.591, -12.02)
r.CFrame = CFrame.new(1.288, 6.49, -11.1)
wait(1)
p.CFrame = CFrame.new(-0.6928, 4.591, -12.62)
r.CFrame = CFrame.new(1.699, 4.69, -13.58)
j.CFrame = CFrame.new(2.136, 2.892, -14.72)
wait(1)
x.CFrame = CFrame.new(-1.345, 5.917, -14.18)
j.CFrame = CFrame.new(0.5, 9.1, -13.6)
wait(1)
person.Humanoid.Health = 0
x.CFrame = CFrame.new(-11.5, 57.3, 86.5)
p.CFrame = CFrame.new(-24.5, 57.1, 100.5)
j.CFrame = CFrame.new(-10.5, 57, 91.4)
r.CFrame = CFrame.new(-22.5, 56.7, 114.5)
end

script.Parent.Touched:connect(onTouch)
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