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: sss

Previous Thread :: Next Thread 
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
01 Aug 2015 03:48 PM
im having this script error
LocalScript:4: attempt to index global 'ReplicatedStorage' (a nil value)


here is the line 1 to 15

1local gui = script.Parent

2 local replicatestorage = game:GetService("ReplicatedStorage")
3 local StatusTag = ReplicatedStorage:WaitForChild("StatusTag")
4 local TimerTag = ReplicatedStorage:WaitForChild("TimerTag")
5 local StatusTitle = gui:WaitForChild("StatusTitle")
6 local event = ReplicatedStorage:WaitForChild("RemoteEvent")
7 print ("done waiting 1")
8 local resultprompt = gui:WaitForChild("ResultPrompt")
9 local resultname = resultpropmt:WaitForChild("ResultName")
10 local resultname = resultpropmt:WaitForChild("ResultDescription")
11 print ("done waiting 2")
12 local classprompt = gui:WaitForChild("ClassPrompt")
13 local classname = resultpropmt:WaitForChild("ClassName")
14 local classname = resultpropmt:WaitForChild("ClassDescription")
15 print ("done waiting 3")
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 05:09 AM
reply
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
02 Aug 2015 05:12 AM
replicatedstorage is a service and it's a child of game

game.ReplicatedStorage


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Aug 2015 05:12 AM
replicatedstorage
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
02 Aug 2015 05:13 AM
oh i didnt see the first line

you made a typo missed a D


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 05:48 AM
k i got another error after i fixed the 1st problem
ResultPromp is not a valid member of ScreenGui
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 05:50 AM
i tried to fix it changing the 1st resultpropmt to result prompt
local gui = script.Parent
print("done waiting 0")
local replicatedstorage = game:GetService("ReplicatedStorage")
local StatusTag = game.ReplicatedStorage:WaitForChild("StatusTag")
local TimerTag = game.ReplicatedStorage:WaitForChild("TimerTag")
local StatusTitle = gui:WaitForChild("StatusTitle")
local event = game.ReplicatedStorage:WaitForChild("RemoteEvent")
print ("done waiting 1")
local resultprompt = gui:WaitForChild("ResultPrompt")
local resultname = gui.ResultPromp:WaitForChild("ResultName")
local resultname = gui.resultpromp:WaitForChild("ResultDescription")
print ("done waiting 2")
local classprompt = gui:WaitForChild("ClassPrompt")
local classname = gui.resultpromp:WaitForChild("ClassName")
local classname = gui.resultpromp:WaitForChild("ClassDescription")
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 05:52 AM
local gui = script.Parent
print("done waiting 0")
local replicatedstorage = game:GetService("ReplicatedStorage")
local StatusTag = game.ReplicatedStorage:WaitForChild("StatusTag")
local TimerTag = game.ReplicatedStorage:WaitForChild("TimerTag")
local StatusTitle = gui:WaitForChild("StatusTitle")
local event = game.ReplicatedStorage:WaitForChild("RemoteEvent")
print ("done waiting 1")
local resultprompt = gui:WaitForChild("ResultPrompt")
local resultname = gui.ResultPrompt:WaitForChild("ResultName")
local resultname = gui.resultprompt:WaitForChild("ResultDescription")
print ("done waiting 2")
local classprompt = gui:WaitForChild("ClassPrompt")
local classname = gui.resultprompt:WaitForChild("ClassName")
local classname = gui.resultprompt:WaitForChild("ClassDescription")
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 06:04 AM
i got this error too
ServerScriptService.MainScript:51: unexpected symbol near '='




50 local player = game.Players:GetPlayerFromCharacter(hit.Parent)
51 if player and player -= betrayer then
52 local backpack = player:FindFirstChild("Backpack")

Report Abuse
XMegaInfernapeX is not online. XMegaInfernapeX
Joined: 20 Feb 2011
Total Posts: 488
02 Aug 2015 06:10 AM
ServerScriptService.MainScript:51: unexpected symbol near '='




50 local player = game.Players:GetPlayerFromCharacter(hit.Parent)
51 if player and player ~= betrayer then
52 local backpack = player:FindFirstChild("Backpack")


~= not -=
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 07:16 AM
k after more error fixes it give me this error
This function is not yet enabled!
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
02 Aug 2015 07:46 AM
ignore that


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 07:58 AM
so why my 2 script don't work
local roundtimer = 60 * 5
local intermissiontime = 20


local serverstorage = game:GetService("ServerStorage")
local replicatedstorage = game:GetService("ReplicatedStorage")
local debris = game:GetService("Debris")
local event = replicatedstorage:WaitForChild("RemoteEvent")
local maps = serverstorage:WaitForChild("Maps")
local mapholder = game:WaitForChild("MapHolder")
local statustag = replicatedstorage:WaitForChild("StatusTag")
local timertag = replicatedstorage:WaitForChild("TimerTag")



function awardpoint(player, points)
if player and points then
local leaderstats = player:FindFirstChild("leaderstats")
if leaderstats then
local pointsvalue = leaderstats:FindFirstChild("Points")
if pointvalue then
pointsvalue.Value = pointsvalue.Value + points
end
end
end
end






function dropgun(pos)
local pickup = serverstorage:WaitForChild("Gun"):WaitForChild("Handle"):clone()
pickup.name = "Pickup"
pickup.anchore = true
pickup.CanCollide = false
pickup.CFrame = CFrame.new(pos)

local sparkle = Instance.new("Sparkles")
sparkles.Sparklecolor = Color3.new(0, .5, 1)
sparkles.Parent = pickup

local given = false
pickup.Touched:connect(function(hit)
local humanoid = hit.Parent:FindFirstChild("Humanoid")
if humanoid and humanoid.Health > 0 then
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player and player ~= betrayer then
local backpack = player:FindFirstChild("Backpack")
if backpack and not given then
given = true
pickup:remove()
local gun = serverstorage:WaitForChild("Gun"):WaitForChild("Handle"):clone()
gun.Parent = backpack
police = player
end
end
end
end)

for _, player in pairs(game.Players:GetChildren()) do
if player and player.Character and player.Character.Parent then
local humanoid = player.Character:FindFirstChild("Humanoid")
if humanoid and humanoid.Walkspeed > 16 then
humanoid.Walkspeed = 16
end
end
end

debris:AddItem(pickup,roundtime)
pickup.Parent=game.Workspace
end

function newcharacter(Killedplayer, character)
local humanoid =character:FindFirstChild("Humanoid")
if humanoid then
humanoid.Died:connect(function()

if killedplayer == police then
humanoid:UnEquipTools()
local backpack = killedplayer:FindFirstChild("Backpack")
if backpack then
backpack:ClearAllChildren()
end
local torso = character:FindFirstChild("Torso")
if torso then
dropgun(torso.Position)
end
end

local tag = humanoid:FindFirstChild("creator")
if tag and tag.Value and tag.Value.Parent == game.players then
if tag.Value ~= betrayer and killedplayer ~= betrayed then
local wrongdoer = tag.Value
if wrongdoer.Character and wrongdoer.Character.Parent then
local wrongdoerhumanoid = wrongdoer.Character:FindFirstChild("Humanoid")
if wrongdoerhumanoid then
wrongdoerhumanoid.Health = 0
end
end
end
end

end)
end
end

function playeradded(player)
local leasterstats = Instance.new("intValue")
leaderstats.Name = "leaderstats"

local points = Instance.new("intValue")
point.Name = "Points"
points.parent = leaderstats

leaderstats.parent = player

player.CharacterAdded:connect(function(Character)
newcharacter(player, character)
end)
if player.Character and player.Character.Parent then
newcharacter(player, player.Character)
end
end
game.Player.Playeradded:connect(playeradded)
for _, player in pairs(game.Player:GetPlayers()) do

end



while true do

statustag.Value = "Loading Map"
timertag.Value = -1
mapholder:ClearAllChildren()
wait(2)
local allmaps = maps:GetChildren()
local newmap = allmaps[math.random(1, #allmaps)]
newmap.Parent = game.Workspace
wait(2)


while true do
wait(5)
contestants = (3)
for _, player in pairs(game.Players:GetPlayers() ) do
if player and player.Character then
local humanoid = player.Character:WaitForChild("Huamnoid")
if humanoid and humanoid.Health > 0 then
table.instert (contestants, player)
end
end
end
if #constestants >= 3 then
break
else
statustag.Value = "Waiting for player"
timertag.Value = -1
end
end

statustag.Value = "Match"
timertag.Value = roundtimer


betrayer = contestant[math.random(1, #contestants)]

while true do
random = playerlocal serverstorage = game:GetService("ServerStorage")
if randomplayer ~= betrayer then
police = randomplayer
break
end
end




local spawnsmodel = newmap:WaitForChild("Spawn")
local spawns = spawnsmodel :GetChildren()
for _, player in pairs(contestants) do
if player and player.Character and #spawns >0 then
local torso = player.Character:WaitForChild("Torso")
local humanoid =player.Character:WaitForChild("Humanoid")
local spawnindex = math.random(1, #spawns)
local spawn =spawns(spawnindex)
if spawn and torso and humanoid then
humanoid.Health = 100
humanoid.Walkspeed = 16
table.remove(spawn, spawnindex)
torso.CFrame = CFrame.new(spawn.Position + Vector3.new(0, 3, 0))

local matchtag = instance.new("stringvalue")
matchtag.Name = "MatchTag"
matchtag.Parent = player.Character



local backpack = players:FindFirstChild("Backpack")
if backpack then
if player == betrayer then
local Knife = serverstorage:WaitForChild("Knife"):clone()
Knife.parent = backpack
evemt:FireAllClient("Class", "Betrayer")
elseif player == police then
local Gun = serverstorage:WaitForChild("Gun"):clone()
Gun.parent = backpack
evemt:FireAllClient("Class", "Sheriff")
else
evemt:FireAllClient("Class", "Friend")

end
end
end
end
end
spawnmodel:remove()



local localtimer = roundtime
while tlocaltimer > 0 do
wait(1)
localtimer = localtimer -1
timertag.Value = localtimer

activecontestants = (0)
betrayeractive = false
for _, players in pairs(contestants) do
if player then
local character = player.Character
if character then
local matchtag = character:FindFirstChild("MatchTag")
local humanoid = character:FindFirstChild("Humanoid")
if matchtag and humanoid and humanoid.Health > 0 then
if player == bloxxer then
betrayeractive = true
end
table.insert(activecontestants, player)
end

end
end
end
if #activecontestants <= 1 or not betrayeractive then
break
end
end


local gameresult = "PlayersWin"
if betrayeractive then
if #contestants > 2
--betrayer failed
then event:FireAllClient("Result", "PlayersWin")
else
--successful betrayer is successful
gameresult = "BetrayerWin"
evemt:FireAllClient("Result", "Betrayerwin")
end
else
--betrayer killed
evemt:FireAllClient("Result", "PlayersWin")
end

for _, v in pairs(game.Workspace:GetChildren())do
if v then
if v.Name == "Pickup" or v.classname == "Hat" then
v:remove()
end
end
end
for _, player in pairs(contestants) do
if player then
if gameresult == "Betrayerwin" and player == betrayer then
awardpoints (points, 9)
elseif gameresult ~= "BetrayerWin" and player ~= betrayer then
if player == police then
awardpoints(player, 7)
else
awardpoints(player, 5)
end
end
end
end


local lobbyspawns = (12)
for _, v in pairs (game.Workspace:WaitForChild("Lobby"):GetChildren()) do
if v and v.Name == "SpawnLocation" then
table.insert(lobbyspawns, v)
end
end
for _, player in pairs(activecontestants) do
if player then
awardpoints(player, 1)
if player.Character then
local humanoid = player.Character:FindFirstChild("Humanoid")
if humanoid then
humanoid:UnequipTools()
end
end
local randomspawn = lobbyspawn[math.random(1, #lobbyspawns)]
player.Character:Moveto(randomspawn.Position)

local backpack = player:FindFirstChild("Backpack")
if backpack then
backpack:ClearAllChildren()
end
end
end


statustag.Value = "Intermission"
timertag.Value = localtimer
local localtimer = intermissiontime
while localtimer > 0 do
wait(1)
localtimer = localtimer - 1
timertag.Value = localtimer
end
end
n.2
local gui = script.Parent
print("done waiting 0")
local replicatestorage = game:GetService("ReplicatedStorage")
local StatusTag = game.ReplicatedStorage:WaitForChild("StatusTag")
local TimerTag = game.ReplicatedStorage:WaitForChild("TimerTag")
local StatusTitle = gui:WaitForChild("StatusTitle")
local event = game.ReplicatedStorage:WaitForChild("RemoteEvent")
print ("done waiting 1")
local resultprompt = gui:WaitForChild("ResultPrompt")
local resultname = resultprompt:WaitForChild("ResultName")
local resultname = resultprompt:WaitForChild("ResultDescription")
print ("done waiting 2")
local classprompt = gui:WaitForChild("ClassPrompt")
local classname = resultprompt:WaitForChild("ClassName")
local classname = resultprompt:WaitForChild("ClassDescription")
print ("done waiting 3")

function secondstotimer(seconds)
minutes = math.floor(seconds / 60)
local remainingseconds = seconds % 60
if remainingseconds <= 9 then
remainingseconds = "00"
elseif remainingseconds <= 9 then
remainingseconds = "0" .. remainingseconds

end


return tostring(minutes) .. ":" .. remainingseconds

end

function updatestatus()
if TimerTag.Value < 0 then
StatusTag.Text = StatusTag.Value
else
StatusTag.Text = StatusTag.Value .. " (" .. secondstotimer(TimerTag.Value) .. ")"
end
if StatusTag.Value == "Intermission" then
StatusTitle.TextColor3 = Color3.new(203/255, 1, 1)
elseif StatusTag.Value == "Match" then
StatusTag.TextColor3 = Color3.new(1, 1, 203/255)
elseif StatusTag.Value == "Loading Map" or StatusTag.Value == "Waiting for players" then
StatusTag.TextColor3 = Color3.new(203/255, 1, 1, 203/255)
end
end

TimerTag.Changed:connect(updatestatus)
StatusTag.Changed:connect(updatestatus)
updatestatus()



event.OnClientEvent:connect(function(...)

end)
local tuple = (...)
if tuple(1) == "Result" then
if tuple(2) =="betrayer wins" then

end
resultname.Text = "betrayer Wins"
resultname.TextColor3 = Color3.new(1, 74/255, 77/255)
resultdesc.Text = "All players were killed and betrayed"
else
resultname.Text = "Player wins"
resultname.TextColor3 = Color3.new(111/255, 149/255, 1)
resultdesc.Text = "The betrayer has been killed"
end
resultprompt.Visible = true
resultprompt.Position = UDim2.new(0, -400, .5, -92)
resultprompt:TweenPosition(UDim2.new(.5, -170, .05, -192),"Out","Quad", 1)
wait(7)
resultprompt:TweenPosition(UDim2.new(1, 60, .5 , -92),"Out","Quad", 1)
if tuple(1) == "Class" then
else tuple(2) "betrayer wins"
end
classname.Text = "You are the betrayer"
classname.TextColor3 = Color3.new(1, 74/255, 77/255)
classdesc.Text = "Your goal is to kill and betray everyone!"
if tuple(2) == "police" then
classname.Text = "You are the police"
classname.TextColor3 = Color3.new(111/255, 149/255, 1)
classdesc.Text = "your goal is to find and kill the betrayer"
else
classname.Text = "You are a friends"
classname.TextColor3 = Color3.new(117/255, 1, 156/255)
classdesc.Text = "hide and wait the police to kill the betrayer"

classprompt.Visible = true
classprompt.Position = UDim2.new(0, -400, .5, -92)
classprompt:TweenPosition(UDim2.new(.5, -170, .05, -192),"Out","Quad", 1)
wait(7)
classprompt:TweenPosition(UDim2.new(1, 60, .5 , -92),"Out","Quad", 1)

end
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
02 Aug 2015 07:59 AM
China called; They want their wall back.
Report Abuse
BluesteelBoyz is not online. BluesteelBoyz
Joined: 15 Feb 2012
Total Posts: 1841
02 Aug 2015 08:01 AM
To long o.o
^ Lol
Report Abuse
FactualTheory is not online. FactualTheory
Joined: 10 Sep 2013
Total Posts: 1365
02 Aug 2015 08:12 AM
Replicated storage.

nil value

i didn't read the top post.

if u r trying to math.random or getchuldren the replicated storage there are no children
Report Abuse
Iterum is not online. Iterum
Joined: 30 Jan 2009
Total Posts: 1982
02 Aug 2015 08:21 AM
"China called; They want their wall back."

i missed you


-ChiefDelta/Discommodate/iC7G/Vulnerite + 100 other accounts
Report Abuse
FactualTheory is not online. FactualTheory
Joined: 10 Sep 2013
Total Posts: 1365
02 Aug 2015 08:23 AM
dont u get it. This thread wall.
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
02 Aug 2015 11:24 AM
"they want their wall back"
really funny :D


Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
04 Aug 2015 05:50 PM
can i ask another thing?

how does the other player change their place character body like in animation lab 2.0?
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
05 Aug 2015 06:38 AM
reply
Report Abuse
OutrageLlama is not online. OutrageLlama
Joined: 30 Sep 2012
Total Posts: 16
10 Aug 2015 01:43 PM
reply reply reply reply
Report Abuse
Caleb370432 is not online. Caleb370432
Joined: 31 Oct 2014
Total Posts: 35
10 Aug 2015 01:47 PM
we're not here to make scripts for you.


r.i.p 5k+ posts ;(
Report Abuse
yobo89 is not online. yobo89
Joined: 05 Jun 2010
Total Posts: 2341
10 Aug 2015 01:51 PM
Tl;DR
Report Abuse
cody123454321 is not online. cody123454321
Joined: 21 Nov 2009
Total Posts: 5408
10 Aug 2015 01:54 PM
I don't know why, but OP can't find a simple text issue.

We should bump this like MP5
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