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: how to make the item spawn into player torso

Previous Thread :: Next Thread 
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 06:00 AM
I have tried "player.Character.Torso" it did not work

local serverstorage = game:GetService('ServerStorage')


game.Players.PlayerAdded:connect(function(player)
player.Chatted:connect(function(msg, plrchat)
local torso = player.Character.Torso
local segway = serverstorage:FindFirstChild("HandlessSegway")
if msg == "spawn s" or msg == "spawn se" or msg == "spawn seg" or msg == "spawn segw" or msg == "spawn segwa" or msg == "spawn segway" then
segway:Clone().Parent = game.Workspace
end
end)
end)



Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 06:00 AM
It is a model and cannot be welded, so there is not position value


Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
11 Feb 2016 06:21 AM
Parent it to Characcter instead and use SetPrimaryPartCFrame.


Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 06:25 AM
Can you please edit the script the way it should be?


Report Abuse
JarodOfOrbiter is not online. JarodOfOrbiter
Joined: 17 Feb 2011
Total Posts: 20029
11 Feb 2016 06:28 AM
Sure thing.


Oh wait, CFrames are censored now. Of course. That makes sense why they would do that.


pastebin/wc88Hqjj





Report Abuse
ShrekWillGetYou is not online. ShrekWillGetYou
Joined: 31 Oct 2010
Total Posts: 550
11 Feb 2016 06:40 AM
Thanks so much


Report Abuse
ranvlr2o50 is not online. ranvlr2o50
Joined: 30 Jan 2016
Total Posts: 46
11 Feb 2016 06:42 AM
Use this

While thruse do

game.players.playeradded:connect(function(plr)
local stats = Instance.new('IntValue', plr)
stats.Name = 'leaderstats'
local experience = Instance.new('IntValue', stats)
experience.Name = 'EXP'
experience.Value = 0
local level = Instance.new('IntValue', stats)
level.Name = 'Level'
level.Value = 0

game.players.playeradded:connect(function(plr)
local stats = Instance.new('IntValue', plr)
stats.Name = 'leaderstats'
local experience = Instance.new('IntValue', stats)
experience.Name = 'EXP'
experience.Value = 0
local level = Instance.new('IntValue', stats)
level.Name = 'Level'
level.Value = 0

experience.Changed:Connect(function()
level.Value = math.floor(experience.Value / 1000)
end)
While thruse do
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild('leaderstats')
local level = leaderstats:WaitForChild('Level')
local xp = player:WaitForChild('EXP')
level.Changed:connect(function()
if xp.Value < 1000 then
level.Value = 1
end
experience.Changed:Connect(function()
level.Value = math.floor(experience.Value / 1000)
end)
While thruse do
local player = game.Players.LocalPlayer
local leaderstats = player:WaitForChild('leaderstats')
local level = leaderstats:WaitForChild('Level')
local xp = player:WaitForChild('EXP')
level.Changed:connect(function()
if xp.Value < 1000 then
level.Value = 1
end
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
11 Feb 2016 06:48 AM
CFrame.new(0,0,69)


ran off on the plug twyce R$2,361 Tx23
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